04.07.2011, 14:40
hi i want each faction to have diffrecnt colours (ex: Dan_Barocu is in faction yakuza) im from diffrect coountry i hope you get it!!
SetPlayerTeamFromClass(playerid, classid) { if (classid == 1) { gTeam[playerid] = TEAM_POLICE; } if(classid == 2) { gTeam[playerid] = TEAM_MAFIA; } } SetPlayerToTeamColor(playerid) { if (gTeam[playerid] == TEAM_POLICE) { SetPlayerColor(playerid, COLOR_AQUA); } else if (gTeam[playerid] == TEAM_MAFIA) { SetPlayerColor(playerid, COLOR_BROWN); } }