Hi, I want to edit the text displayed when you aim at players or hostages by using StatusValue (Since I want to keep the red/blue/yellow color)
I tried with some codes, but It messes up the message (displays a stupid text like "V:; xxxxx").
Took some info from
https://wiki.alliedmods.net/Half-Lif...ts#StatusValue
This is code that I am running, I did not go further coding WHAT I EXACTLY NEEDED because at this point I don't know what I'm doing. Btw Compiles successfully.
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "-"
#define VERSION "1.0"
#define AUTHOR "-"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("StatusValue","ShowPB","b")
}
public ShowPB(id)
{
// so the edited text is like "Player : [%s] : Weapon : [%s]"
new msg2 = get_user_msgid("StatusValue")
message_begin(MSG_ONE,msg2,_,id)
write_byte(2)
write_short(1)
message_end()
}
Thanks