im new to amxmodx. and i wonder how to create a hudmessage
and where to put the hudmessage file.
i want a simple hud message that say's "welcome,bla,bla"
when a user loggs in to my server
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "welcome hud"
#define VERSION "1.0"
#define AUTHOR "DjMadoX"
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("amx_hudmessage","hudmessage",ADMIN_CHAT," - actives HUD message")
}
public hudmessage()
{
set_hudmessage(255, 0, 0, 0.02, 0.79, 0, 6.0, 12.0)
show_hudmessage(0, "-=[Welcome to .McPuff's Fun Server]=- /n for more info go to /n http://www.com")
}
}
am i on the right way?

[/small]