auto spec after death problem
#3

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;
}
Reply


Messages In This Thread
auto spec after death problem - by CraTzy - 05.11.2015, 15:11
Re: auto spec after death problem - by jeffery30162 - 05.11.2015, 16:19
Re: auto spec after death problem - by CraTzy - 05.11.2015, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)