Delay 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Delay class selection screen (
/showthread.php?tid=67658)
Delay class selection screen -
mascii - 03.03.2009
Hey everyone,
Just cant figgerout how to delay the class selection screen as i want the onplayerconnect screen to last longer. Mine only lasts like 1 second.
I have seen other servers last around 5 secs so this is possible
Thanks guys for your help
Re: Delay class selection screen -
Dujma - 03.03.2009
https://sampwiki.blast.hk/wiki/OnPlayerRequestClass
Re: Delay class selection screen -
mascii - 03.03.2009
Onplayerrequestclass yes ....
Doesn't say anything about delaying it.
Thx 4 helping
Re: Delay class selection screen -
Kriztian - 03.03.2009
Set a timer for 5 seconds and then make the timer start in OnPlayerRequestClass.
Re: Delay class selection screen -
mascii - 03.03.2009
Is this what u mean?
Код:
OnPlayerConnect(playerid)
{
SetTimer(OnPlayerRequestClass,5000,1);
}
If not could you please write, thankyou
Re: Delay class selection screen -
Mikep - 03.03.2009
Having alot of code makes the connect screen stay longer..
Re: Delay class selection screen -
mascii - 03.03.2009
mmmm yes, that's true
Any ideas? Thx
Re: Delay class selection screen -
krisk - 03.03.2009
You could try to set them to spectate wherever your connect screen are, and whenever you're ready to pass them to class selection, call the ForceClassSelection() and set their health to 0, that could/should do the job.
Re: Delay class selection screen -
mascii - 03.03.2009
Yeah thx for the tip, I also thought of spawning the player, freez player, then setting camera pos and lookat ( to a view I want)then set a timer to force class selection and health 0.0
A lot of work lol
Thx again