24.05.2016, 15:57
You can Use simple Functions which shows you if Player has invalid skin.
and then your Skin changing CMD or place:
PHP код:
stock IsInvalidSkin(skin)
{
#define MAX_INVALID_SKINS 15
new invalidSkins[MAX_INVALID_SKINS] =
{
// Your Invalid Skins
};
for (new i = 0; i < MAX_INVALID_SKINS; i++)
{
if (skin == invalidskinSkins[i] || skin < 0 || skin >= 300 ) return true;
}
return false;
}
PHP код:
if(IsInvalidSkin(YOURSKINIDVARIABLE)) return SendClientMessage(playerid, -1, "It is Invalid skin.");