09.09.2013, 13:48
Lets say your class/team variable is:
GetPlayerClass[MAX_PLAYERS];
and your teams where say:
TEAM_ONE
and
TEAM_TWO
It would look like:
GetPlayerClass[MAX_PLAYERS];
and your teams where say:
TEAM_ONE
and
TEAM_TWO
It would look like:
pawn Код:
if(GetPlayerClass[playerid] == TEAM_ONE)
{
//They ARE in TEAM_ONE
}
else if(GetPlayerClass[playerid] != TEAM_TWO)
{
//They are NOT in TEAM_TWO
}
//Etc..