[HOSPITAL SYSTEM] i need help with it please
#5

I just gave you an example how to prevent spawning( I think once you die, you spawn where you don't want to be spawned). Try to add these lines to your callbacks.
OnPlayerDeath:
pawn Код:
gPlayerDied[playerid]=1;
before
pawn Код:
SetTimer("RespawnHospital", 3500, 0);
and
pawn Код:
if(gPlayerDied[playerid]==1)
     return 0;
on top of OnPlayerSpawn.
Even, this might work when you test, you shloudn't use SetTimer, but SetTimerEx.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)