Raised This Month: $ Target: $400
 0% 

Block death / suicide from falling - set at least 1 HP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-17-2013 , 10:51   Block death / suicide from falling - set at least 1 HP
Reply With Quote #1

Hello! Help me to find this plugin, please.
__________________
sorry my bad english...
alonelive is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 06-17-2013 , 11:55   Re: Block death / suicide from falling - set at least 1 HP
Reply With Quote #2

Click

Last edited by akcaliberg; 06-17-2013 at 11:58.
akcaliberg is offline
SpaWn2KiLl
Member
Join Date: Aug 2012
Old 06-17-2013 , 14:59   Re: Block death / suicide from falling - set at least 1 HP
Reply With Quote #3

mp_falldamage 0 ???
SpaWn2KiLl is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-17-2013 , 16:15   Re: Block death / suicide from falling - set at least 1 HP
Reply With Quote #4

PHP Code:
#include < amxmodx >
#include < engine >
#include < hamsandwich >

#pragma semicolon 1

#define PLUGIN ""
#define VERSION "0.0.1"

public plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" );
    
RegisterHam(Ham_TakeDamage"player""OnCBasePlayer_TakeDamage");
}

// int CBasePlayer :: TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType )
public OnCBasePlayer_TakeDamageidiInflictoriAttackerFloat:flDamagebitsDamageType // return int
{
    if( 
bitsDamageType DMG_FALL )
    {
        new 
Float:health entity_get_float(idEV_FL_health);
        if( 
flDamage >= health )
        {
            
SetHamParamFloat(4health 1.0 health 1.0 0.0);
            return 
HAM_HANDLED;
        }
    }
    return 
HAM_IGNORED;

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 06-17-2013 at 16:17.
ConnorMcLeod is offline
Old 06-20-2013, 13:04
alonelive
This message has been deleted by YamiKaitou. Reason: English Only
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 20:10.


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