Question Is there a way to make an anti-hacker endgame?

DemonHax

Member
Messages
38
Points
8
I'm trying to make an anti-hacker endgame. So basically make to to where hackers cant end the game with an off host, but I cant figure out how to do it, I'm thinking the menu has to set a veruable inorder to end the game, so If verX doesnt = 1, than the game won't end, can any1 help me out with this?
 
Last edited:

CF4_99

Insane-Known Member
Messages
91
Points
443
Code:
AntiEndGameToggle()
{
    if(!IsDefined(level.hostforcedend))
    {
        level.hostforcedend = true;
        self iPrintln("Anti End Game: ^2ON");
        while(isDefined(level.hostforcedend))
        {
            self waittill("menuresponse", "endgame");
            level.hostforcedend = false;
        }
    }
    else
    {
        level.hostforcedend = false;
        self iPrintln("Anti End Game: ^1OFF");
    }
}
 

DemonHax

Member
Messages
38
Points
8
Code:
AntiEndGameToggle()
{
    if(!IsDefined(level.hostforcedend))
    {
        level.hostforcedend = true;
        self iPrintln("Anti End Game: ^2ON");
        while(isDefined(level.hostforcedend))
        {
            self waittill("menuresponse", "endgame");
            level.hostforcedend = false;
        }
    }
    else
    {
        level.hostforcedend = false;
        self iPrintln("Anti End Game: ^1OFF");
    }
}
Thank you
 

Top