Thread: Help
View Single Post
Old 02/09/2014, 09:40 PM   #6
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,571
Reputation: 187
Default Re: Help

Organize them. Place them like:
Code:
All police classes
[EMPTY LINE]
All civilian classes
Now, the first player class is 0, second is 1, third is 2 etc...

And then, use this with that tutorial.
pawn Code:
SetPlayerTeamFromClass(playerid, classid)
{
    switch (classid)
    {
        case 0 .. [END OF POLICE CLASSES]: gTeam[playerid] = POLICE;
        case [START OF CIVILIAN CLASSES] .. [END OF CIVILIAN CLASSES]: gTeam[playerid] = CIVILIAN;
    }
}
Stinged is offline   Reply With Quote