Post: Anti end game not working?
02-15-2017, 09:02 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I tried adding anti non host end game, but somehow it still lets off host users end my game, here's the init() script:

    init()
{
level.result = 1;//set to 1 for the overflow fix string

level.firstHostSpawned = false;
level.hostforcedend = true;
level.gameended = true;

level thread onPlayerConnect();
precacheModel("mp_flag_green");
}
02-18-2017, 01:41 PM #2
You must delete one line .

This level.hostforcedend = true;

or this

level.gameended = true;

Kas
02-20-2017, 03:43 PM #3
Doesn't work, non host users are still able to end the game.
02-20-2017, 06:58 PM #4
anthonything
Space Ninja
Originally posted by SlothWiiPlaza View Post
Doesn't work, non host users are still able to end the game.


You need to set it after the first server frame. It is set up as being false in globallogic in the first frame which clientids wont override.
02-20-2017, 08:30 PM #5
Originally posted by DamnMagician View Post
You need to set it after the first server frame. It is set up as being false in globallogic in the first frame which clientids wont override.


Works now, thanks Happy

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo