From 7fdf8dce34064240113d7f40e1abd382f53f8b12 Mon Sep 17 00:00:00 2001 From: BotoX Date: Sun, 20 Oct 2019 23:17:46 +0200 Subject: [PATCH] RadarSpotAll: Only spot zombies --- RadarSpotAll/scripting/RadarSpotAll.sp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RadarSpotAll/scripting/RadarSpotAll.sp b/RadarSpotAll/scripting/RadarSpotAll.sp index 56ef2881..ed1c2bc2 100644 --- a/RadarSpotAll/scripting/RadarSpotAll.sp +++ b/RadarSpotAll/scripting/RadarSpotAll.sp @@ -1,5 +1,6 @@ #include #include +#include #pragma semicolon 1 #pragma newdecls required @@ -20,5 +21,8 @@ public void OnClientPutInServer(int client) public void OnPostThink(int client) { - SetEntProp(client, Prop_Send, "m_bSpotted", 1); + if(ZR_IsClientZombie(client)) + { + SetEntProp(client, Prop_Send, "m_bSpotted", 1); + } }