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=461962)



Skins - Hade. - 04.09.2013

Can someone help me on how can i get all the skins on my server without addind the addplayerclasses under ongamemode int.


Re: Skins - Konstantinos - 04.09.2013

Unfortunately, you cannot. But you can use:
pawn Код:
public OnGameModeInit( )
{
    for( new s = 0; s < 300; s++ ) if( s != 74 ) AddPlayerClass( s, /* CHANGE THEM.. NOT THE "AddPlayerClass( s, " BUT THE REST */spawn_x, spawn_y, spawn_z, z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo );
    return 1;
}
For less lines, if that bothers you.


Re: Skins - Hade. - 04.09.2013

I ment something like that..

The point was that i wouldnt have to write all of the 299 lines