Raised This Month: $ Target: $400
 0% 

Health Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 06-23-2017 , 18:30   Re: Health Plugin
Reply With Quote #1

try this code from plugin zmobie HL1 by KORD
Code:
#include <amxmodx> #include <amxmisc> #include <fakemeta_util> public plugin_init() {     register_message(get_user_msgid("Health"), "message_health") } // Fix for the HL engine bug when HP is multiples of 256 public message_health(msg_id, msg_dest, msg_entity) {     // Get player's health     static health     health = get_msg_arg_int(1)     // Don't bother     if(health < 256)         return         // Check if we need to fix it     if(health % 256 == 0)         fm_set_user_health(msg_entity, pev(msg_entity, pev_health) + 1)         // HUD can only show as much as 255 hp     set_msg_arg_int(1, get_msg_argtype(1), 255) }
__________________

Last edited by abdobiskra; 06-23-2017 at 18:59.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-23-2017 , 19:12   Re: Health Plugin
Reply With Quote #2

Unfortunately, It is not working.
I don't wanna 0 health fix plugin! I wanna show all health, doesn't wanna show just 255 HP even I have healths more than 255

Last edited by PurposeLessx; 06-23-2017 at 19:14.
PurposeLessx 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 22:57.


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