Raised This Month: $ Target: $400
 0% 

Solved (HELP) Detect self grenade kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 06-07-2018 , 14:35   Re: (HELP) Detect self grenade kill
Reply With Quote #1

Ohh lol, forgot the check xD
Yes use this one
PHP Code:
#include <amxmodx>
#include <cstrike>

public plugin_init()
{
    
register_plugin("Self Detonate Check","0.0.1","SmileY");

    
register_event("DeathMsg","DeathMsg","a");
}

public 
DeathMsg()
{
    new 
Killer read_data(1);
    new 
Victim read_data(2);

    if(
Killer == Victim && get_user_weapon(Killer) == CSW_HEGRENADE)
    {
        new 
Name[32];
        
get_user_name(Victim,Name,charsmax(Name));

        
client_print(0,print_chat,"%s says: AL AKHBAR",Name);
    }

instinctpt1 is offline
Reply



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