25.04.2010, 21:01
Quote:
Originally Posted by Joe Torran C
Better way:
[code=OnGameModeInit]for(new s = 0; s < 299; s++) { if(IsValidSkin(s)) AddPlayerClass(s, X, Y, Z, A, -1, -1, -1, -1, -1, -1); }[/code] [code=Outside Callback]IsValidSkin(skinid) { #define MAX_BAD_SKINS (14) new badSkins[MAX_BAD_SKINS] = { 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289 }; for(new i = 0; i < MAX_BAD_SKINS; i++) { if(skinid == badSkins[i]) return false; } #undef MAX_BAD_SKINS return 1; }[/code] |