Skip to content

Commit

Permalink
Merge branch 'SirPlease:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
altair-sossai authored Jun 30, 2024
2 parents c60ee1d + ffb7276 commit 9ce12d1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Binary file added addons/sourcemod/plugins/fixes/ip_leak_fix.smx
Binary file not shown.
20 changes: 20 additions & 0 deletions addons/sourcemod/scripting/ip_leak_fix.sp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <sourcemod>

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;
}

0 comments on commit 9ce12d1

Please sign in to comment.