toribio

toribio

Sep 11th, 2009
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. //topo:
  2. new pSpamTimer[MAX_PLAYERS];
  3.  
  4. //no OnPlayerCommandText:
  5. if(GetTickCount() < pSpamTimer[playerid])
  6. {
  7.     SendClientMessage(playerid, 0xFFFFFFAA, "SERVER: Um comando a cada 7 segundos!");
  8.     return 1;
  9. }
  10. pSpamTimer[playerid] = GetTickCount() + 7000; //7 segundos = 7000 milisegundos
Add Comment
Please, Sign In to add comment