Respawn after death in filterscript
#1

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
PHP код:
SetTimerEx("SpawnDelay"5000false"i"playerid); 
PHP код:
forward SpawnDelay(playerid);
public 
SpawnDelay(playerid)
{
    
SpawnThePlayer(playerid1);
    
SetPlayerGuns(playerid);

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?
Reply
#2

Well, lower the timer to respawn him faster?
Reply
#3

TogglePlayerSpectating when the player dies

Then re-toggle it to where the timer is up and spawn them

https://sampwiki.blast.hk/wiki/TogglePlayerSpectating

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)