18.07.2009, 21:19
pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0||classid == 1||classid == 2)
{
gTeam[playerid] = TEAM_GROVE;
}
else if(classid == 3||classid == 4||classid == 5)
{
gTeam[playerid] = TEAM_BALLA;
}
}
OnPlayerRequestClass(playerid,classid)
{
SetPlayerTeamFromClass(playerid, classid);
}