08.09.2012, 02:24
pawn Код:
new classid[MAX_PLAYERS] = 0;
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
if(classid[playerid] == 0)
{
gTeam[playerid] = GROVE_STREET;
}
if(classid[playerid] == 1)
{
gTeam[playerid] = POLICE;
}
if(classid[playerid] == 2)
{
gTeam[playerid] = TEAM 3;
}
if(classid[playerid] == 3)
{
gTeam[playerid] = TEAM 4;
}
// Etc.
}