diff --git a/addons/sourcemod/plugins/fixes/ip_leak_fix.smx b/addons/sourcemod/plugins/fixes/ip_leak_fix.smx new file mode 100644 index 000000000..9fc2f6c63 Binary files /dev/null and b/addons/sourcemod/plugins/fixes/ip_leak_fix.smx differ diff --git a/addons/sourcemod/scripting/ip_leak_fix.sp b/addons/sourcemod/scripting/ip_leak_fix.sp new file mode 100644 index 000000000..4da437446 --- /dev/null +++ b/addons/sourcemod/scripting/ip_leak_fix.sp @@ -0,0 +1,20 @@ +#include + +public Plugin myinfo = +{ + name = "[L4D2] Client IP Protector [2024]", + author = "backwards", + description = "Prevents clients with hacks from obtaining other players IP Addresses.", + version = "1.0" +}; + +public void OnPluginStart() +{ + HookEvent("player_connect", Event_PlayerConnect, EventHookMode_Pre); +} + +Action Event_PlayerConnect(Event event, const char[] name, bool dontBroadcast) +{ + event.BroadcastDisabled = true; + return Plugin_Continue; +} \ No newline at end of file