[Rezolvat] cerere plugin arma

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
User avatar
1oNNNuTz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 07 May 2012, 10:28
Detinator Steam: Da
SteamID: ionutxl
Reputatie: Tepar
Has thanked: 12 times
Been thanked: 18 times
Contact:

29 Jan 2014, 19:38

vreau si eu pluginul cand faci kill se incarca arma automat nu vreau sa aiba bug
dau multumesc.
Last edited by DaNNe. on 31 Jan 2014, 10:16, edited 1 time in total.
Reason: Trecut ca si rezolvat.
RoyalServer 2
#Vali
Fost moderator
Fost moderator
Posts: 2611
Joined: 24 Jan 2012, 11:00
Detinator Steam: Da
SteamID: id/spryt3
Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
Location: root
Has thanked: 81 times
Been thanked: 144 times
Contact:

29 Jan 2014, 19:45

| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_event(  "DeathMsg",  "EventDeathMsg",  "a"  );
}
public EventDeathMsg()
	{
	client_cmd(read_data(1),"+reload")
}
Nu mai stiu exact cum era comanda de reload :-?
User avatar
1oNNNuTz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 07 May 2012, 10:28
Detinator Steam: Da
SteamID: ionutxl
Reputatie: Tepar
Has thanked: 12 times
Been thanked: 18 times
Contact:

29 Jan 2014, 19:47

Mr.SpRyTe wrote:
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_event(  "DeathMsg",  "EventDeathMsg",  "a"  );
}
public EventDeathMsg()
	{
	client_cmd(read_data(1),"+reload")
}
Nu mai stiu exact cum era comanda de reload :-?
Sigur e bun fara bug ?
#Vali
Fost moderator
Fost moderator
Posts: 2611
Joined: 24 Jan 2012, 11:00
Detinator Steam: Da
SteamID: id/spryt3
Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
Location: root
Has thanked: 81 times
Been thanked: 144 times
Contact:

29 Jan 2014, 19:50

1oNNNuTz wrote:
Mr.SpRyTe wrote:
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_event(  "DeathMsg",  "EventDeathMsg",  "a"  );
}
public EventDeathMsg()
	{
	client_cmd(read_data(1),"+reload")
}
Nu mai stiu exact cum era comanda de reload :-?
Sigur e bun fara bug ?
incearca omule ,cum vrei sa stiu daca e bun daca nu il testezi ma crezi mentalist
@Doamne ce useri sunt aici nici cand ii ajuti nu e bine
User avatar
1oNNNuTz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 07 May 2012, 10:28
Detinator Steam: Da
SteamID: ionutxl
Reputatie: Tepar
Has thanked: 12 times
Been thanked: 18 times
Contact:

29 Jan 2014, 19:51

Mr.SpRyTe wrote:
1oNNNuTz wrote:
Mr.SpRyTe wrote:
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_event(  "DeathMsg",  "EventDeathMsg",  "a"  );
}
public EventDeathMsg()
	{
	client_cmd(read_data(1),"+reload")
}
Nu mai stiu exact cum era comanda de reload :-?
Sigur e bun fara bug ?
incearca omule ,cum vrei sa stiu daca e bun daca nu il testezi ma crezi mentalist
@Doamne ce useri sunt aici nici cand ii ajuti nu e bine
Daca nu imi dai ceva sigur atunci de ce te bagi in topic ? :|
Last edited by YONTU on 29 Jan 2014, 20:15, edited 3 times in total.
Reason: Termina cu Off topciul!
#Vali
Fost moderator
Fost moderator
Posts: 2611
Joined: 24 Jan 2012, 11:00
Detinator Steam: Da
SteamID: id/spryt3
Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
Location: root
Has thanked: 81 times
Been thanked: 144 times
Contact:

29 Jan 2014, 19:53

1oNNNuTz wrote:
Mr.SpRyTe wrote:
1oNNNuTz wrote: Sigur e bun fara bug ?
incearca omule ,cum vrei sa stiu daca e bun daca nu il testezi ma crezi mentalist
@Doamne ce useri sunt aici nici cand ii ajuti nu e bine
Daca nu imi dai ceva sigur atunci de ce te bagi in topic ? :|
NU am cuvinte!
User avatar
1oNNNuTz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 07 May 2012, 10:28
Detinator Steam: Da
SteamID: ionutxl
Reputatie: Tepar
Has thanked: 12 times
Been thanked: 18 times
Contact:

29 Jan 2014, 19:54

Mr.SpRyTe wrote:
1oNNNuTz wrote:
Mr.SpRyTe wrote: incearca omule ,cum vrei sa stiu daca e bun daca nu il testezi ma crezi mentalist
@Doamne ce useri sunt aici nici cand ii ajuti nu e bine
Daca nu imi dai ceva sigur atunci de ce te bagi in topic ? :|
NU am cuvinte!
Tu mi-ai dat sa se reincarce arma nu glontele
Cosmin
Fost moderator
Fost moderator
Posts: 9362
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

29 Jan 2014, 19:55

Vrei ceva gen sa iti dea cele 30 gloante inapoi dupa ce omori pe cineva,nu ?
User avatar
1oNNNuTz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 07 May 2012, 10:28
Detinator Steam: Da
SteamID: ionutxl
Reputatie: Tepar
Has thanked: 12 times
Been thanked: 18 times
Contact:

29 Jan 2014, 19:55

scosmynnnn wrote:Vrei ceva gen sa iti dea cele 30 gloante inapoi dupa ce omori pe cineva,nu ?
Da aia vreau dar sa nu aiba bug pluginul
Cosmin
Fost moderator
Fost moderator
Posts: 9362
Joined: 06 Jul 2013, 22:08
Detinator Steam: Da
Detinator server CS: Nu
Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn
Has thanked: 492 times
Been thanked: 547 times

29 Jan 2014, 20:02

| Afiseaza codul
#include <amxmodx>
#include <csdm>
#include <cstrike>
#include <fakemeta>

new const g_weapons[] =
{
	CSW_P228,
	CSW_SCOUT,
	CSW_XM1014,
	CSW_MAC10,
	CSW_AUG,
	CSW_ELITE,
	CSW_FIVESEVEN,
	CSW_UMP45,
	CSW_SG550,
	CSW_GALI,
	CSW_GALIL,
	CSW_FAMAS,
	CSW_USP,
	CSW_GLOCK18,
	CSW_AWP,
	CSW_MP5NAVY,
	CSW_M249,
	CSW_M3,
	CSW_M4A1,
	CSW_TMP,
	CSW_G3SG1,
	CSW_DEAGLE,
	CSW_SG552,
	CSW_AK47,
	CSW_P90
}

new const g_max_clip[] =
{
	13,
	10,
	7,
	30,
	30,
	30,
	20,
	25,
	30,
	35,
	35,
	25,
	12,
	20,
	10,
	30,
	100,
	8,
	30,
	30,
	20,
	7,
	30,
	30,
	50
}

new const g_other_weapons[] =
{
	CSW_KNIFE,
	CSW_HEGRENADE,
	CSW_C4
}

public plugin_init()
	register_plugin("CSDM Refill", "1.0", "Radiance")

public client_death(killer, victim, wpnindex, hitplace, TK)
{
	if (!csdm_get_ffa() && TK)
		return

	for (new a = 0; a < sizeof (g_other_weapons); a++)
		if (wpnindex == g_other_weapons[a])
			return

	new weapon = fm_get_weapon_ent(killer, wpnindex)

	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnindex == g_weapons[a])
		{
			new ammo = get_weapon_maxclip(wpnindex)

			if (ammo)
			{
				client_cmd(killer, "spk ^"items/9mmclip1.wav^"")
				cs_set_weapon_ammo(weapon, ammo)
			}
			return

		}
}

get_weapon_maxclip(wpnid = 0)
{
	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnid == g_weapons[a])
			return g_max_clip[a]

	return false
}

fm_get_weapon_ent(id, wpnid = 0)
{
	new name[32]

	if(wpnid)
		get_weaponname(wpnid, name, 31)

	if (!equal(name, "weapon_", 7))
		format(name, sizeof (name) - 1, "weapon_%s", name)

	return fm_find_ent_by_owner(get_maxplayers(), name, id)
}

fm_find_ent_by_owner(id, const classname[], owner, jghgtype = 0)
{
	new strtype[16] = "classname"
	new ent = id

	switch (jghgtype)
	{
		case 1: strtype = "target"
		case 2: strtype = "targetname"
	}

	while ((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner)
	{
	}

	return ent
}
User avatar
1oNNNuTz
Membru, skill +1
Membru, skill +1
Posts: 392
Joined: 07 May 2012, 10:28
Detinator Steam: Da
SteamID: ionutxl
Reputatie: Tepar
Has thanked: 12 times
Been thanked: 18 times
Contact:

29 Jan 2014, 20:15

scosmynnnn wrote:
| Afiseaza codul
#include <amxmodx>
#include <csdm>
#include <cstrike>
#include <fakemeta>

new const g_weapons[] =
{
	CSW_P228,
	CSW_SCOUT,
	CSW_XM1014,
	CSW_MAC10,
	CSW_AUG,
	CSW_ELITE,
	CSW_FIVESEVEN,
	CSW_UMP45,
	CSW_SG550,
	CSW_GALI,
	CSW_GALIL,
	CSW_FAMAS,
	CSW_USP,
	CSW_GLOCK18,
	CSW_AWP,
	CSW_MP5NAVY,
	CSW_M249,
	CSW_M3,
	CSW_M4A1,
	CSW_TMP,
	CSW_G3SG1,
	CSW_DEAGLE,
	CSW_SG552,
	CSW_AK47,
	CSW_P90
}

new const g_max_clip[] =
{
	13,
	10,
	7,
	30,
	30,
	30,
	20,
	25,
	30,
	35,
	35,
	25,
	12,
	20,
	10,
	30,
	100,
	8,
	30,
	30,
	20,
	7,
	30,
	30,
	50
}

new const g_other_weapons[] =
{
	CSW_KNIFE,
	CSW_HEGRENADE,
	CSW_C4
}

public plugin_init()
	register_plugin("CSDM Refill", "1.0", "Radiance")

public client_death(killer, victim, wpnindex, hitplace, TK)
{
	if (!csdm_get_ffa() && TK)
		return

	for (new a = 0; a < sizeof (g_other_weapons); a++)
		if (wpnindex == g_other_weapons[a])
			return

	new weapon = fm_get_weapon_ent(killer, wpnindex)

	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnindex == g_weapons[a])
		{
			new ammo = get_weapon_maxclip(wpnindex)

			if (ammo)
			{
				client_cmd(killer, "spk ^"items/9mmclip1.wav^"")
				cs_set_weapon_ammo(weapon, ammo)
			}
			return

		}
}

get_weapon_maxclip(wpnid = 0)
{
	for (new a = 0; a < sizeof (g_weapons); a++)
		if (wpnid == g_weapons[a])
			return g_max_clip[a]

	return false
}

fm_get_weapon_ent(id, wpnid = 0)
{
	new name[32]

	if(wpnid)
		get_weaponname(wpnid, name, 31)

	if (!equal(name, "weapon_", 7))
		format(name, sizeof (name) - 1, "weapon_%s", name)

	return fm_find_ent_by_owner(get_maxplayers(), name, id)
}

fm_find_ent_by_owner(id, const classname[], owner, jghgtype = 0)
{
	new strtype[16] = "classname"
	new ent = id

	switch (jghgtype)
	{
		case 1: strtype = "target"
		case 2: strtype = "targetname"
	}

	while ((ent = engfunc(EngFunc_FindEntityByString, ent, strtype, classname)) && pev(ent, pev_owner) != owner)
	{
	}

	return ent
}
[AMXX] Plugin file open error (plugin "arma.amxx")
deci imi da eroare :|
#Vali
Fost moderator
Fost moderator
Posts: 2611
Joined: 24 Jan 2012, 11:00
Detinator Steam: Da
SteamID: id/spryt3
Reputatie: Fost Moderator
Fost Scripter eXtreamCS.com
1.2 / 3
Location: root
Has thanked: 81 times
Been thanked: 144 times
Contact:

29 Jan 2014, 20:18

Modulu csdm il ai?
#include <csdm>
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests