Advertisement
JonathanFeitosa

[Easy] Bloqueando comandos - SetTimerEx

Jan 20th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.47 KB | None | 0 0
  1. /* CURTA: FB.COM/GOHUMORGTA
  2. SKYPE: jonathanfeitosajfs
  3. */
  4.  
  5. // Topo
  6. #define TEMPOJFS 5000 // 5 segundos
  7. new JFSExemplo [MAX_PLAYERS];
  8.  
  9. // No comando
  10. if (JFSExemplo[playerid] == 1) return SendClientMessage (playerid, -1, "Aguarde 5 segundos");
  11. SetTimerEx("NomePublic",  TEMPOJFS, false, "i", playerid);
  12. JFSExemplo [playerid] = 1;
  13.  
  14. // No final do GM/FS
  15. forward NomePublic(playerid);
  16. public NomePublic(playerid)
  17. {
  18.     JFSExemplo[playerid] = 0;
  19.     return true;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement