[Cerere]Plugin shop God Mode

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 .
#Vali
Fost moderator
Fost moderator
Posts: 2524
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:

30 Apr 2013, 14:43

Mersi sper sa il pot integra in shop-ul meu
RoyalServer 2
#Vali
Fost moderator
Fost moderator
Posts: 2524
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:

30 Apr 2013, 15:00

Imi da eroare la pornirea serverului :
msg_one or msg_one unreliable with no target entity

sursa shop
| Afiseaza codul
#include < amxmodx >
#include < hamsandwich >
#include < engine >
#include < cstrike >
#include < fun >
#include < csx >
#include < fakemeta >
#include < colorchat >
#include < fakemeta_util >

#define PLUGIN "Shop2"
#define VERSION "2.0"
#define AUTHOR "SpRyTe"

#define		TASK_GODMODE		06091993

new limita[33]
new const g_szLicensedDNS[ ] = "CS2.FURIEN.RO";
new szHostName[ 64 ];
new bool:GodmodeFolosit[33]
new bool:BombaPlantata

new maxplayers;




public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say /cumpara","shop_menu", -1 )
	register_clcmd("say_team /cumpara","shop_menu", -1 )
	register_clcmd("say cumpara","shop_menu", -1)
	register_logevent("roundend", 2, "1=Round_End")
	get_cvar_string( "hostname", szHostName, sizeof ( szHostName ) -1 );
	register_logevent("runda_noua", 2, "1=Round_Start")
	set_task(120.0, "mesajgodmode");
	maxplayers = get_maxplayers() 
	if( containi( szHostName, g_szLicensedDNS ) != -1 )
	{
		server_print( "Felicitari, detii o licenta valida a plugin-ului: %s", PLUGIN );
		ColorChat(print_chat,GREEN,"Felicitari detii o licenta valida a plugin-ului: %s",PLUGIN);
	}
	else
	{
		server_print( "Atentie, NU detii o licenta valida a plugin-ului: %s", PLUGIN );
		ColorChat(print_chat,GREEN,"Atentie!NU detii o licenta valida a plugin-ului: %s",PLUGIN);
		set_task( 10.0, "TaskShutDown" );
	}
}
public roundend (id)
{
	for(new i=0; i<=sizeof(limita);i++)
		limita=0;
	ColorChat(id,GREEN,"[CS2] Vizitati www.watf.ro"&#41;;
}
public runda_noua() 
{
	BombaPlantata = false;
	new i;
	for(i = 1; i <= maxplayers; i++ )
	{
		if(!is_user_connected(i))
		{
			return PLUGIN_HANDLED;
		}
		GodmodeFolosit = false;
		set_user_godmode(i, 0)
	}
	return PLUGIN_CONTINUE
}

public bomb_planted() 
{
	BombaPlantata = true;
	new i;
	for(i = 1; i <= maxplayers; i++ )
	{
		if(!is_user_connected(i))
		{
			return PLUGIN_HANDLED;
		}
		remove_task(i)
		set_user_godmode(i, 0)
		ColorChat(i, RED, "^x03 Bomba a fost plantata, nu se mai poate cumpara GOD MODE!");
	}
	return PLUGIN_CONTINUE
}

public client_putinserver(id) 
{
	GodmodeFolosit[id] = false;
}

public client_disconnect(id) 
{
	GodmodeFolosit[id] = false;
}

public shop_menu ( id, level, cid )
	
{
new menu = menu_create( "[Shop Menu]", "menu_handler" )
menu_additem(menu, "PACK HP+AP \r(8.000$)", "1", 0)
menu_additem(menu, "SMOKE GRENADE \r(1.500$)", "2", 0 )
menu_additem(menu, "FLASH GRENADE \r(1.500$)", "3", 0 )
//menu_additem(menu, "RESPAWN \r(10.000$)", "4", 0)
menu_additem(menu, "GOD MODE \r(11.000$)", "4", 0) 

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
}

public menu_handler ( id, menu, item )
{
if(item == MENU_EXIT)
{
	menu_destroy(menu)
	return PLUGIN_HANDLED
}

new data[6], szName[64], access, callback
menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);

switch(key)
{
	case 1:
	{
		if(cs_get_user_money(id) < 8000)			
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[PACK HP+AP] ^x01!");
			return 1
		}
		else if(get_user_team(id) == CS_TEAM_T)
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[PACK HP+AP] ^x01!"); 
			cs_set_user_money(id, cs_get_user_money(id) - 8000)
			set_user_health(id, 150)
			set_user_armor(id, 100)
		}
		else if(get_user_team(id) == CS_TEAM_CT)
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[PACK HP+AP] ^x01!");
			cs_set_user_money(id, cs_get_user_money(id) - 8000)
			set_user_health(id, 200)
			set_user_armor(id, 100)
		}
	}
	case 2:
	{
		if(cs_get_user_money(id) < 1500)
		{
			ColorChat(id,GREEN, "[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[SMOKE Grenade] ^x01!");
			return 1
		}
		else
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[SMOKE Grenade] ^x01!");
			cs_set_user_money(id, cs_get_user_money(id) - 1500)
			give_item(id, "weapon_smokegrenade")
		}
	}
	case 3:
	{
		if(cs_get_user_money(id) < 1500)
		{
			ColorChat(id,GREEN, "[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[FLASH Grenade] ^x01!");
			return 1
		}
		else
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[FLASH Grenade] ^x01!");
			cs_set_user_money(id, cs_get_user_money(id) - 1500)
			give_item(id, "weapon_flashbang")
		}
	}
	
	
	case 4:
	{
		new Bani = cs_get_user_money( id )
		if(GodmodeFolosit[id]) 
		{
			//ColorChat(id, RED, "^x03 Ai folosit runda asta GODMODE !");
			return PLUGIN_HANDLED;
		}
		
		if(BombaPlantata == true) 
		{
			//ColorChat(id, RED, "^x03 Bomba a fost plantata, nu poti folosi GODMODE !");
			return PLUGIN_HANDLED;
		}
		if(is_user_alive(id) && cs_get_user_money(id) >= 10000) 
		{
			set_user_godmode(id, 1);
			set_task(10.0, "scoategodmode", id);
			GodmodeFolosit[id] = true;
			//ColorChat(id, RED, "Ai primit ^x04 GODMODE^x01 timp de 10 secunde !");
			cs_set_user_money(id, Bani -10000);
		}
		else 
		{
			//ColorChat(id, RED, "^x04 Nu ai destui bani pentru a cumpara GODMODE !");
			return PLUGIN_HANDLED;
		}
	}
	
	
	
	
}



