24.02.2008, 11:15
Quote:
Originally Posted by Splitx
It is possible but i dont know how....
|
//On top of your script:
Код:
new Count[MAX_PLAYERS]; new CountdownTimer[MAX_PLAYERS];
Код:
CountdownTimer[playerid] = SetTimerEx("HospitalCountdown", 1000, 1, "i", playerid); Count[playerid] = 60;
Код:
forward HospitalCountdown(playerid); public HospitalCountdown(playerid) { new string[64]; format(string, sizeof(string), "You will respawn in %d seconds", Count[playerid]); GameTextForPlayer(playerid, string, 1500, 3); if(Count[playerid] == 0) { KillTimer(CountdownTimer[playerid]); // Player is healed, and ready to spawn } Count[playerid]--; }