Skip to content

Commit 96682fa

Browse files
authored
fix: do not set cookies to fake clients (#7)
1 parent 3cb8c49 commit 96682fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

addons/sourcemod/scripting/LagCompensation.sp

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public Plugin myinfo =
1818
name = "LagCompensation",
1919
author = "BotoX, Vauff, .Rushaway, maxime1907",
2020
description = "",
21-
version = "1.0.6",
21+
version = "1.0.7",
2222
url = ""
2323
};
2424

@@ -1408,7 +1408,7 @@ public Action OnToggleLagCompSettings(int client, int args)
14081408

14091409
public void ToggleLagCompSettings(int client)
14101410
{
1411-
if(!client)
1411+
if(!client || !IsClientInGame(client) || IsFakeClient(client))
14121412
return;
14131413

14141414
g_bDisableLagComp[client] = !g_bDisableLagComp[client];
@@ -1419,7 +1419,7 @@ public void ToggleLagCompSettings(int client)
14191419

14201420
public void ToggleLagCompMessages(int client)
14211421
{
1422-
if(!client)
1422+
if(!client || !IsClientInGame(client) || IsFakeClient(client))
14231423
return;
14241424

14251425
g_bLagCompMessages[client] = !g_bLagCompMessages[client];
@@ -1515,4 +1515,4 @@ public int MenuHandler_MainMenu(Menu menu, MenuAction action, int client, int se
15151515
}
15161516
}
15171517
return 0;
1518-
}
1518+
}

0 commit comments

Comments
 (0)