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

View File

@ -16,6 +16,8 @@ on_player_connect()
check_player_classes()
{
self endon( "disconnect" );
for ( class_num = 0; class_num < 10; 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.";
print( logline1 );
kick( self getEntityNumber() );
break;
return;
}
}
}