Skip Selection Buttons - 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: Skip Selection Buttons (
/showthread.php?tid=616944)
Skip Selection Buttons -
vassilis - 13.09.2016
Is there a way i could avoid class selection buttons? I want to avoid class selection for registered members since they automatically spawn with their saved skin. However, everytime i login i see class selection for some seconds(around 2-3) until i get automatically spawned. How can i avoid class selection buttons? ( < > Spawn)
Re: Skip Selection Buttons -
Rufio - 13.09.2016
SetSpawnInfo
SpawnPlayer
Put these to OnPlayerRequestClass under a variable that detects if the player is a registered member.
Add a variable again to OnPlayerSpawn to check if the player is a registered member and set their skin to their saved skin.
Re: Skip Selection Buttons -
vassilis - 13.09.2016
Quote:
Originally Posted by Rufio
SetSpawnInfo
SpawnPlayer
Put these to OnPlayerRequestClass under a variable that detects if the player is a registered member.
Add a variable again to OnPlayerSpawn to check if the player is a registered member and set their skin to their saved skin.
|
Already tried that didnt work...
Re: Skip Selection Buttons -
Gammix - 13.09.2016
Using
SetTimerEx, inside the timer's callback, use
SpawnPlayer. I guess an interval of
250 should be good for the timer. Or you can also use this as the interval:
(GetPlayerPing(playerid) + 150).
Re: Skip Selection Buttons -
Rufio - 13.09.2016
I don't really think there is any other option. Mind sharing the code you tried so I can try to help you out?
Re: Skip Selection Buttons -
SyS - 13.09.2016
try this
https://sampforum.blast.hk/showthread.php?tid=574072