SA-MP Forums Archive
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: Help (/showthread.php?tid=486105)



Help - [SU]Spartan - 07.01.2014

Help me please,
When a player Connects,when he presses the button SPAWN,I want the player to select with what skin he wishes to spawn.(+1 rep if you help)


Re: Help - Voxel - 07.01.2014

Uhm isn't it much easier to just use the class selection from OnGameModeInit?
https://sampwiki.blast.hk/wiki/AddPlayerClass
From sa-mp wiki:
pawn Код:
public OnGameModeInit()
{
    // People can spawn with either the CJ skin or The Truth skin.
    AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
    return 1;
}
I guess you could use ForceClassSelection under OnPlayerSpawn but then again it would be weird...
https://sampwiki.blast.hk/wiki/ForceClassSelection


Re: Help - [SU]Spartan - 07.01.2014

Thanks.