Raised This Month: $ Target: $400
 0% 

Entity problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-26-2014 , 05:24   Re: Entity problem
Reply With Quote #1

No ent no task (amxx 1.8.3 required) :

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

#pragma semicolon 1

#define PLUGIN ""
#define VERSION "0.0.1"

#define cm(%0)    ( sizeof(%0) - 1 )

enum {
    
itbd_Paralyze,        
    
itbd_NerveGas,
    
itbd_Poison,
    
itbd_Radiation,
    
itbd_DrownRecover,
    
itbd_Acid,
    
itbd_SlowBurn,
    
itbd_SlowFreeze,
    
CDMG_TIMEBASED
}

new const 
m_rgbTimeBasedDamage[CDMG_TIMEBASED] = {308,309,...};

const 
m_idrowndmg 345;

public 
plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" );
    
RegisterHam(Ham_Spawn"player""OnCBasePlayer_Spawn_Post"true);
}

public 
OnCBasePlayer_Spawn_Postid )
{
    if( 
is_user_alive(id) )
    {
        new 
needed_health 100 get_user_health(id);
        if( 
needed_health )
        {
            
set_pdata_byte(idm_rgbTimeBasedDamage[itbd_DrownRecover], needed_health);
            
set_pdata_int(idm_idrowndmgneeded_health);
        }
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 10:06.


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