22.07.2011, 12:55
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:
before
and
on top of OnPlayerSpawn.
Even, this might work when you test, you shloudn't use SetTimer, but SetTimerEx.
OnPlayerDeath:
pawn Код:
gPlayerDied[playerid]=1;
pawn Код:
SetTimer("RespawnHospital", 3500, 0);
pawn Код:
if(gPlayerDied[playerid]==1)
return 0;
Even, this might work when you test, you shloudn't use SetTimer, but SetTimerEx.