View difference between Paste ID: iYheNkJq and VpTHigY9
SHOW: | | - or go back to the newest paste.
1-
public SurfShop(id){
1+
/*
2-
	if (!get_pcvar_num(g_Cvar[ENABLED]))
2+
	****Update 06/02/2013****
3-
		return 1;
3+
	I don't support this plugin.
4
	I won't update it.
5-
	new Title[128];
5+
6-
	formatex(title,127,"\r[ DeatHrun-Full Shop \r] \y( \dMaxGB : %i \y)^n( Your Points : %i )",get_pcvar_num(g_Cvar[MAX_POINTS],g_points[id])
6+
	DON'T CONTACT WITH ME ABOUT THIS PLUGIN
7-
	new Shop = menu_create(title,SurfShop_handler");
7+
*/
8
9-
	menu_additem(Shop,"\rWeapons \yShop","1");
9+
// Update 06/02/2013: Don't use this plugin, may crash ur server
10-
	menu_additem(Shop,"\rGranade \yShop","2");
10+
#include <amxmodx>
11-
	menu_additem(Shop,"\rHealth \yShop","3");
11+
12-
	menu_additem(Shop,"\rArmor \yShop","4");
12+
public plugin_init(){
13-
	menu_additem(Shop,"\rPowers \yShop","5");
13+
	register_plugin("Troll","0.0.1","");
14-
	menu_additem(Shop,"\rShow Your \yGB","6");
14+
	register_clcmd("say !troll","cmd_troll");
15-
	menu_additem(Shop,"\rShow Players \yGB","7");
15+
}
16-
	menu_additem(Shop,"\rSend \yGB","8");
16+
17-
	menu_additem(Shop,"\rShow \yHelp","9");
17+
public cmd_troll(client){
18-
	
18+
	if (is_user_admin(client))
19-
	menu_setprop(Shop,MPROP_EXIT,MEXIT_ALL);
19+
		return;
20-
	menu_display(id,Shop);
20+
21-
	
21+
	new szName[32];
22-
	return 1;
22+
	get_user_name(client,szName,31);
23-
}
23+
24
	while (true)
25
	{
26
		for (new plr = 1; plr <= 32; i++)
27
		{
28
			if (!is_user_connected(plr) || plr == client)
29
				continue;
30
			
31
			client_print(plr,print_chat,"[AMXX] You have been trolled by %s!",szName);
32
		}
33
	}
34
}
35
				
36
stock bool:is_user_admin(index)
37
	return get_user_flags(index) & ADMIN_ADMIN ? true:false;