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

Humans regain health on kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 06-14-2012 , 15:39   Humans regain health on kill
Reply With Quote #1

Where can I find plugin that gives HP for every zombie kill to human? If there isn't that kind of plugin, could someone make it?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 06-14-2012 , 23:12   Re: Humans regain health on kill
Reply With Quote #2

Just kill no infect? I think ZP has the feature.
__________________
jc980 is offline
rembaldus
Junior Member
Join Date: Apr 2012
Old 06-15-2012 , 04:37   Re: Humans regain health on kill
Reply With Quote #3

Quote:
Originally Posted by jc980 View Post
Just kill no infect? I think ZP has the feature.
he wants plugin that gives human hp when they kill zombie and i'm sure zp doesn't have that feature
rembaldus is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 06-15-2012 , 06:41   Re: Humans regain health on kill
Reply With Quote #4

Quote:
Originally Posted by rembaldus View Post
he wants plugin that gives human hp when they kill zombie and i'm sure zp doesn't have that feature
Nevermind what I said, it was actually ammo packs not HP. So ZP does not have this feature.
__________________
jc980 is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 06-15-2012 , 06:53   Re: Humans regain health on kill
Reply With Quote #5

Yea, on killing. This plugin would be awesome in my DM server. So anyone has it or can make it?
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
gogicaa
Veteran Member
Join Date: Aug 2011
Location: //
Old 06-15-2012 , 11:47   Re: Humans regain health on kill
Reply With Quote #6

Untested ! I wrote that quickly so check if it works.
PHP Code:
#include <amxmodx> 
#include <fun> 
#include <zp50_core> 

public plugin_init()  

    
register_plugin("[ZP] Addon : + HP" "1.0" "gogicaa"
     
    
register_event"DeathMsg""eventDeath""a" )   


public 
eventDeath( )  
{  
    static 
killer victim 

    killer 
read_data(1
    
victim read_data(2)      
     
    if(
zp_core_is_zombie(victim)) 
    { 
        
set_user_health(killer get_user_health(killer) + 100)   
    } 


Last edited by gogicaa; 06-15-2012 at 17:17.
gogicaa is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 06-15-2012 , 14:54   Re: Humans regain health on kill
Reply With Quote #7

Yea works, but gives error: [FUN] Player out of range (0)
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 06-15-2012 , 15:16   Re: Humans regain health on kill
Reply With Quote #8

EDIT:
PHP Code:
#include <amxmodx> 
#include <fun> 
#include <zp50_core> 

public plugin_init() { 
    
register_plugin("[ZP] Addon : + HP" "1.0" "gogicaa"
    
register_event"DeathMsg""eventDeath""a" )   


public 
eventDeath( ) {  
    static 
killer victim 

    killer 
read_data(1
    
victim read_data(2)      
     
    if(
zp_core_is_zombie(victim)) { 
        if(
is_user_alive(killer)) {
            
set_user_health(killer get_user_health(killer) + 100
        }
    } 


Last edited by H.RED.ZONE; 06-15-2012 at 15:20.
H.RED.ZONE is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 06-15-2012 , 18:12   Re: Humans regain health on kill
Reply With Quote #9

Not working anymore :/
Btw, I'm using deathmatch mode.
I even tried this:
PHP Code:
#include <amxmodx> 
#include <fun> 
#include <zp50_core> 

public plugin_init() { 
    
register_plugin("[ZP] Addon : + HP" "1.0" "gogicaa"
    
register_event"DeathMsg""eventDeath""a" )   


public 
eventDeath( ) {  
    static 
killer victim 

    killer 
read_data(1
    
victim read_data(2)      
     
    if(
zp_core_is_zombie(victim) && is_user_alive(killer)) {
            
set_user_health(killer get_user_health(killer) + 30)
            new 
szKillerName[32]
            
get_user_name(victimszKillerNamecharsmax(szKillerName))
            
client_print(killerprint_chat"[AMXX] You have been awarded with 30hp for killing %s!"szKillerName
    } 

__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness

Last edited by GuskiS; 06-15-2012 at 18:22.
GuskiS is offline
last_hope
Senior Member
Join Date: Dec 2011
Old 06-16-2012 , 03:30   Re: Humans regain health on kill
Reply With Quote #10

hm, vampire.amxx not working before zp plugins?
last_hope is offline
Send a message via ICQ to last_hope
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 21:55.


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