10.10.2011, 15:26
Hello. I am trying to make a team system based on what skin you select at the respawn. But the problem is it doesn't detect few skins.
Example:
I did define the teams and pTeam. If I choose the Soldier skin (287) I become team_sasf, but if I choose cop skin (280) i get team_civ.
Yes i did AddPlayerClass both the skins.
Can someone please help me?
Example:
Код:
public OnPlayerRequestClass(playerid, classid) { if(GetPlayerSkin(playerid) == 280) { pTeam[playerid] = team_lspd; GivePlayerWeapon(playerid, 24, 90); GivePlayerWeapon(playerid, 31, 1000); SetPlayerColor(playerid, COLOR_DBLUE); } if(GetPlayerSkin(playerid) == 287) { pTeam[playerid] = team_sasf; GivePlayerWeapon(playerid, 24, 90); GivePlayerWeapon(playerid, 31, 1000); SetPlayerColor(playerid, COLOR_GREEN); } else { pTeam[playerid] = team_civ; GivePlayerWeapon(playerid, 24, 90); SetPlayerColor(playerid, COLOR_WHITE); } return 1; }
Yes i did AddPlayerClass both the skins.
Can someone please help me?