01.09.2015, 15:57
hello guys i'm developing a gamemode wich is DM RACE ,
when the player die he should be specing other players till the race finish but the problem is that the player doesn't spec when he die but he spawn !
tried this but still not working![Sad](images/smilies/sad.gif)
when the player die he should be specing other players till the race finish but the problem is that the player doesn't spec when he die but he spawn !
tried this but still not working
![Sad](images/smilies/sad.gif)
PHP код:
public OnPlayerDeath(playerid, killerid, reason){
if(GetServerCount() > 1)
{
SetPVarInt(playerid, "Dead", 1);
PlayerSpectateVehicle(playerid, GetRandomPlayer(playerid));
} else
if(GetServerCount() == 1)
{
ProgressForMap();
}
return true;
}