PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "hudmessage"
#define VERSION "1.0"
#define AUTHOR "made.tn"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say hi", "hi_msg")
register_clcmd("say by", "by_msg")
register_clcmd("say plugin", "plg_msg")
register_clcmd("say amxx", "amx_msg")
}
public hi_msg(id)
{
set_hudmessage(0, 0, 255, -1.0, 0.35, 0, 3.0, 1.2, 1.3, 1.4, 4)
show_hudmessage(id, "Hello client have fun ;)")
return PLUGIN_CONTINUE
}
public by_msg(id)
{
set_hudmessage(255, 0, 0, -1.0, 0.35, 0, 3.0, 1.2, 1.3, 1.4, 4)
show_hudmessage(id, "by arrive tomorrow :)")
return PLUGIN_CONTINUE
}
public plg_msg(id)
{
set_hudmessage(0, 255, 0, -1.0, 0.35, 0, 3.0, 1.2, 1.3, 1.4, 4)
show_hudmessage(id, "plugin made by made.tn")
return PLUGIN_CONTINUE
}
public amx_msg(id)
{
set_hudmessage(0, 0, 255, -1.0, 0.35, 0, 3.0, 1.2, 1.3, 1.4, 4)
show_hudmessage(id, "Go to the official website AMXMODX.ORG")
return PLUGIN_CONTINUE
}