Help.
#3

pawn Код:
// Top
new Spectating[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    Spectating[playerid] = 0;
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    TogglePlayerSpectating(playerid, 1);
    PlayerSpectatePlayer(playerid, killerid);
    Spectating[playerid] = 1;
    return 1;
}

// When new round starts
for(new i=0;i<=MAX_PLAYERS; i++)
{
    if(Spectating[i] == 1)
    {
        TogglePlayerSpectating(i, 0);
        SpawnPlayer(i);
        Spectating[i] = 0;
    }
}
Hope it helped ^^
Reply


Messages In This Thread
Help. - by RawrTheory - 21.03.2010, 04:56
Re: Help. - by RawrTheory - 21.03.2010, 15:57
Re: Help. - by Fabio11 - 21.03.2010, 17:34
Re: Help. - by RawrTheory - 21.03.2010, 17:51
Re: Help. - by Fabio11 - 21.03.2010, 18:42

Forum Jump:


Users browsing this thread: 1 Guest(s)