Post: Does anyone know the gsc script Anti End Game
07-26-2016, 01:26 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Lobby Setting > Anti End Game

if anyone knows tell me, thank you bro.
07-26-2016, 12:29 PM #2
    AntiEndGame()
{
level.hostforcedend = true;
self waittill("menuresponse", "endgame");
level.hostforcedend = false;
}


This is what i have setup, although there maybe a better method to do this.
If your game ends without you ending it yourself you will need to call
    level.hostforcedend = false;

before the game is set to end.

The following 2 users say thank you to OfficialCoolJay for this useful post:

DoraTheKiller97, Killer Be
07-27-2016, 06:04 AM #3
DoraTheKiller97
Treasure hunter
Originally posted by OfficialCoolJay View Post
    AntiEndGame()
{
level.hostforcedend = true;
self waittill("menuresponse", "endgame");
level.hostforcedend = false;
}


This is what i have setup, although there maybe a better method to do this.
If your game ends without you ending it yourself you will need to call
    level.hostforcedend = false;

before the game is set to end.


"If your game ends without you ending it yourself you will need to call"

Do you mean just how a game normally ends? Or if someone non-host ends the game anyway? Im a little confused.
07-27-2016, 06:10 AM #4
iRnZ
NextGenUpdate Elite
Originally posted by DoraTheKiller97 View Post
"If your game ends without you ending it yourself you will need to call"

Do you mean just how a game normally ends? Or if someone non-host ends the game anyway? Im a little confused.


if you host and some kids have tool end game he cant end it ;d
07-27-2016, 06:15 AM #5
DoraTheKiller97
Treasure hunter
Originally posted by iRnZ View Post
if you host and some kids have tool end game he cant end it ;d


So... when the game ends normally? Im just making sure this works lol
07-27-2016, 06:18 AM #6
Originally posted by DoraTheKiller97 View Post
"If your game ends without you ending it yourself you will need to call"

Do you mean just how a game normally ends? Or if someone non-host ends the game anyway? Im a little confused.


if ur playing team deathmatch and u get to 75 points right the game wont end haha you will need to toggle off the antiend game for it to end.
07-28-2016, 12:20 PM #7
Killer Be
Climbing up the ladder
Originally posted by OfficialCoolJay View Post
    AntiEndGame()
{
level.hostforcedend = true;
self waittill("menuresponse", "endgame");
level.hostforcedend = false;
}


This is what i have setup, although there maybe a better method to do this.
If your game ends without you ending it yourself you will need to call
    level.hostforcedend = false;

before the game is set to end.


please add "OFF" function to this script. thank you Happy
07-28-2016, 02:01 PM #8
Originally posted by Killer
please add "OFF" function to this script. thank you Happy


not that hard to setup a toggle for this yourself haha

    AntiEndGameToggle()
{
if(!IsDefined(level.hostforcedend) || !level.hostforcedend)
{
level.hostforcedend = true;
self iPrintln("Anti End Game: ^2Enabled");
while(IsDefined(level.hostforcedend))
{
self waittill("menuresponse", "endgame");
level.hostforcedend = false;
}
}
else
{
level.hostforcedend = false;
self iPrintln("Anti End Game: ^1Disabled");
}
}
Last edited by OfficialCoolJay ; 07-28-2016 at 02:03 PM.

The following user thanked OfficialCoolJay for this useful post:

Killer Be
07-29-2016, 03:20 PM #9
Killer Be
Climbing up the ladder
Originally posted by OfficialCoolJay View Post
not that hard to setup a toggle for this yourself haha

    AntiEndGameToggle()
{
if(!IsDefined(level.hostforcedend) || !level.hostforcedend)
{
level.hostforcedend = true;
self iPrintln("Anti End Game: ^2Enabled");
while(IsDefined(level.hostforcedend))
{
self waittill("menuresponse", "endgame");
level.hostforcedend = false;
}
}
else
{
level.hostforcedend = false;
self iPrintln("Anti End Game: ^1Disabled");
}
}


thank you bro D
08-18-2016, 12:54 AM #10
how does one use this? how do i implicate it? not as advanced yet, can anyone help? im looking for a anti-non-host-end-gaame tool

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo