Guest User

Newbie

a guest
Aug 8th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.48 KB | None | 0 0
  1. new NewbieTimer[MAX_PLAYERS];
  2.  
  3. CMD:n(playerid, params[]) //Folosim 'params' pentru ca ne trebuie sscanf
  4. {
  5.     if((gettime() - NewbieTimer[playerid]) < 30) return SendClientMessage(playerid, -1, "Trebuie sa astepti 30 de secunde pentru a plasa o intrebare!"); //Daca timerul a numerotat 30 de secunde (sau mai mult), atunci codul va fi citit mai departe
  6.     //CODUL TAU AICI!
  7.     NewbieTimer[playerid] = gettime(); //In cazul in care am plasat o intrebare, trebuie sa facem timerul sa "ticaie".
  8. }
Advertisement
Add Comment
Please, Sign In to add comment