From 101833cf3c6abd2e5d69b056c7fb6cfe062a85b8 Mon Sep 17 00:00:00 2001 From: navewindre Date: Tue, 21 Nov 2023 08:31:47 +0100 Subject: fix join team messages not showing --- sourcemod/scripting/game_manager.sp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'sourcemod') diff --git a/sourcemod/scripting/game_manager.sp b/sourcemod/scripting/game_manager.sp index 90c83e9..e3246c1 100644 --- a/sourcemod/scripting/game_manager.sp +++ b/sourcemod/scripting/game_manager.sp @@ -306,18 +306,6 @@ public Action:Listener_JoinTeam( id, const String: command[], args ) { } public Action:Event_PlayerTeam( Handle:event, const String:name[], bool dontBroadcast ) { - new uid = GetEventInt( event, "userid" ); - new id = GetClientOfUserId( uid ); - new oldTeam = GetEventInt( event, "oldteam" ); - new newTeam = GetEventInt( event, "team" ); - - if( !CanJoinTeam( id, oldTeam, newTeam ) ) { - PrintCenterText( id, "team is full" ); - SetEventBroadcast( event, true ); - - return Plugin_Handled; - } - VerifyTeamCounts(); return Plugin_Continue; } -- cgit v1.2.3