pawn Код:
public OnGameModeInit()
{
for(new skinAtual = 0; skinAtual != 300; skinAtual++)
{
if (SkinValida(skinAtual))
{
AddPlayerClass(skinAtual, 2088.0701, 2074.0896, 10.8203, 273.3924, 0, 0, 0, 0, 0, 0);
}
continue;
}
return 1;
}
// Final do Game Mode
stock SkinValida(skinid)
{
new SkinInvalida[22] = {3, 4, 5, 6, 8, 42, 65, 74,86,119, 149, 208, 273, 289};
if (skinid < 0 || skinid > 299)
{
return false;
}
for (new i = 0; i != 22; ++i)
{
if (skinid == SkinInvalida[i])
{
return false;
}
continue;
}
return true;
}