05.07.2010, 17:15
Код:
for(new i = 0; i < 299; i++) { if(IsValidSkin(i)) { AddPlayerClass(i,-1327.804,-214.589,14.529,0.0,0,0,0,0,0,0); } }
Код:
IsValidSkin(skinid) { #define MAX_BAD_SKINS 22 new badSkins[MAX_BAD_SKINS] = { 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 265, 266, 267, 268, 269, 270, 271, 272, 273, 289 }; if (skinid < 0 || skinid > 299) return false; for (new i = 0; i < MAX_BAD_SKINS; i++) { if (skinid == badSkins[i]) return false; } #undef MAX_BAD_SKINS return 1; }