Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Użycie Odlicz(playerid, <CZAS W SEKUNDACH>)
- stock Odlicz(playerid, time)
- {
- SetTimerEx("Odlicz@Timer", 1000, 0, "dd", playerid, time);
- }
- forward Odlicz@Timer(playerid, time);
- public Odlicz@Timer(playerid, time)
- {
- if(time > 0)
- {
- new str[32];
- format(str, sizeof(str), "Odliczanie! %d sek", time);
- ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Odlicz", str, "Yep", "");
- SetTimerEx("Odlicz@Timer", 1000, 0, "dd", playerid, time-1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement