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