25.03.2009, 23:20
So im trying to get this script to auto add these skins. So heres what i got under OnGameModeInit:
Here is my two arrays.
But when i open the game up and join, the skins load, but there are like 20 of each.... What is wrong with it?
Код:
for(new i = 0; i < sizeof(CivSkins); i++)
{
for(new b = 0; b < sizeof(BadSkins); b++)
{
if(BadSkins[b] != CivSkins[i])
{
AddPlayerClass(CivSkins[i],2028.8048,1551.5974,26.5878,90.0,0,0,0,0,0,0);
}
else
{
printf("WARNING: Bad skin detected. ID %d.",CivSkins[i]);
}
}
}
Код:
new BadSkins[15] =
{
3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289
};
new CivSkins[4] =
{
271,
270,
269,
272
};

