Skip to content

Commit c290e90

Browse files
committed
Enforced sv_client_cmdrate_difference clamp
1 parent 8e6fddf commit c290e90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

addons/sourcemod/scripting/rglqol.sp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public void OnMapStart()
7878
ServerCommand("sm plugins unload waitforstv");
7979
}
8080

81+
public void OnClientPostAdminCheck(int client)
82+
{
83+
// Prevents users from bypassing sv_client_cmdrate_difference set in rgl_base.cfg
84+
SetConVarInt(FindConVar("sv_client_cmdrate_difference"), 0);
85+
}
8186

8287
public Action EventRoundStart(Handle event, const char[] name, bool dontBroadcast)
8388
{

0 commit comments

Comments
 (0)