16.08.2015, 16:02
Quote:
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; } Код:
if(!RestrictedSkin(playerid,iSkin)) return SCP(playerid,"This skin is reserved for faction"); |
Repped both for helping