try this...

This commit is contained in:
ineedbots 2021-09-07 23:53:27 -06:00
parent 52139cd0e9
commit cd43aa6162
3 changed files with 18 additions and 2 deletions

16
.vscode/settings.json vendored
View File

@ -10,5 +10,19 @@
"Compile current GSC File": [ "Compile current GSC File": [
"*.gsc" "*.gsc"
] ]
} },
"Lua.diagnostics.globals": [
"InheritFrom",
"CoD",
"LUI",
"Dvar",
"Engine",
"UIExpression",
"RegisterMaterial",
"GetTextDimensions",
"setstencil",
"HUD_IngameMenuClosed",
"HUD_IsFFA",
"HideGlobe"
]
} }

View File

@ -16,6 +16,8 @@ on_player_connect()
check_player_classes() check_player_classes()
{ {
self endon( "disconnect" );
for ( class_num = 0; class_num < 10; class_num++ ) for ( class_num = 0; class_num < 10; class_num++ )
{ {
allocationSpent = self GetLoadoutAllocation( class_num ); allocationSpent = self GetLoadoutAllocation( class_num );
@ -27,7 +29,7 @@ check_player_classes()
logline1 = "Player: " + self.name + " XUID: " + self getXUID() + " had too many items in their class."; logline1 = "Player: " + self.name + " XUID: " + self getXUID() + " had too many items in their class.";
print( logline1 ); print( logline1 );
kick( self getEntityNumber() ); kick( self getEntityNumber() );
break; return;
} }
} }
} }