View Single Post
TerroriZe
Member
Join Date: Dec 2009
Old 12-14-2009 , 17:31   Re: Proper way to deal damage without extensions
Reply With Quote #10

I got 2 questions :

1.) Can you fake headshot damage as well? I basically want to create fake damage which kills somebody with a headshot...

2.) Im a bit confused... why is this method failing? ->

Code:
new Handle:event_hurt = CreateEvent("player_hurt");
SetEventInt(event_hurt, "userid", GetClientUserId(victim));
SetEventInt(event_hurt, "attacker", GetClientUserId(client));
SetEventInt(event_hurt, "dmg_health", health+1);
SetEventString(event_hurt, "weapon", weapon);
SetEventBool(event_hurt, "headshot", headshot);
FireEvent(event_hurt);
And how to use it, if not like that?
TerroriZe is offline