menu_destroy(menu);
return 1

}

public scoategodmode(id) 
{
set_user_godmode(id, 0)
ColorChat(id, RED, "^x04 Au exiprat cele 10 secunde de godmode !");
GodmodeFolosit[id] = true;
}

public SetUserWeapons(id) {
id -= 12345;

if( !is_user_connected(id) ) return PLUGIN_HANDLED;

strip_user_weapons(id);
give_item(id, "weapon_knife");

return PLUGIN_CONTINUE;
}
public TaskShutDown( )	server_cmd( "quit" );
#Vali
Fost moderator
Fost moderator
Posts: 2524
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:

01 May 2013, 08:45

up!...
raresthebest
Membru, skill +1
Membru, skill +1
Posts: 136
Joined: 12 Jul 2012, 21:20
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 10 times
Been thanked: 17 times
Contact:

01 May 2013, 18:14

| Afiseaza codul
#include < amxmodx >
#include < hamsandwich >
#include < engine >
#include < cstrike >
#include < fun >
#include < csx >
#include < fakemeta >
#include < colorchat >
#include < fakemeta_util >

#define PLUGIN "Shop2"
#define VERSION "2.0"
#define AUTHOR "SpRyTe"

#define		TASK_GODMODE		06091993

new limita[33]
new const g_szLicensedDNS[ ] = "CS2.FURIEN.RO";
new szHostName[ 64 ];
new bool:GodmodeFolosit[33]
new bool:BombaPlantata

new maxplayers;




