How to call "Class Selection screen" ? - 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 call "Class Selection screen" ? (
/showthread.php?tid=557266)
How to call "Class Selection screen" ? -
Adarsh007 - 13.01.2015
I need help...
Currently I am using a timer on player connect to show login screen.
As I am using a timer now for login dialog after completing it I don't see real class selecting screen on screen ! I mean I see only buttons but no skins I have to first click on left/right button to see skins.
Is there any function which calls the class selection screen.so I can see my skins directly when it shows without clicking on Left/Right
Re: How to call "Class Selection screen" ? -
Threshold - 13.01.2015
pawn Код:
//When a player logs in successfully:
OnPlayerRequestClass(playerid, 0);
Put that line in the same place where the player logs in successfully. This will call the callback 'OnPlayerRequestClass' with the parameters 'playerid' and '0'.
OnPlayerRequestClass has two parameters, "playerid" and "classid". You simply substitute 'playerid' for itself, and '0' for classid. (Classes begin at 0, so by substituting '0', you are going straight to the first skin)
Re: How to call "Class Selection screen" ? -
Adarsh007 - 13.01.2015
I will try it thanks