Better workspace

This commit is contained in:
2021-09-29 17:48:17 +01:00
parent 6ed7548661
commit 88b0281a7c
6 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,35 @@
/*
_inf_anti_rage_quit
Author: FutureRave
Date: 29/09/2021
*/
#include common_scripts\utility;
#include maps\mp\_utility;
init()
{
thread antiRageQuit();
}
antiRageQuit()
{
level endon( "game_ended" );
gameFlagWait( "prematch_done" );
for ( ;; )
{
wait( .5 );
// If it's only 2 people let them quit
if (level.players.size < 3) continue;
foreach( player in level.players )
{
if ( player.pers["team"] == "axis" )
{
player closepopupmenu( "" );
player closeingamemenu();
}
}
}
}