Raised This Month: $ Target: $400
 0% 

[REQ] Knife Kill HP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AdogeN
Senior Member
Join Date: Feb 2007
Old 07-04-2008 , 01:05   Re: [REQ] Knife Kill HP
Reply With Quote #1

I was tested. good working. sure for TK.
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#define PLUGIN "AdogeN"
#define VERSION "1.0"
#define AUTHOR "Knife Kill Bonus"
new maxhealth
public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    maxhealth = 100
 
    register_event("DeathMsg", "eDeath", "a");
}
public eDeath(  )
{
    new killer = read_data(1)
 
    new clip, ammo, weapon = get_user_weapon(killer,clip,ammo)
 
    if(weapon == CSW_KNIFE)
    {
        new killerhealth
        killerhealth = get_user_health(killer)
 
        if(killerhealth > maxhealth)
        {
            set_user_health(killer, maxhealth)
        }
        else
        {
            set_user_health(killer, maxhealth)
        }
    }
}

Last edited by AdogeN; 07-04-2008 at 01:11.
AdogeN 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 19:45.


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