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

Demon xModRx

Insane-Known Member
Messages
63
Reaction score
5
Points
358
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

Veteran
Messages
145
Reaction score
56
Points
888
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");
    }
}
 

Demon xModRx

Insane-Known Member
Messages
63
Reaction score
5
Points
358
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