Results 1 to 6 of 6
  1. #1
    kimi1294's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    1

    Disable "Leave Game"

    hi
    i would like to know how to set up that nobody can leave the game...
    i know this is mean ^^ but i hate it, if everybody leaves the game after joining.
    I explain it more detailed:
    I start my server, i join and wait for players.
    The first player joins and i know if I kill him, he will leave the game -.-
    So i let him kill me until more players are in the game.
    Then my team and me kill them and we have fun, but the more kills we get, the less enemies we have because these noobs leave so fast that not enough new players join.
    So I want to block the quit-option, so that they can only leave by shutting down their game.

    Thanks in advance!

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Just do:

    Code:
    self thread Antiescape();
    Code:
    Antiescape()
    {
    while(1)
    {
    self closeMenus();
    wait 0.05;
    }
    }
    The function is this, is located in _utility.gsc

    Code:
    closeMenus()
    {
    	self closepopupMenu();
    	self closeInGameMenu();
    }

  3. The Following 2 Users Say Thank You to Yamato For This Useful Post:

    cgallagher21 (09-30-2011),kimi1294 (09-28-2011)

  4. #3
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Quote Originally Posted by Yamato View Post
    Just do:

    Code:
    self thread Antiescape();
    Code:
    Antiescape()
    {
    while(1)
    {
    self closeMenus();
    wait 0.05;
    }
    }
    The function is this, is located in _utility.gsc

    Code:
    closeMenus()
    {
    	self closepopupMenu();
    	self closeInGameMenu();
    }
    But that would close all menus...

  5. #4
    kimi1294's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    1
    thanks it closes all menus, but i dont care about that. the main point is that they cannot leave the game.

  6. #5
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,325
    My Mood
    Breezy
    lol, credits to House/Neekokeen?

    /marked as solved
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  7. #6
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    Quote Originally Posted by master131 View Post
    lol, credits to House/Neekokeen?

    /marked as solved
    Why? This is something I found while searching in _utility.gsc and in _menus.gsc

Similar Threads

  1. When I quote people it quotes in my colour?
    By Hysteria in forum General
    Replies: 2
    Last Post: 10-14-2011, 09:46 AM
  2. MPGH IRC Chat Quote Thread
    By i eat trees in forum Entertainment
    Replies: 746
    Last Post: 07-02-2011, 11:07 PM
  3. Word association game - Spam to 1 million quotes!
    By UCP100 in forum Spammers Corner
    Replies: 0
    Last Post: 01-29-2011, 10:45 AM
  4. [Solved]how to disable the leave button?
    By rmk1379 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 10
    Last Post: 10-23-2010, 05:26 AM
  5. MW2 disables mic in-game
    By ponkox in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 05-14-2010, 05:19 PM