Raised This Month: $51 Target: $400
 12% 

[REQ] Knife Kill HP


Post New Thread Reply   
 
Thread Tools Display Modes
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 07-03-2008 , 04:09   Re: [REQ] Knife Kill HP
Reply With Quote #11

why you bump this ?
__________________
I am out of order!
grimvh2 is offline
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 07-03-2008 , 05:14   Re: [REQ] Knife Kill HP
Reply With Quote #12

none of the plugins posted workd the way i askd. ima test them agen right now to tell you whats wrong wit them

EDIT 1: 1st plugin, when i get a knife kill it sets me to
(Terrorist) [mrpanda.NET] General : weapon: , health: 192370656, armor:

EDIT 2: 2nd plugin, is good but, can it b made so you dont gain HP by attacking your teammate, and can u make a cvar for an hp limit and whether it saves from round to round.. and also can someone make a cvar that lets you choose if people get hp for damaging people rather then killing them because with the plugin now, you get hp by dealing any knife damage to a player.

Last edited by letgoofmyeggs; 07-03-2008 at 05:44.
letgoofmyeggs is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-03-2008 , 13:28   Re: [REQ] Knife Kill HP
Reply With Quote #13

Done.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
AdogeN
Senior Member
Join Date: Feb 2007
Old 07-04-2008 , 01:05   Re: [REQ] Knife Kill HP
Reply With Quote #14

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
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 07-04-2008 , 03:50   Re: [REQ] Knife Kill HP
Reply With Quote #15

Quote:
Originally Posted by X-olent View Post
Done.
you did not set a cvar for the maximum hp
__________________
I am out of order!
grimvh2 is offline
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 07-04-2008 , 15:32   Re: [REQ] Knife Kill HP
Reply With Quote #16

i no i don think he read my last post but i pmd him about it.
letgoofmyeggs is offline
radakina
Junior Member
Join Date: Jun 2008
Old 11-30-2008 , 14:58   Re: [REQ] Knife Kill HP
Reply With Quote #17

thank you boys ;)

gj
radakina is offline
jarmenz
Member
Join Date: Feb 2011
Location: Riga, Latvia
Old 02-23-2011 , 16:26   Re: [REQ] Knife Kill HP
Reply With Quote #18

Can someone please tell how to catch knife kill, regular kill, and head shot kill separately?

I want to make a plugin for gun game, its possible there is something like that but search didn`t give me the results I wanted to find and this is no small forum .
__________________
"We view the distant peaks which are our destination with enthusiasm but actually that destination is achieved by the drudgery of single footsteps."
Geoff Burch
jarmenz 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 22:59.


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