Just making me look @ the brdige...
#4

Yes but thats not enough info is it?

Try this,
pawn Код:
Speccing(playerid)
{
    new Float:Health;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        GetPlayerHealth(i, Health);
        if(Health < 1) continue;
        if(mTeam[playerid] == mTeam[i])
        {
            TogglePlayerSpectating(playerid, 1);
            PlayerSpectatePlayer(playerid, i);
            break;
        }

        if(TeamCounting[mTeam[playerid]-1] == 0)
        {
            TogglePlayerSpectating(playerid, 1);
            PlayerSpectatePlayer(playerid, i);
            break;
        }
    }
}
Check this page,
https://sampwiki.blast.hk/wiki/PlayerSpectatePlayer
Reply


Messages In This Thread
Just making me look @ the brdige... - by LifeStyle - 05.09.2010, 14:44
Re: Just making me look @ the brdige... - by iggy1 - 05.09.2010, 14:48
Re: Just making me look @ the brdige... - by WillyP - 05.09.2010, 14:50
Re: Just making me look @ the brdige... - by iggy1 - 05.09.2010, 14:51
Re: Just making me look @ the brdige... - by LifeStyle - 05.09.2010, 14:58
Re: Just making me look @ the brdige... - by iggy1 - 05.09.2010, 15:03

Forum Jump:


Users browsing this thread: 1 Guest(s)