From 1ac5191046672c87c1b46a1d72a8a34413223c13 Mon Sep 17 00:00:00 2001 From: BotoX Date: Sun, 3 Nov 2019 21:38:11 +0100 Subject: [PATCH] RadarSpotAll: mode 1 (zm only) show spotted cts too --- RadarSpotAll/scripting/RadarSpotAll.sp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/RadarSpotAll/scripting/RadarSpotAll.sp b/RadarSpotAll/scripting/RadarSpotAll.sp index 4a10af72..ea80b000 100644 --- a/RadarSpotAll/scripting/RadarSpotAll.sp +++ b/RadarSpotAll/scripting/RadarSpotAll.sp @@ -82,7 +82,18 @@ public void OnThinkPost(int entity) if(!g_RadarMode) return; - SetEntDataArray(entity, g_hPlayerSpotted, g_aSpottedPlayers, MAXPLAYERS+1, 1, true); + if(g_RadarMode == 1) + { + for(int client = 1; client < MaxClients; client++) + { + if(g_aSpottedPlayers[client]) + SetEntData(entity, g_hPlayerSpotted + client, 1, 1, true); + } + } + else + { + SetEntDataArray(entity, g_hPlayerSpotted, g_aSpottedPlayers, MAXPLAYERS+1, 1, true); + } }