Command failure?
#10

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(GetPlayerTeam(playerid) == 1)
    {
        SetPlayerCheckpoint(playerid, X, Y, Z);
    } else {
        SetPlayerCheckpoint(playerid, X, Y, Z);
    }
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(GetPlayerTeam(playerid) == 1)
    {
        //code for team 1
    } else {
        //code for team 2
    }
}
just replace GetPlayerTeam(playerid) with gteam[playerid]
Reply


Messages In This Thread
Command failure? - by -Rebel Son- - 27.05.2010, 00:03
Re: Command failure? - by coole210 - 27.05.2010, 00:07
Re: Command failure? - by -Rebel Son- - 27.05.2010, 00:18
Re: Command failure? - by Toni - 27.05.2010, 00:22
Re: Command failure? - by -Rebel Son- - 27.05.2010, 00:29
Re: Command failure? - by Nero_3D - 27.05.2010, 01:08
Re: Command failure? - by -Rebel Son- - 27.05.2010, 01:14
Re: Command failure? - by Nero_3D - 27.05.2010, 01:27
Re: Command failure? - by -Rebel Son- - 27.05.2010, 01:39
Re: Command failure? - by Nero_3D - 27.05.2010, 02:28

Forum Jump:


Users browsing this thread: 1 Guest(s)