Results 1 to 2 of 2

Thread: Connecting and wait

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    Connecting and wait

    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
    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

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Like I said in this thread: http://killtube.org/showthread.php?1...llies-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");
    timescale 0.01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •