AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   bonus kill (https://forums.alliedmods.net/showthread.php?t=206196)

NisQ 01-19-2013 14:57

bonus kill
 
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

FR0NTLINE 01-19-2013 15:15

Re: bonus kill
 
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.

wickedd 01-19-2013 15:57

Re: bonus kill
 
Already made, just remove the hudmessages.

nnajko 01-19-2013 21:09

Re: bonus kill
 
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));
            }
        }
    }




All times are GMT -4. The time now is 00:18.

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