17.03.2013, 12:49
Too late. but by the way here's some simple example that they way i do mine.
PS: you can do Nero_3D or my ones. but it depends on you.
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
if(classid >= /*Grove classid here*/)
{
gTeam[playerid] = TEAM_GROVE;
}
if(classid >= /*Cop classid here*/)
{
gTeam[playerid] = TEAM_COPS;
}
if(classid >= /*Vagos classid here*/)
{
gTeam[playerid] = TEAM_VAGOS;
}
}