Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new delay;
- // faci o noua functie
- forward function();
- public function() {
- if(delay > 0) delay--;
- return true;
- }
- la comanda makeadmin sau cum ai tu:
- if(delay > 0) {
- new delaystring[64];
- format(delaystring, 64, "Mai poti folosi aceasta comanda peste %d secunde!", delay);
- SendClientMessage(playerid, -1, delaystring);
- return true;
- }
- delay = 10; // pui tu cat vr
- // la ongamemodeinit
- SetTimer("function", 1000, 1);
- codu asta nu e prea optimizat
- poti face si cu YSI daca ai acea librarie, sa fie mai optim.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement