Raised This Month: $ Target: $400
 0% 

Solved (HELP) Detect self grenade kill


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 06-07-2018 , 13:20   Re: (HELP) Detect self grenade kill
Reply With Quote #2

Yes its possible, here it is :

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_plugin("Self Nade Kill""1.0""DiGiTaL")
    
register_event("DeathMsg""onDeathMsgEvent""a");
}

public 
onDeathMsgEvent()
{
    new 
id read_data(2)
    new 
szWeapon[32];
    
read_data(4szWeaponcharsmax(szWeapon));
    if(
equal(szWeapon"grenade"))
        
client_print(idprint_chat"Self Nade kill xD")

instinctpt1 is offline
 



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 04:40.


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