05.11.2015, 16:49
hmm , i got this on player death
pawn Код:
public OnPlayerDeath(playerid, killerid, reason){
if(GetServerCount() > 1)
{
SetPVarInt(playerid, "Geberdi", 1);
StartSpectate(playerid, GetRandomPlayer(playerid));
} else
if(GetServerCount() == 1)
{
ProgressForMap();
}
return true;
}
stock GetAliveCount(){
new p_Count;
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i)){
if(GetPVarInt(i, "Geberdi") == 0){
p_Count++;
}}}
return p_Count;
}