Skin problem.
#3

You can't check every players using that function.
Use this code for "RestrictedSkin" stock
Код:
stock RestrictedSkin(playerid, id)
{
	switch(id)
	{
		case 124,129:
		{
			if(PlayerInfo[playerid][playerteam]<CORLE)
				return 0;
		}
		case 113,127:
		{
			if(PlayerInfo[playerid][playerteam]<WARLOCK)
				return 0;
		}
	}
  return 1;
}
And use this code to check :
Код:
if(!RestrictedSkin(playerid,iSkin)) return SCP(playerid,"This skin is reserved for faction");
Reply


Messages In This Thread
Skin problem. - by TheLegend1 - 16.08.2015, 15:12
Re: Skin problem. - by DaniceMcHarley - 16.08.2015, 15:15
Re: Skin problem. - by X337 - 16.08.2015, 15:20
Re: Skin problem. - by DaniceMcHarley - 16.08.2015, 15:32
Re: Skin problem. - by TheLegend1 - 16.08.2015, 15:56
Re: Skin problem. - by DaniceMcHarley - 16.08.2015, 15:56
Re: Skin problem. - by TheLegend1 - 16.08.2015, 16:02

Forum Jump:


Users browsing this thread: 2 Guest(s)