summaryrefslogtreecommitdiff
path: root/sourcemod/scripting/game_manager.sp
diff options
context:
space:
mode:
authornavewindre <nw@moneybot.cc>2023-11-21 08:31:47 +0100
committernavewindre <nw@moneybot.cc>2023-11-21 08:31:47 +0100
commit101833cf3c6abd2e5d69b056c7fb6cfe062a85b8 (patch)
tree35121845d097f17c17707f09c87fc017abdb3af4 /sourcemod/scripting/game_manager.sp
parent8fa5a23370c82437eb3cfcadf62fb05a43846ac6 (diff)
fix join team messages not showing
Diffstat (limited to 'sourcemod/scripting/game_manager.sp')
-rw-r--r--sourcemod/scripting/game_manager.sp12
1 files changed, 0 insertions, 12 deletions
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;
}