[SOLVED] About skins...
#1

hello is there any function that could put all skins in class selection?
my friend told me there was so i just wanted to ask you guys whats the function..
I really dont like the function AddPlayerClass...

thanks,
Lorenc
Reply
#2

*bump*
Reply
#3

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
Reply
#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
#5

Quote:
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;
}
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);
  }
}
Thanks!

Quote:
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
Ok sorry kaisersouse I forgot to read the topic =(
Thanks for the info btw.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)