Delay class selection
#1

I heard people , : 'put lots of things in OnPlayerConnect'.

but that won't help if you are making a new gamemode. What is a good solution to the problem of delaying the class selection.
Because i see the Class Selection to fast.
Reply
#2

as far as i know this isnt possible
Reply
#3

Force the player spawn on connect and set their camera some where. Then set a timer to force class selection and kill them?
Reply
#4

that is a bit weird... At a lot of servers like partyserver, i see that bridge for quite long alon with textdraw.. how to do so?
Reply
#5

Thats probably just because they have fuck loads of data to read and write onplayerconnect? And it doesn't quite get round to the class selection screen until tht is done.

Anyway, try putting this function in.

Код:
stock Wait(time)
{
	new stamp = tickcount();
	while (tickcount() - stamp < time)
	{
	}
	return 1;
}
Add that anywhere in the script, just under your defines maybe?

then use this function
Код:
Wait(time);
Good luck.
Reply
#6

And if i do Wait(10);

1) Will it hold for 10 sec and resume after that automatically?
Reply
#7

10 = 10 milliseconds, you need 10,000 (without the comma)
Reply
#8

But still will it hold for 10 sec and will it resume to class selection after those 10 sec?
Reply
#9

Should do, give it a try.
Reply
#10

Dont use Wait().This will stop your server for the given XYms.
No sync will be done in this time,so your players will get annoyed :\.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)