Raised This Month: $ Target: $400
 0% 

[CS 1.6] Health Plugin ?


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-09-2010 , 12:59   Re: [CS 1.6] Health Plugin ?
Reply With Quote #11

Quote:
Originally Posted by ConnorMcLeod View Post
hud channel -2 ?
What is this number standing for ?
Level of his IQ
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-09-2010 , 13:33   Re: [CS 1.6] Health Plugin ?
Reply With Quote #12

Quote:
Originally Posted by xPaw View Post
Level of his IQ
Oh, i would have said that it's yours.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
unforcer
Senior Member
Join Date: Feb 2009
Old 10-10-2010 , 08:44   Re: [CS 1.6] Health Plugin ?
Reply With Quote #13

It works great, but can I beg you to include the cvar with limit of health, ie if I have 100 hp and the limitcvar is 100, if I kill somebody noreceive additional health. If the limit cvar is 150 - then okay...
example:
Quote:
amx_vampire_max_hp - Maximum player's HP.
unforcer is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 10-10-2010 , 08:51   Re: [CS 1.6] Health Plugin ?
Reply With Quote #14

Ok, I will add it now ;)

sec..
__________________
Retired.
Xalus is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 10-10-2010 , 08:52   Re: [CS 1.6] Health Plugin ?
Reply With Quote #15

Quote:
Originally Posted by xPaw View Post
Level of his IQ
Haha :')
__________________
Retired.
Xalus is offline
unforcer
Senior Member
Join Date: Feb 2009
Old 10-10-2010 , 11:09   Re: [CS 1.6] Health Plugin ?
Reply With Quote #16

Has it added already?
unforcer is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 10-10-2010 , 12:05   Re: [CS 1.6] Health Plugin ?
Reply With Quote #17

[v1.2]
- Added MaxHealth (I hope it works)

[Link: v1.2]
__________________
Retired.
Xalus is offline
unforcer
Senior Member
Join Date: Feb 2009
Old 10-10-2010 , 13:42   Re: [CS 1.6] Health Plugin ?
Reply With Quote #18

It works. Thank you
unforcer is offline
CS Pro
Senior Member
Join Date: Nov 2011
Location: In heaven
Old 11-17-2011 , 08:52   Re: [CS 1.6] Health Plugin ?
Reply With Quote #19

Quote:
Originally Posted by MrNothing View Post
Hi ppl
i need help , i need HP Bonus Pugin :

when i kill somebody get 5 HP
when i kill Somebody " head Shot " get 15 HP
when i kill Somebody " Knife " Get 10 HP

####################
Can Somebody Make it Plz ?
this is picture from Server
i killed somebody and get 5 Hp [ + Blue Glow Screen ]



[IMG]http://img176.**************/img176/1075/52566850.jpg[/IMG]

i realy need this plugin

Thx .
I did find a plugin that heals you no matter you headshot or no headshot and you can set the heal amount for kill.Meaning you can change how much HP per kill.Heres the link (http://forums.alliedmods.net/showthread.php?t=103926)
CS Pro is offline
CS Pro
Senior Member
Join Date: Nov 2011
Location: In heaven
Old 11-29-2011 , 20:37   Re: [CS 1.6] Health Plugin ?
Reply With Quote #20

Quote:
Originally Posted by Xalus View Post
[v1.2]

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

#define PLUGIN "Bonus"
#define VERSION "1.2"
#define AUTHOR "Xalus"

#define Tag "[Bonus]"

new cStatuscMaxHealth;
new 
cKillcKnifecHeadshotcKnifeHeadshot;

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
/* Cvar */
    
cStatus        register_cvar("bonus_status""1");
    
cMaxHealth    register_cvar("bonus_maxhealth""100");
    
/* Bonus */
    
cKill        register_cvar("bonus_kill""5");
    
cKnife        register_cvar("bonus_knife""10");
    
cHeadshot    register_cvar("bonus_headshot""15");
    
cKnifeHeadshot    register_cvar("bonus_knifeheadshot""25");
    
    
/* Player Killed */
    
register_event"DeathMsg""EventDeathMsg""a""1>0" );
}
/*
Bonus:
- Player Killed
*/
public EventDeathMsg() {
    new 
killer read_data(1);
    new 
victim read_data(2);
    new 
headshot read_data(3);
    new 
weapon get_user_weapon(killer);
    new 
num;
    
    if(
killer == victim || !get_pcvar_num(cStatus) || !is_user_connected(victim) || !is_user_alive(killer))
        return 
PLUGIN_HANDLED;
    
    if(
headshot && weapon == CSW_KNIFE) {
        
num get_pcvar_num(cKnifeHeadshot)
        
GiveHealth(killernum)
        
HudMessage(killer"Healed +%ihp"num)
    } else if(
headshot) {
        
num get_pcvar_num(cHeadshot)
        
GiveHealth(killernum)
        
HudMessage(killer"Healed +%ihp"num)
    } else if(
weapon == CSW_KNIFE) {
        
num get_pcvar_num(cKnife)
        
GiveHealth(killernum)
        
HudMessage(killer"Healed +%ihp"num)
    } else {
        
num get_pcvar_num(cKill)
        
GiveHealth(killernum)
        
HudMessage(killer"Healed +%ihp"num)
    }
    return 
PLUGIN_CONTINUE;
}
/*
Bonus:
    - Give Health
    - Hud Message
*/
GiveHealth(idcount)
    
set_user_health(idmin( (get_user_health(id) + count), get_pcvar_num(cMaxHealth) ))

stock HudMessage(const id, const input[], any:...) {
    static 
msg[191];
    
vformat(msg190input3);
    
    
set_hudmessage(1271702550.270.1405.05.00.00.0, -1);
    
show_hudmessage(id"%s^n%s"Tagmsg)

yo, the plugin is not bad but it looks not the same from the picture, its a little bit the same because it can heal but can you make it the same as the picture Xalus.....
CS Pro 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 06:33.


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