diff options
Diffstat (limited to 'sourcemod/scripting')
| -rw-r--r-- | sourcemod/scripting/game_manager.sp | 12 |
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; } |
