SHARE
TWEET

Untitled

a guest Jun 19th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new bool:a = false;
  2.  
  3. public OnPluginStart()
  4. {
  5.     RegAdminCommand("sm_superslap",
  6.         Command_Superslap,
  7.         ADMFLAG_SUPERSLAP,
  8.         "Slaps the shit out of all the hookers on the server")
  9.    
  10. }
  11.  
  12. public SlapPlayers()
  13. {
  14.     for (i=1; 1<=MaxPlayers; i++)
  15.     {
  16.         SlapPlayer(i, 0, true)
  17.     }
  18.    
  19.     if (a == false)
  20.     {
  21.         return plugin_Stop
  22.     }
  23.    
  24.     if (a == true)
  25.     {
  26.         return plugin_Continue
  27.     }
  28.  
  29. }
  30.  
  31. public Action:Command_Superslap(Handle:timer)
  32. {
  33.  
  34.     CreateTimer(0.2, SlapPlayers)
  35.    
  36.     if (a == true)
  37.     {
  38.         a = false
  39.     }
  40.    
  41.     if (a == false)
  42.     {
  43.         a = true
  44.     }
  45.  
  46. }
RAW Paste Data
Pastebin PRO Autumn Special!
Get 40% OFF on Pastebin PRO accounts!
Top