16.08.2015, 15:20
You can't check every players using that function.
Use this code for "RestrictedSkin" stock
And use this code to check :
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; }
Код:
if(!RestrictedSkin(playerid,iSkin)) return SCP(playerid,"This skin is reserved for faction");