mirror of
https://github.com/diamante0018/InfectedGSC.git
synced 2025-04-19 04:12:52 +00:00
36 lines
521 B
C
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();
|
|
}
|
|
}
|
|
}
|
|
}
|