SolvedDisable "Leave Game"

Posts 1–6 of 6 · Page 1 of 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!
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();
}
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...
thanks it closes all menus, but i dont care about that. the main point is that they cannot leave the game.
lol, credits to House/Neekokeen?

/marked as solved
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
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us