06.05.2013, 03:50
What you would do is something like this:
Then
Edit: Oh, replied same minute as ******
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
switch (classid)
{
case 266,211,265,267,283,284,71,286://These will be cop skins
{
gTeam[playerid] = TEAM_COP;
}
default: //all other AddPlayerClass's will be civilians
{
gTeam[playerid] = TEAM_CIVIL;
}
}
}
pawn Код:
SetPlayerTeamFromClass(playerid, SkinID);