Raised This Month: $ Target: $400
 0% 

Health Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-28-2017 , 09:07   Re: Health Plugin
Reply With Quote #1

I made this.
Does it work?

PHP Code:
#include <amxmodx>
#include <amxmisc>

new syncObj

public plugin_precache() {
    
syncObj CreateHudSyncObj();
}

public 
plugin_init() {
    
register_plugin("Leader Gaming""1.0""PurposeLess")

    
register_event("ResetHUD""Event_ResetHud""b")
    
register_message(get_user_msgid("HideWeapon"), "Message_HideWeapon")
}

public 
client_putinserver(id)
{
    
set_task(0.1"usercontrol"id__"b")
}

public 
usercontrol(id)
{
    
set_hudmessage(01002500.010.9206.01.1__, -1);
    
ShowSyncHudMsg(idsyncObj"HP: %d | Armor: %d"get_user_health(id), get_user_armor(id))
}

public 
Event_ResetHud(id)
{
    
message_begin(MSG_ONEget_user_msgid("HideWeapon"), _id)
    
write_byte((1<<3))
    
message_end()

    
message_begin(MSG_ONEget_user_msgid("HideWeapon"), _id)
    
write_byte((1<<5))
    
message_end()
}

public 
Message_HideWeapon()
{
    
set_msg_arg_int(1ARG_BYTEget_msg_arg_int(1) | (1<<3))
    
set_msg_arg_int(1ARG_BYTEget_msg_arg_int(1) | (1<<5))

PurposeLessx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-28-2017 , 11:09   Re: Health Plugin
Reply With Quote #2

Why you can't test it with yourself?
__________________








CrazY. is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-29-2017 , 09:29   Re: Health Plugin
Reply With Quote #3

The problem was dissolved.
PurposeLessx is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-30-2017 , 09:26   Re: Health Plugin
Reply With Quote #4

Quote:
Originally Posted by PurposeLessx View Post
The problem was dissolved.
Quote:
dissolve
dɪˈzɒlv/
verb
past tense: dissolved; past participle: dissolved
1.
(with reference to a solid) become or cause to become incorporated into a liquid so as to form a solution.
"glucose dissolves easily in water"
synonyms: go into solution, become a solution, break down; More
2.
close down or dismiss (an assembly or official body).
"the National Assembly was dissolved after a coup"
synonyms: disband, disestablish, dismiss; More
H2o ! ! !
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-30-2017 , 12:03   Re: Health Plugin
Reply With Quote #5

Quote:
Originally Posted by Craxor View Post
dissolve
dɪˈzɒlv/
verb
past tense: dissolved; past participle: dissolved
1.
(with reference to a solid) become or cause to become incorporated into a liquid so as to form a solution.
"glucose dissolves easily in water"
synonyms: go into solution, become a solution, break down; More
2.
close down or dismiss (an assembly or official body).
"the National Assembly was dissolved after a coup"
synonyms: disband, disestablish, dismiss; More
Wt what?
I just tried to say "There is no problem that waiting to fix".
The problem was solved ?
My English is not better enough. I am sorry
PurposeLessx is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-30-2017 , 15:00   Re: Health Plugin
Reply With Quote #6

Don't worry about this.

You can use it, "solved".
__________________








CrazY. 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