[SOLVED] About skins...
#4

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;
}
Under GameModeInit()
Код:
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);
  }
}
Reply


Messages In This Thread
[SOLVED] About skins... - by Lorenc_ - 26.01.2010, 06:20
Re: [HELP] About skins... - by Lorenc_ - 26.01.2010, 08:24
Re: [HELP] About skins... - by deather - 26.01.2010, 08:32
Re: [HELP] About skins... - by bajskorv123 - 26.01.2010, 08:58
Re: [HELP] About skins... - by Lorenc_ - 26.01.2010, 09:28

Forum Jump:


Users browsing this thread: 1 Guest(s)