Classid help
#2

pawn Код:
new classid[MAX_PLAYERS] = 0;
Then on request spawn you need to add some way to pick them, the class id can be up to any number, you would use it like this:

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.
}
In your function "SetPlayerTeamFromClass" You'd need to edit the same accordingly.
Reply


Messages In This Thread
Classid help - by trapstar2020 - 08.09.2012, 01:05
Re: Classid help - by vIBIENNYx - 08.09.2012, 02:24

Forum Jump:


Users browsing this thread: 1 Guest(s)