public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say /cumpara","shop_menu", -1 )
	register_clcmd("say_team /cumpara","shop_menu", -1 )
	register_clcmd("say cumpara","shop_menu", -1)
	register_logevent("roundend", 2, "1=Round_End")
	get_cvar_string( "hostname", szHostName, sizeof ( szHostName ) -1 );
	register_logevent("runda_noua", 2, "1=Round_Start")
	set_task(120.0, "mesajgodmode");
	maxplayers = get_maxplayers() 
	if( containi( szHostName, g_szLicensedDNS ) != -1 )
	{
		server_print( "Felicitari, detii o licenta valida a plugin-ului: %s", PLUGIN );
		ColorChat(print_chat,GREEN,"Felicitari detii o licenta valida a plugin-ului: %s",PLUGIN);
	}
	else
	{
		server_print( "Atentie, NU detii o licenta valida a plugin-ului: %s", PLUGIN );
		ColorChat(print_chat,GREEN,"Atentie!NU detii o licenta valida a plugin-ului: %s",PLUGIN);
		set_task( 10.0, "TaskShutDown" );
	}
}
public roundend (id)
{
	for(new i=0; i<=sizeof(limita);i++)
		limita=0;
	ColorChat(id,GREEN,"[CS2] Vizitati www.watf.ro"&#41;
}
public runda_noua() 
{
	BombaPlantata = false;
	new i;
	for(i = 1; i <= maxplayers; i++ )
	{
		if(!is_user_connected(i))
		{
			return PLUGIN_HANDLED;
		}
		GodmodeFolosit = false;
		set_user_godmode(i, 0)
	}
	return PLUGIN_CONTINUE
}

public bomb_planted() 
{
	BombaPlantata = true;
	new i;
	for(i = 1; i <= maxplayers; i++ )
	{
		if(!is_user_connected(i))
		{
			return PLUGIN_HANDLED;
		}
		remove_task(i)
		set_user_godmode(i, 0)
		ColorChat(i, RED, "^x03 Bomba a fost plantata, nu se mai poate cumpara GOD MODE!");
	}
	return PLUGIN_CONTINUE
}

public client_putinserver(id) 
{
	GodmodeFolosit[id] = false;
}

public client_disconnect(id) 
{
	GodmodeFolosit[id] = false;
}

public shop_menu ( id, level, cid )
	
{
new menu = menu_create( "[Shop Menu]", "menu_handler" )
menu_additem(menu, "PACK HP+AP \r(8.000$)", "1", 0)
menu_additem(menu, "SMOKE GRENADE \r(1.500$)", "2", 0 )
menu_additem(menu, "FLASH GRENADE \r(1.500$)", "3", 0 )
//menu_additem(menu, "RESPAWN \r(10.000$)", "4", 0)
menu_additem(menu, "GOD MODE \r(11.000$)", "4", 0) 

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
}

public menu_handler ( id, menu, item )
{
if(item == MENU_EXIT)
{
	menu_destroy(menu)
	return PLUGIN_HANDLED
}

new data[6], szName[64], access, callback
menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);

switch(key)
{
	case 1:
	{
		if(cs_get_user_money(id) < 8000)			
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[PACK HP+AP] ^x01!");
			return 1
		}
		else if(get_user_team(id) == CS_TEAM_T)
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[PACK HP+AP] ^x01!"); 
			cs_set_user_money(id, cs_get_user_money(id) - 8000)
			set_user_health(id, 150)
			set_user_armor(id, 100)
		}
		else if(get_user_team(id) == CS_TEAM_CT)
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[PACK HP+AP] ^x01!");
			cs_set_user_money(id, cs_get_user_money(id) - 8000)
			set_user_health(id, 200)
			set_user_armor(id, 100)
		}
	}
	case 2:
	{
		if(cs_get_user_money(id) < 1500)
		{
			ColorChat(id,GREEN, "[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[SMOKE Grenade] ^x01!");
			return 1
		}
		else
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[SMOKE Grenade] ^x01!");
			cs_set_user_money(id, cs_get_user_money(id) - 1500)
			give_item(id, "weapon_smokegrenade")
		}
	}
	case 3:
	{
		if(cs_get_user_money(id) < 1500)
		{
			ColorChat(id,GREEN, "[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[FLASH Grenade] ^x01!");
			return 1
		}
		else
		{
			ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[FLASH Grenade] ^x01!");
			cs_set_user_money(id, cs_get_user_money(id) - 1500)
			give_item(id, "weapon_flashbang")
		}
	}
	
	
	case 4:
	{
		new Bani = cs_get_user_money( id )
		if(GodmodeFolosit[id]) 
		{
			//ColorChat(id, RED, "^x03 Ai folosit runda asta GODMODE !");
			return PLUGIN_HANDLED;
		}
		
		if(BombaPlantata == true) 
		{
			//ColorChat(id, RED, "^x03 Bomba a fost plantata, nu poti folosi GODMODE !");
			return PLUGIN_HANDLED;
		}
		if(is_user_alive(id) && cs_get_user_money(id) >= 10000) 
		{
			set_user_godmode(id, 1);
			set_task(10.0, "scoategodmode", id);
			GodmodeFolosit[id] = true;
			//ColorChat(id, RED, "Ai primit ^x04 GODMODE^x01 timp de 10 secunde !");
			cs_set_user_money(id, Bani -10000);
		}
		else 
		{
			//ColorChat(id, RED, "^x04 Nu ai destui bani pentru a cumpara GODMODE !");
			return PLUGIN_HANDLED;
		}
	}
	
	
	
	
}



