- I don't see event in game when tagrenade_projectile explode or destroyed.
*edit
This is odd. When I hooked event, then it start working in net_showevents 2 :S
Spoiler
PHP Code:
Game Event Fired: tagrenade_detonate
Server event "tagrenade_detonate", Tick 110583:
- "userid" = "12"
- "entityid" = "312"
- "x" = "1442.03"
- "y" = "-1072.23"
- "z" = "-203.54"
- Start use CheckCommandAccess, it's flexible, not need re-compile plugin or create Convars for "flags".
updated, using event.
PHP Code:
#include <sdktools>
public void OnPluginStart()
{
HookEventEx("tagrenade_detonate", tagrenade_detonate);
}
public void tagrenade_detonate(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(event.GetInt("userid"));