summaryrefslogtreecommitdiff
path: root/sourcemod
diff options
context:
space:
mode:
Diffstat (limited to 'sourcemod')
-rw-r--r--sourcemod/scripting/game_manager.sp5
1 files changed, 2 insertions, 3 deletions
diff --git a/sourcemod/scripting/game_manager.sp b/sourcemod/scripting/game_manager.sp
index e3246c1..3fcd3c7 100644
--- a/sourcemod/scripting/game_manager.sp
+++ b/sourcemod/scripting/game_manager.sp
@@ -227,7 +227,7 @@ public Action:RespawnPlayerDeathmatch( Handle:timer, any:userid ) {
CS_RespawnPlayer( id );
}
-public VerifyTeamCounts() {
+public Action:VerifyTeamCounts( Handle:timer, any:unused ) {
new entToKickT = 0;
new entToKickCT = 0;
new countCT = 0;
@@ -301,12 +301,11 @@ public Action:Listener_JoinTeam( id, const String: command[], args ) {
return Plugin_Handled;
}
- VerifyTeamCounts();
return Plugin_Continue;
}
public Action:Event_PlayerTeam( Handle:event, const String:name[], bool dontBroadcast ) {
- VerifyTeamCounts();
+ CreateTimer( 0.2, VerifyTeamCounts, 0, 0 );
return Plugin_Continue;
}