Sender placed in first string param. NumAsString(entindex()) in ClientPrint.
https://github.com/s1lentq/ReGameDLL...hbang.cpp#L177
https://github.com/s1lentq/ReGameDLL...layer.cpp#L435
https://github.com/s1lentq/ReGameDLL.../util.cpp#L664
PHP Code:
public MessageHook_TextMsg(iMsg, iMsgDest, reciever)
{
if(get_msg_args() != 5 || !g_eSettings[VarRadio]) return PLUGIN_CONTINUE
static message[ 200 ]
static handleCvar
new str[ 100 ]
new const messageParam = 5
new sender, temp[8];
// first param is WRITE_BYTE(msg_dest);
// second sender index as string
get_msg_arg_string(2, temp, charsmax(temp));
sender = str_to_num(temp);
new sz_Health = get_user_health ( sender )
get_msg_arg_string(messageParam, message, charsmax(message))
if(TrieGetCell(RadioDatas, message, handleCvar) && get_pcvar_string(handleCvar, message, charsmax(message)))
{
formatex(str, charsmax (str ), "^3[^4%s^3]^1:^4 %n^x01 (RADIO) (^4HP^1:^x03%d^x01):^x04 %s", g_eSettings[VarTagPrefixWithoutColor], sender , sz_Health , message )
set_msg_arg_string(3, str)
}
return PLUGIN_CONTINUE
}