I did not know what you wanted, but I edited the code and a copiled without errors, I did not test, see if it meets your request, in my opinion his mistake was to use so-called incorrect and does not include tf2.
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <tf2>
public Plugin:myinfo =
{
name = "Snow",
author = "Patrcik",
description = "My first plugin ever",
version = "1.0.0.0",
url = "http://www.sourcemod.net/"
}
public OnPluginStart()
{
HookEvent("player_death", Event_PlayerDeath)
}
public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
new victim_id = GetEventInt(event, "userid")
new victim = GetClientOfUserId(victim_id)
new Float:vec[3];
GetClientAbsOrigin(victim, vec);
TF2_AddCondition(victim,TFCond_TeleportedGlow, float(999));
}
public Action:OnClientTouch(item_healthkit, any:id)
{
new Float:vec[3];
GetClientAbsOrigin(id, vec);
TF2_AddCondition(id,TFCond_TeleportedGlow, float(999));
}
Regards.
__________________
My Plugins |
VIEW HERE | I accept private requests, send me a PM.
Buy respawn | Uber Recall | Grenade drop | Damage Supperssor
Meet the Medic | Disguise Expert | Crazy Jet
CZSBrasil TEAM