Advertisement
Hyuna

Troll (Last Update: 06/02/2013)

Nov 22nd, 2012
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.     ****Update 06/02/2013****
  3.     I don't support this plugin.
  4.     I won't update it.
  5.  
  6.     DON'T CONTACT WITH ME ABOUT THIS PLUGIN
  7. */
  8.  
  9. // Update 06/02/2013: Don't use this plugin, may crash ur server
  10. #include <amxmodx>
  11.  
  12. public plugin_init(){
  13.     register_plugin("Troll","0.0.1","");
  14.     register_clcmd("say !troll","cmd_troll");
  15. }
  16.  
  17. public cmd_troll(client){
  18.     if (is_user_admin(client))
  19.         return;
  20.  
  21.     new szName[32];
  22.     get_user_name(client,szName,31);
  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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement