SA-MP Forums Archive
Class selection callback - 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: Class selection callback (/showthread.php?tid=280871)



Class selection callback - SourceCode - 03.09.2011

Its my first time using This call back, So what is the function to make only certain skins selectable? Addplayerclass?


Re: Class selection callback - cessil - 03.09.2011

AddPlayerClass will add selectable skins for the class selection, if you want to prevent someone from spawning then return 0 under OnPlayerRequestSpawn.

if you want only some skins to be visible for certain players then it can get a bit more advanced.