sm-plugins/RadarSpotAll/scripting/RadarSpotAll.sp

29 lines
510 B
SourcePawn
Raw Normal View History

#include <sourcemod>
#include <sdkhooks>
2019-10-20 23:17:46 +02:00
#include <zombiereloaded>
#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)
{
2019-10-20 23:17:46 +02:00
if(ZR_IsClientZombie(client))
{
SetEntProp(client, Prop_Send, "m_bSpotted", 1);
}
}