Help me? - 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 me? (
/showthread.php?tid=383884)
Help me? -
Mustafa6155 - 09.10.2012
Can someone help me with skins how to do this add an skin like u choose an officer u spawn another place and u shoow another skin u spawn another place

?
Re: Help me? -
YoYo123 - 09.10.2012
You need to add the AddPlayerClass function in the OnGameModeInit callback. For example if you choose an officer skin and you want it to spawn in the LSPD you add this line to the GameModeInit callback:
Код:
AddPlayerClass(280, 1545.1589, -1675.1914, 13.5598, 88.4566, 0, 0, 0, 0, 0, 0);
280 is the player skin. the 3 parameters after that are the coordinates of the spawn, etc. (see
https://sampwiki.blast.hk/wiki/AddPlayerClass)