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); } }
Originally Posted by [NWA
Hannes ]
Above 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); } } |
Originally Posted by |)ЂΩ†{−}ЂR™ – Dare To Die
b) Do not bump
Some people apparently think they are important enough to bump their own topic after 10 minutes. You can bump topics when the last reply is at least 12 hours old. For more information read http://forum.sa-mp.com/index.php?topic=67900.0 |