View Single Post
Author Message
Austin
Senior Member
Join Date: Oct 2005
Old 09-06-2012 , 03:06   Event_PlayerHurt what weapon did the damage?
Reply With Quote #1

I have the following code to find the attacker and person taking damage.

Is there a way to find out if the weapon doing the damage was the AWP?
This is for CSGO.

PHP Code:
public Action:Event_PlayerHurt(Handle:event, const String:name[], bool:dontBroadcast)
{      
  new 
client_attacker GetClientOfUserId(GetEventInt(event"attacker"));
  new 
client GetClientOfUserId(GetEventInt(event"userid"));
 return 
Plugin_Continue;
 } 
Austin is offline