Raised This Month: $ Target: $400
 0% 

check victim health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 10-22-2019 , 00:02   Re: check victim health
Reply With Quote #4

I'm tired and sleepy, but the logic would be this, maybe some adjustment is needed.

PHP Code:
check_health(index)
{
    new 
current_health
    current_health 
get_user_health(index)

    if ((
g_gondar_health 2) >= current_health && (g_gondar_health 3) < current_health)
    {
        
set_user_maxspeed(index 450.0)
        
set_user_rendering(indexkRenderFxGlowShell000kRenderTransAlpha,155)
        
message_begin(MSG_ALL,iconstatus,{0,0,0},index)
        
write_byte(1// status (0=hide, 1=show, 2=flash)
        
write_string("dmg_poison"// sprite name
        
write_byte(255// red
        
write_byte(255// green
        
write_byte(0// blue
        
message_end()
    }
    else if ((
g_gondar_health 3) >= current_health)
    {
        
set_user_maxspeed(index 800.0)
        
set_user_rendering(indexkRenderFxGlowShell000kRenderTransAlpha,55)
        
message_begin(MSG_ALL,iconstatus,{0,0,0},index)
        
write_byte(1// status (0=hide, 1=show, 2=flash)
        
write_string("dmg_poison"// sprite name
        
write_byte(255// red
        
write_byte(0// green
        
write_byte(0// blue
        
message_end()
    }

__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/
iceeedr is offline
Send a message via Skype™ to iceeedr
 



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 02:52.


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