How to set respawn time?
#6

pawn Код:
forward DeathTimer(playerid); // Put at the top of your script
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  SetTimer("DeathTimer", 60000, 0); // If a player dies it sets a timer, 60000 is 1 minute.
  return 1;
}
pawn Код:
public DeathTimer(playerid) // The timer will read this after 1 minute
{
   SpawnPlayer(playerid); // To spawn the player
   return 1;
}
Untested Script
Reply


Messages In This Thread
How to set respawn time? - by hardstop - 09.02.2010, 17:41
Re: How to set respawn time? - by lameguy - 09.02.2010, 17:42
Re: How to set respawn time? - by hardstop - 09.02.2010, 17:43
Re: How to set respawn time? - by lameguy - 09.02.2010, 17:49
Re: How to set respawn time? - by hardstop - 09.02.2010, 17:55
Re: How to set respawn time? - by FireFox_ - 09.02.2010, 20:40

Forum Jump:


Users browsing this thread: 2 Guest(s)