InfectedGSC/raw/scripts/_inf_anti_rage_quit.gsc
2021-11-09 15:48:15 +00:00

36 lines
521 B
C

/*
_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 ( level.players.size < 3 ) continue; // If it's only 2 people let them quit
foreach ( player in level.players )
{
if ( player.pers["team"] == "axis" )
{
player closepopupmenu( "" );
player closeingamemenu();
}
}
}
}