skins - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: skins (
/showthread.php?tid=296109)
skins -
manchestera - 09.11.2011
So i know how to adding skins to the scritp but i would like to added all the skin with out doing it one by one.
Many thanks
Re: skins -
grand.Theft.Otto - 09.11.2011
Don't be lazy and add them yourself:
https://sampwiki.blast.hk/wiki/Category:Skins
Or search and try to find an array with all the skins.
Re: skins -
Stigg - 09.11.2011
What server version you using 3.c or 3.d
For 3.c
pawn Код:
public OnGameModeInit()
{
for(new i = 0; i < 299; i++)
{
if(IsValidSkin(i))
{
AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
}
return 1;
}
stock IsValidSkin(SkinID)
{
if(0 < SkinID < 300)
{
switch(SkinID)
{
case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
}
return 1;
}
return 0;
}
For 3.d
pawn Код:
public OnGameModeInit()
{
for(new i = 0; i < 299; i++)
{
AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
return 1;
}
Gives all skins.
Re: skins -
manchestera - 09.11.2011
Thanks for your help.
Re: skins -
Stigg - 09.11.2011
Quote:
Originally Posted by manchestera
All you had to say was use a array smartass.
|
Next time I shant bother. Little fecker.
And there loops, not array's numb nuts.