Raised This Month: $ Target: $400
 0% 

Not displaying message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
asd13
Member
Join Date: Apr 2009
Old 06-05-2010 , 16:37   Re: Not displaying message
Reply With Quote #1

A little mistake.

This is what i wanted to do actually
PHP Code:
#include < amxmodx >
#include < fun >

const VipFlags ADMIN_LEVEL_H;

new 
iHp_add;
new 
cHp_AddcHp_Hs;

public 
plugin_init( ) {
    
register_event"DeathMsg""PlayerKilled""a""1>0" );
    
    
cHp_Add    register_cvar"amx_hp_add",    "15" );
    
cHp_Hs    register_cvar"amx_hp_hs",    "30" );
}

public 
PlayerKilled( ) {
    new 
iKiller read_data);
    
    if( 
read_data) )
        
iHp_add get_pcvar_num cHp_Hs );
    else
        
iHp_add get_pcvar_num cHp_Add );
    
    if( 
get_user_healthiKiller ) < 100 ) {
        
set_user_healthiKillerget_user_healthiKiller ) + iHp_add );
        
        if( 
get_user_healthiKiller ) > 100 )
            
set_user_healthiKiller100 );
        
        
set_hudmessage02550, -1.00.1501.01.00.10.1, -);
        
show_hudmessageiKiller"Healed +%d hp"iHp_add );
    }

asd13 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 05:18.


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