Add RadarSpotAll: Always spot every player
This commit is contained in:
parent
8ad71023ad
commit
61263edff8
24
RadarSpotAll/scripting/RadarSpotAll.sp
Normal file
24
RadarSpotAll/scripting/RadarSpotAll.sp
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#include <sourcemod>
|
||||||
|
#include <sdkhooks>
|
||||||
|
|
||||||
|
#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)
|
||||||
|
{
|
||||||
|
SetEntProp(client, Prop_Send, "m_bSpotted", 1);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user