RadarSpotAll: Only spot zombies

This commit is contained in:
BotoX 2019-10-20 23:17:46 +02:00
parent 61263edff8
commit 7fdf8dce34

View File

@ -1,5 +1,6 @@
#include <sourcemod>
#include <sdkhooks>
#include <zombiereloaded>
#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);
}
}