Delay class selection screen
#1

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
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerRequestClass
Reply
#3

Onplayerrequestclass yes ....

Doesn't say anything about delaying it.

Thx 4 helping
Reply
#4

Set a timer for 5 seconds and then make the timer start in OnPlayerRequestClass.
Reply
#5

Is this what u mean?

Код:
OnPlayerConnect(playerid)
{
SetTimer(OnPlayerRequestClass,5000,1);
}
If not could you please write, thankyou

Reply
#6

Having alot of code makes the connect screen stay longer..
Reply
#7

mmmm yes, that's true

Any ideas? Thx
Reply
#8

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.
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)