PDA

View Full Version : Connecting and wait



Loveboy
15th June 2013, 13:47
Hi Guys,
i have finished the can't move function, now, if the gametype / map starting, then players must wait. If the player come 14 seconds after the map has started, then he have only wait 6 seconds :D
But as i tried on Callback_StartGametype() and write thread maps\mp\gametypes\_begin::init();
Now if somebody should connect 16 seconds after the map has started, then he have to wait only 4 secounds.
But on Callback_StartGametype() it doesnt work. Do somebody know where i can place it the thread maps\mp\gametypes\_begin::init(); ?

If yes please answer back. Thank you

kung foo man
15th June 2013, 13:53
Like I said in this thread: http://killtube.org/showthread.php?1416-Some-questions-about-Allies-and-Axis

You need to have a global gametype-thread which is freezing everybody on round-restart, wait 4, and then unfreezing all again. The array of "all" is always the latest players with getentarray("player", "classname");