View Single Post
Author Message
thEsp
BANNED
Join Date: Aug 2017
Old 02-21-2019 , 15:38   Edit StatusValue (aiming at player info) ? Possible ?
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
    
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

Last edited by thEsp; 02-21-2019 at 15:41.
thEsp is offline