09.02.2010, 17:41
How to set respawn time + showing how much time left on screen
forward DeathTimer(playerid); // Put at the top of your script
public OnPlayerDeath(playerid, killerid, reason)
{
SetTimer("DeathTimer", 60000, 0); // If a player dies it sets a timer, 60000 is 1 minute.
return 1;
}
public DeathTimer(playerid) // The timer will read this after 1 minute
{
SpawnPlayer(playerid); // To spawn the player
return 1;
}