mirror of
https://github.com/diamante0018/InfectedGSC.git
synced 2025-06-28 23:31:50 +00:00
Better workspace
This commit is contained in:
35
raw/scripts/_inf_anti_rage_quit.gsc
Normal file
35
raw/scripts/_inf_anti_rage_quit.gsc
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user