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

need plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CreePs-
Member
Join Date: Aug 2009
Old 03-21-2011 , 13:19   need plugin
Reply With Quote #1

hey all i need a plugin that if T slash with knife the CT its give the T 15 Health
ty.
__________________
CreePs- is offline
kotinha
Senior Member
Join Date: Jun 2009
Location: Alentejo, Portugal :)
Old 03-22-2011 , 17:42   Re: need plugin
Reply With Quote #2

I think this should work:
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>

#define PLUGIN "HP FOR KNIFE KILL"
#define VERSION "1.0"
#define AUTHOR "thony"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("DeathMsg""hook_death""a")
}
public 
hook_death(id)
{
    new 
killer read_data(1)
    new 
victim read_data(2)
    new 
weapon_name[33],weapon_id
    read_data
(4,weapon_name,32)
    
format(weapon_name,32,"weapon_%s",weapon_name)
    
weapon_id get_weaponid(weapon_name
    
    if((
weapon_id == 29) && (get_user_team(killer) == ) && (get_user_team(victim) == 2)) {
        new 
hp get_user_health(killer);
        
set_user_health(killerhp+15)
    }

__________________
"If God exists, I hope he has a good excuse." - Woody Allen
kotinha 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 18:33.


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