Advertisement
Guest User

Untitled

a guest
Oct 31st, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. new delay;
  2.  
  3. // faci o noua functie
  4.  
  5. forward function();
  6. public function() {
  7. if(delay > 0) delay--;
  8. return true;
  9. }
  10. la comanda makeadmin sau cum ai tu:
  11.  
  12. if(delay > 0) {
  13. new delaystring[64];
  14. format(delaystring, 64, "Mai poti folosi aceasta comanda peste %d secunde!", delay);
  15. SendClientMessage(playerid, -1, delaystring);
  16. return true;
  17. }
  18. delay = 10; // pui tu cat vr
  19. // la ongamemodeinit
  20.  
  21. SetTimer("function", 1000, 1);
  22.  
  23. codu asta nu e prea optimizat
  24. poti face si cu YSI daca ai acea librarie, sa fie mai optim.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement