Team problem
#2

What you would do is something like this:
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;
        }
     }
}
Then
pawn Код:
SetPlayerTeamFromClass(playerid, SkinID);
Edit: Oh, replied same minute as ******
Reply


Messages In This Thread
Team problem - by Squirrel - 06.05.2013, 02:54
Re: Team problem - by vvhy - 06.05.2013, 03:50
AW: Team problem - by Squirrel - 06.05.2013, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)