Raised This Month: $32 Target: $400
 8% 

Health Bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 07-23-2019 , 12:49   Re: Health Bomb
Reply With Quote #11

Test this, and tell me if u like it.
We can later set up cvar for health amount, or to set that the hegrenade can not add health to his owner...
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>

#define PLUGIN "Medic Hegrenade"
#define VERSION "1.0"
#define AUTHOR "Krtola"

#define HE_DAMAGE_DETECT ( 1 << 24 )

public plugin_init() 
{
    
register_plugin(PLUGIN VERSION AUTHOR)
    
    
RegisterHam(Ham_TakeDamage "player" "damage_detector")
}

public 
damage_detector(victiminfattackerFloatdamagedamagetype)
{
    if(!(
damagetype HE_DAMAGE_DETECT))
        return 
HAM_IGNORED

    
if(!is_user_connected(victim) || !is_user_alive(victim))
        return 
HAM_IGNORED

    set_user_health
(victimget_user_health(victim) + 100

    return 
HAM_SUPERCEDE

__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video below to see blind grenade for zombies

https://www.youtube.com/watch?v=ORC7ZmoaipQ

Look at the video below to see Zombie Hide And Seek mode

https://www.youtube.com/watch?v=xpyYb65EgGs
Krtola is offline
Send a message via Skype™ to Krtola
Old 07-23-2019, 12:59
thEsp
This message has been deleted by thEsp. Reason: misread
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 07-23-2019 , 13:01   Re: Health Bomb
Reply With Quote #12

Quote:
Originally Posted by thEsp View Post
That will still damage the enemy, set fourth param to 0.
I tested, worked fine....
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video below to see blind grenade for zombies

https://www.youtube.com/watch?v=ORC7ZmoaipQ

Look at the video below to see Zombie Hide And Seek mode

https://www.youtube.com/watch?v=xpyYb65EgGs
Krtola is offline
Send a message via Skype™ to Krtola
PawNod
Member
Join Date: Jun 2019
Location: Turkey
Old 07-23-2019 , 16:58   Re: Health Bomb
Reply With Quote #13

Oh thanks for support ı will try but you tried it working .thread solved
PawNod 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 08:44.


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