forked from SirPlease/L4D2-Competitive-Rework
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'SirPlease:master' into master
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |