SA-MP Forums Archive
How to set respawn time? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to set respawn time? (/showthread.php?tid=126696)



How to set respawn time? - hardstop - 09.02.2010

How to set respawn time + showing how much time left on screen


Re: How to set respawn time? - lameguy - 09.02.2010

Use timers and textdraws


Re: How to set respawn time? - hardstop - 09.02.2010

I need help somebody?


Re: How to set respawn time? - lameguy - 09.02.2010

When do you want that respawn time and how long do you want it to be?


Re: How to set respawn time? - hardstop - 09.02.2010

If player dies Respawn in 1 minute


Re: How to set respawn time? - FireFox_ - 09.02.2010

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