26.01.2010, 08:58
Above GameModeInit()
Under GameModeInit()
Код:
IsValidSkin(skinid) { #define MAX_BAD_SKINS 22 new badSkins[MAX_BAD_SKINS] = { 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 268, 273, 289 }; if (skinid < -1 || skinid > 300) return false; for (new i = 0; i < MAX_BAD_SKINS; i++) { if (skinid == badSkins[i]) return false; } #undef MAX_BAD_SKINS return 1; }
Код:
AddPlayerClass(0, x, y, z, a, wep1, ammo1, wep2, ammo2, wep3, ammo3); /*Here CJ must be because he doesnt get defined else*/ for(new i = 0; i < 300; i++) { if(IsValidSkin(i)) { AddPlayerClass(i, x, y, z, a, wep1, ammo1, wep2, ammo2, wep3, ammo3); } }