SA-MP Forums Archive
How to make a Class PICKUP - 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: How to make a Class PICKUP (/showthread.php?tid=384853)



How to make a Class PICKUP - KingPilot - 13.10.2012

Hello, i create some class on my server [a begginer server] but when i enter it just appear the first class with the first skin, how do i change it? how do i make a menu so the user can pick a class?


Re: How to make a Class PICKUP - Norhy - 13.10.2012

Use ShowPlayerDialog (https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog) in the public OnPlayerRequestClass.


Re: How to make a Class PICKUP - gtakillerIV - 13.10.2012

Under OnGameModeInit()

PHP код:
AddPlayerClass(01958.331343.1215.36269.1526362815000);
    
AddPlayerClass(1,212.9686,1822.9299,6.4141,271.7795,0,0,0,0,0,0);
    
AddPlayerClass(2,212.9686,1822.9299,6.4141,271.7795,0,0,0,0,0,0);
    
AddPlayerClass(3,212.9686,1822.9299,6.4141,271.7795,0,0,0,0,0,0);
    
AddPlayerClass(4,212.9686,1822.9299,6.4141,271.7795,0,0,0,0,0,0); 
Use AddPlayerClass to add classes.