10.10.2011, 15:47
Try this not sure if it will work...
Код:
public OnPlayerRequestClass(playerid, classid) { if(GetPlayerSkin(playerid) == 280) { pTeam[playerid] = team_lspd; GivePlayerWeapon(playerid, 24, 90); GivePlayerWeapon(playerid, 31, 1000); SetPlayerColor(playerid, COLOR_DBLUE); } else if(GetPlayerSkin(playerid) == 287) { pTeam[playerid] = team_sasf; GivePlayerWeapon(playerid, 24, 90); GivePlayerWeapon(playerid, 31, 1000); SetPlayerColor(playerid, COLOR_GREEN); } else if(!(GetPlayerSkin(playerid) == 287 && GetPlayerSkin(playerid) == 280)) { pTeam[playerid] = team_civ; GivePlayerWeapon(playerid, 24, 90); SetPlayerColor(playerid, COLOR_WHITE); } return 1; }