SA-MP Forums Archive
[SNIPPET/CODE] Custom skins in class selection! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: [SNIPPET/CODE] Custom skins in class selection! (/showthread.php?tid=644303)



[SNIPPET/CODE] Custom skins in class selection! - J0sh... - 05.11.2017

In case any of you guys want to use custom skins in class selection.
In order for this to work, one of the VALID skins that work with AddPlayerClass will be "redirected" to the custom skin.

How to use (preferably in OnGMInit):
PHP Code:
RedirectClass(28725000); // Will replace the ARMY skin id in class selection with our own custom skin with id 25000 
code:
https://pastebin.com/KXutyr4D

(This is messy code, I only used this for my localhost testing 0.3.8, I wasn't intending on needing to do this!)