11.02.2017, 11:00
I am making a filterscript and need to respawn players when they die. I am currently doing it with a timer that respawns the player after they die.
OnPlayerDeath
This doesn't feel very smooth. When the player gets killed, the gamemode respawns him first, then my filterscript respawns him again. The gamemode itself should not be updated. How can I make the respawn faster?
OnPlayerDeath
PHP код:
SetTimerEx("SpawnDelay", 5000, false, "i", playerid);
PHP код:
forward SpawnDelay(playerid);
public SpawnDelay(playerid)
{
SpawnThePlayer(playerid, 1);
SetPlayerGuns(playerid);
}