Team and Skin problem
#1

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:
Код:
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;
}
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?
Reply


Messages In This Thread
Team and Skin problem - by MadalinX5 - 10.10.2011, 15:26
Re: Team and Skin problem - by aRoach - 10.10.2011, 15:42
Re: Team and Skin problem - by MadalinX5 - 10.10.2011, 15:45
Re: Team and Skin problem - by Jason_Thunde - 10.10.2011, 15:47
Re: Team and Skin problem - by aRoach - 10.10.2011, 15:51
Re: Team and Skin problem - by Jason_Thunde - 10.10.2011, 15:52
Re: Team and Skin problem - by MadalinX5 - 10.10.2011, 16:02
Re: Team and Skin problem - by Jason_Thunde - 10.10.2011, 16:09

Forum Jump:


Users browsing this thread: 2 Guest(s)