Code:
#include <amxmodx>
public plugin_init() {
set_task(1.0, "show_hud",_,_,_, "b")
}
public show_hud() {
new ip [ 60 ], hostname[ 64 ]
get_user_ip ( 0, ip, sizeof ( ip ) - 1 )
get_cvar_string("hostname", hostname, 63)
set_hudmessage(6, 70, 199, 0.0, 0.21, 0, 6.0, 1.1)
show_hudmessage(0, "Server: %s^nIP: %s", hostname, ip);
}
I want a cmd /hud for on/off hud message.