all skins help
#1

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?
Reply
#2

bump. I'm stucked at this thing.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)