menu_destroy(menu);
return 1

}

public scoategodmode(id) 
{
set_user_godmode(id, 0)
ColorChat(id, RED, "^x04 Au exiprat cele 10 secunde de godmode !");
GodmodeFolosit[id] = true;
}

public SetUserWeapons(id) {
id -= 12345;

if( !is_user_connected(id) ) return PLUGIN_HANDLED;

strip_user_weapons(id);
give_item(id, "weapon_knife");

return PLUGIN_CONTINUE;
}
public TaskShutDown( )	server_cmd( "quit" );
#Vali
Fost moderator
Fost moderator
Posts: 2524
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:

01 May 2013, 18:36

Multumesc
User avatar
OnlySky
Membru, skill 0
Membru, skill 0
Posts: 62
Joined: 30 Apr 2013, 21:49
Detinator Steam: Da
Detinator server CS: da
SteamID: Privat
Has thanked: 10 times
Been thanked: 1 time
Contact:

02 May 2013, 00:18

#define AUTHOR "SpRyTe"
Nu cred ca e facut de tine , te faci direct autor ?
#Vali
Fost moderator
Fost moderator
Posts: 2524
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:

03 May 2013, 10:42

OnlySky wrote:
#define AUTHOR "SpRyTe"
Nu cred ca e facut de tine , te faci direct autor ?
ma fac ce vreau eu :) probleme? ai venit pentru +1?
User avatar
OnlySky
Membru, skill 0
Membru, skill 0
Posts: 62
Joined: 30 Apr 2013, 21:49
Detinator Steam: Da
Detinator server CS: da
SteamID: Privat
Has thanked: 10 times
Been thanked: 1 time
Contact:

03 May 2013, 11:33

Mr.SpRyTe wrote:
OnlySky wrote:
#define AUTHOR "SpRyTe"
Nu cred ca e facut de tine , te faci direct autor ?
ma fac ce vreau eu :) probleme? ai venit pentru +1?
pff omulet , stii ce inseamna drepturile de autor ? sau nu ? :-j
#Vali
Fost moderator
Fost moderator
Posts: 2524
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:

03 May 2013, 12:16

OnlySky wrote:
Mr.SpRyTe wrote:
OnlySky wrote:
Nu cred ca e facut de tine , te faci direct autor ?
ma fac ce vreau eu :) probleme? ai venit pentru +1?
pff omulet , stii ce inseamna drepturile de autor ? sau nu ? :-j
stii ca pluginu e facut de la 0 si aduse coduri din alte pluginuri ..pff da-ti un capac :) iesi din topicul meu sau ai report pentru off topic
Askwrite
Moderator ajutator
Moderator ajutator
Posts: 345
Joined: 26 Apr 2013, 21:59
Detinator Steam: Da
CS Status: Scriptez...!
Reputatie: Fost moderator ajutator
Has thanked: 6 times
Been thanked: 55 times
Contact:

03 May 2013, 12:22

Vai , vai, mersi ca te dai drept autor pe plugin-ul meu , si eu pot copia "coduri" si am facut un plugin de la zero :-o, vai ai modificat si tu comenzile (gm,godmode) si ai pus licentiere pe ip , GJ , ESTI MARE SCRIPTER !
User avatar
OnlySky
Membru, skill 0
Membru, skill 0
Posts: 62
Joined: 30 Apr 2013, 21:49
Detinator Steam: Da
Detinator server CS: da
SteamID: Privat
Has thanked: 10 times
Been thanked: 1 time
Contact:

03 May 2013, 13:17

stii ca pluginu e facut de la 0 si aduse coduri din alte pluginuri ..pff da-ti un capac iesi din topicul meu sau ai report pentru off topic
Pluginu e facut la 0 dar nu de tine , am cautat in posturi de la tine si am gasit plugin shop facut de exotiq.
Tu ai adaugat doar godmode.

