Raised This Month: $ Target: $400
 0% 

bonus kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NisQ
Member
Join Date: Feb 2012
Old 01-19-2013 , 14:57   bonus kill
Reply With Quote #1

Hi guys,

I want a plugin that gives you some health when you kill enemy.

- simple kill - 5 hp
- hs or hegrenade or knife - 10 hp

I dont want any hudmessages.

Thanks
__________________
FRAGWAY GAMING UK - http://www.fragway.com

NisQ is offline
Send a message via Yahoo to NisQ Send a message via Skype™ to NisQ
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 01-19-2013 , 15:15   Re: bonus kill
Reply With Quote #2

I'm thinking this might of been made, I don't remember, but it is a good idea.
You should get more health for a knife kill. Unless your running a knife mod.
Or you could make it more interesting, Kills by Players Ranks.
knife kill = 20
Nade kill = 15
Noob kill = 5, You killed a guy that never kills anybody.
Random kill = 8
L337 Kill = 20, or
Awp Whore = 20 This guy is amazing at camping and awping all damn day! He never dies!
Nading awper = 40 health
If player kills awp whore with an awp he gets 5 health.
Underated guns never used for example Dualies. Death by dualies 10 health.

Just some extra ideas for your thoughts.
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-19-2013 , 15:57   Re: bonus kill
Reply With Quote #3

Already made, just remove the hudmessages.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
nnajko
Senior Member
Join Date: May 2009
Location: Sweden
Old 01-19-2013 , 21:09   Re: bonus kill
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>

#define PLUGIN "Health on Kill"
#define VERSION "1.0"
#define AUTHOR "NNAJKO."

new pCvar_killhp;
new 
pCvar_bonushp;

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_message("DeathMsg""eventDeath""a");
    
    
pCvar_killhp register_cvar("hp_kill""5");
    
pCvar_bonushp register_cvar("hp_bonuskill""10");
}

public 
eventDeath()
{
    new 
iKiller read_data(1);
    new 
iVictim read_data(2);
    new 
iHS read_data(3);
    
    new 
szWeapon[20];
    
read_data(4szWeaponcharsmax(szWeapon));
    
    if( 
cs_get_user_team(iKiller) != cs_get_user_team(iVictim) )
    {
        if( 
is_user_alive(iKiller) )
        {
            new 
iHealth get_user_health(iKiller);
            
            if( 
equal(szWeapon"grenade") || iHS || equal(szWeapon"knife") )
            {
                
set_user_health(iKilleriHealth get_pcvar_num(pCvar_bonushp));
            }
            else
            {
                
set_user_health(iKilleriHealth get_pcvar_num(pCvar_killhp));
            }
        }
    }


Last edited by nnajko; 01-19-2013 at 21:10.
nnajko 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 00:18.


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