I want to color the radio messages, I was looking for a complement to do it and I found this one, but it doesn't show the messages.
How do I want it to show:
-> TERRORIST
666(RADIO):Follow Me!
-> CT
666(RADIO):Follow Me!
as shown:
-> TERRORIST
s1(RADIO):s2
-> CT
s1(RADIO):s2
PHP Code:
#include <amxmodx>
#define PLUGIN_VERSION "2.0"
public plugin_init()
{
register_plugin("Colored Radio Messages", PLUGIN_VERSION, "OciXCrom @ amxx-bg.info")
register_message(get_user_msgid("TextMsg"), "OnTextMsg")
}
public OnTextMsg(iMsgId, iMsgDest, id)
{
if(get_msg_args() != 5)
return
static szMsg[2][20]
get_msg_arg_string(3, szMsg[0], charsmax(szMsg[]))
get_msg_arg_string(5, szMsg[1], charsmax(szMsg[]))
if(equal(szMsg[0], "#Game_radio") && !equal(szMsg[1], "#Fire_in_the_hole"))
set_msg_arg_string(3, "%s1 (RADIO): %s2")
}
__________________