Plugin =>>
| Afiseaza codul
[code]#include < amxmodx >
#include < hamsandwich >
#include < cstrike >
#include < fun >
#include < colorchat >

#define PLUGIN "Shop"
#define VERSION "1.0"
#define AUTHOR "ExoTiQ"

new bool:bAlreadyUsed [ 33 ]

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)    
	register_clcmd("say /cumpara","shop_menu", -1 )
	register_clcmd("say_team /cumpara","shop_menu", -1 )
	register_event( "HLTV" , "evNewRound" , "a" , "1=0" , "2=0" );
}

public evNewRound( ) arrayset( bAlreadyUsed , false , sizeof( bAlreadyUsed ) );

public shop_menu( id, level, cid ) {
	
	new menu = menu_create( "Shop Menu", "menu_handler" )
	menu_additem(menu, "HE Grenade \r(3.000$)", "1", 0)
	menu_additem(menu, "SMOKE Grenade \r(1.500$)", "2", 0 )
	menu_additem(menu, "FLASH Grenade \r(1.500$)", "3", 0 )
	menu_additem(menu, "RESPAWN \r(10.000$)", "4", 0)
	
	menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
	menu_display(id, menu, 0);
	return 0
}
public menu_handler ( id, menu, item ) {
	if(item == MENU_EXIT) {
		menu_destroy(menu)
		return PLUGIN_HANDLED
	}
	
	new data[6], szName[64], access, callback
	menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
	new key = str_to_num(data);
	
	switch(key) {
		case 1: {
			if(cs_get_user_money(id) < 3000) {
				ColorChat(id,GREEN,"[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[HE Grenade] ^x01!");
				return 1
				} else {
				ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[HE Grenade] ^x01!"); 
				cs_set_user_money(id, cs_get_user_money(id) - 3000)
				give_item(id, "weapon_hegrenade")
			}
		}
		case 2: {
			if(cs_get_user_money(id) < 1500) {
				ColorChat(id,GREEN, "[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[SMOKE Grenade] ^x01!");
				return 1
				} else {
				ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[SMOKE Grenade] ^x01!");
				cs_set_user_money(id, cs_get_user_money(id) - 1500)
				give_item(id, "weapon_smokegrenade")
			}
		}
		case 3: {
			if(cs_get_user_money(id) < 1500) {
				ColorChat(id,GREEN, "[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[FLASH Grenade] ^x01!");
				return 1
				} else {
				ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[FLASH Grenade] ^x01!");
				cs_set_user_money(id, cs_get_user_money(id) - 1500)
				give_item(id, "weapon_flashbang")
			}
		}
		case 4: {		
			if(is_user_alive(id)) {
				ColorChat(id,GREEN,"[Shop]^x01 Nu poti folosi aceasta comanda cand esti viu !");
				return PLUGIN_HANDLED
			}
			if(cs_get_user_money(id) < 10000) {
				ColorChat(id,GREEN, "[Shop]^x01 Ai prea putini bani pentru a cumpara ^x04[RESPAWN] ^x01!");
				return PLUGIN_HANDLED
				} else {
				if(bAlreadyUsed[id]==true) {
					ColorChat (id,GREEN,"[Shop]^x01 Ai folosit deja acest item runda asta !");
					return 0
				}
				ExecuteHamB(Ham_CS_RoundRespawn, id);
				ColorChat(id,GREEN,"[Shop]^x01 Ai cumparat ^x04[RESPAWN] ^x01!");
				cs_set_user_money(id, cs_get_user_money(id) - 10000)
				set_task(0.5, "SetUserWeapons", id + 12345);			
				return 1;
			}
		}
	}
	menu_destroy(menu);
	return 1
}

public SetUserWeapons(id) {
	id -= 12345;
	if( !is_user_connected(id) ) return PLUGIN_HANDLED;
	strip_user_weapons(id);
	give_item(id, "weapon_knife");
	return PLUGIN_CONTINUE;
}[/code]
Last edited by OnlySky on 03 May 2013, 13:27, edited 1 time in total.
Askwrite
Moderator ajutator
Moderator ajutator
Posts: 345
Joined: 26 Apr 2013, 21:59
Detinator Steam: Da
CS Status: Scriptez...!
Reputatie: Fost moderator ajutator
Has thanked: 6 times
Been thanked: 55 times
Contact:

03 May 2013, 13:20

Probabil meniul l-a luat, dar celalalte variabile, le-a copiat + event-urile, etc.
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests