siriusmd99
Yes I tried it before but it does not work?
PHP Code:
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("TextMsg"), "msgTextMsg");
set_task(5.0, "test")
// Add your code here...
}
public test()
{
client_print(0, print_chat, "[AMXX] Hello World !")
}
public msgTextMsg()
{
static textmsg[512];
get_msg_arg_string(2, textmsg, 511);
//and here add hudmessage
set_hudmessage( _, _, _, 0.0, 0.88, 0, 0.1, 10.0, 0.04 )
show_hudmessage(0, "%s",textmsg)
// if it wont work then try to set task for hudmsg
return PLUGIN_HANDLED;
}