SA-MP Forums Archive
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=355924)



Skins - Victim - 01.07.2012

Say, if I want someone to be able to select any skin when they spawn (299 of them according to the wiki) do I have to make separate AddPlayerClass lines for every skin, or is there a simple, shorter way?


Respuesta: Skins - [DOG]irinel1996 - 01.07.2012

You can do this:
pawn Код:
//In OnGameModeInit
for(new s = 0; s <= 299; s++)
{
    AddPlayerClass(s, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
    //The first parameter must be "s", DON'T change it.
}
Best regards!

PD: Victim clothes lover.