Raised This Month: $ Target: $400
 0% 

Detect awp hs kill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-14-2013 , 10:14   Detect awp hs kill
Reply With Quote #1

It's this method correct to detect hs kill with awp ?

Code:
#include <amxmodx>

public plugin_init() {
	
	register_event( "DeathMsg", "DeathMsg", "a" )
	
}

public DeathMsg() {
	
	new headshot=read_data(3) 
        new Victim=read_data(2)
	new weapon, HitPoint, attacker = get_user_attacker(Victim, weapon, HitPoint)
	
	if(weapon == CSW_AWP && headshot) {
		
		//awp hs kill
		
	}
	
}

Last edited by HamletEagle; 09-14-2013 at 10:16.
HamletEagle is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode