all skins help - 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: all skins help (
/showthread.php?tid=461260)
all skins help -
Uberanwar - 01.09.2013
Hi guys, I'm trying to add all skins in my gamemode. I need a little help here.
Quote:
for(new i = 0; i < 299; i++)
{
AddPlayerClass(i, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
}
|
This is the original code
Quote:
for(new i = 0; i < 287; i++)
{
AddPlayerClass(i, x, y, z, 0, 0, 0, 0, 0, 0); //Replace x, y, z to your coordinates.
}
|
If you see I changed the code from
for(new i = 0; i < 287; i++) to
for(new i = 0; i < 299; i++)
because 299 is the maximum skin, and it means I added all the skins (
https://sampwiki.blast.hk/wiki/Skins:All), is it correct?
Re: all skins help -
Uberanwar - 01.09.2013
bump. I'm stucked at this thing.
Re: all skins help -
ProjectMan - 01.09.2013
Seems correct but you must remember a few things.
1. The class ID starts from 0.
2. You will mess up the class ID if the newly added skins are not added
after the last class ID if you already have the code relating to it.