From 61263edff8c69d7a74505f9212cd663e985d6099 Mon Sep 17 00:00:00 2001 From: BotoX Date: Sun, 20 Oct 2019 23:01:59 +0200 Subject: [PATCH] Add RadarSpotAll: Always spot every player --- RadarSpotAll/scripting/RadarSpotAll.sp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 RadarSpotAll/scripting/RadarSpotAll.sp diff --git a/RadarSpotAll/scripting/RadarSpotAll.sp b/RadarSpotAll/scripting/RadarSpotAll.sp new file mode 100644 index 00000000..56ef2881 --- /dev/null +++ b/RadarSpotAll/scripting/RadarSpotAll.sp @@ -0,0 +1,24 @@ +#include +#include + +#pragma semicolon 1 +#pragma newdecls required + +public Plugin myinfo = +{ + name = "RadarSpotAll", + author = "BotoX", + description = "Always spot every player on the radar.", + version = "1.0", + url = "" +}; + +public void OnClientPutInServer(int client) +{ + SDKHook(client, SDKHook_PostThink, OnPostThink); +} + +public void OnPostThink(int client) +{ + SetEntProp(client, Prop_Send, "m_bSpotted", 1); +}