Guest User

[COMANDOS] anti flood eDl

a guest
May 4th, 2013
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. //OnPlayerCommandText
  2. SetTimerEx("CmdTimerOff",3000,false,"i",playerid);
  3.  
  4. if(GetPVarInt(playerid,"CMD")==1) return SendClientMessage(playerid, 0xF60000AA, "•Sem Flood• Aguarde 3 segundos, para digitar outro comando.");
  5.  
  6. if(GetPVarInt(playerid,"CMD")==0)
  7.  
  8. {
  9.  
  10. SetPVarInt(playerid,"CMD",1);
  11.  
  12. }
  13.  
  14. // Fim do GM
  15. forward CmdTimerOff(playerid);
  16.  
  17. public CmdTimerOff(playerid)
  18.  
  19. {
  20.  
  21. return DeletePVar(playerid,"CMD");
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment