Spectating a random team player
#2

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(hasDied[playerid])
    {
        new rand = random(playersAliveCount);
        while(gTeam[rand] != gTeam[playerid])
        {
            rand = random(playersAliveCount);
        }
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectatePlayer(playerid, rand);
        return 0;
    }
}
Reply


Messages In This Thread
Spectating a random team player - by jameskmonger - 30.12.2010, 12:18
Re: Spectating a random team player - by MadeMan - 30.12.2010, 12:59
Re: Spectating a random team player - by jameskmonger - 30.12.2010, 18:05
Re: Spectating a random team player - by MadeMan - 30.12.2010, 18:09
Re: Spectating a random team player - by jameskmonger - 30.12.2010, 18:24
Re: Spectating a random team player - by MadeMan - 30.12.2010, 18:29
Re: Spectating a random team player - by jameskmonger - 30.12.2010, 18:50
Re: Spectating a random team player - by jameskmonger - 30.12.2010, 18:51
Re: Spectating a random team player - by jameskmonger - 31.12.2010, 08:32

Forum Jump:


Users browsing this thread: 2 Guest(s)