Hello Guys.
I make a HudMessage plugin with effects that i want to make to read message and set effect and time to show from
.ini file to can be easy for editing.
How can i do this ?
Thats my plugin
PHP Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("WHM", "1.1b", "Nobi13")
return PLUGIN_CONTINUE
}
public WelcomeHudMessage(id) {
new Player[32]
new Hostname[64]
get_user_name(id,Player,31)
get_cvar_string("hostname",Hostname,63)
set_hudmessage(/* RGB Color set*/0, 60, 255, /*Float:x =*/ -1.0, /*Float:y = */0.18, /* effects =*/ 1, /* Float:fxtime = */ 6.0, /*Float:holdtime = */15.0, /*Float:fadeintime = */0.1, /*Float:fadeouttime = */ 1.5, /*bool:reliable =*/ false )
show_hudmessage(id, "Welcome to %s^nEnjoy playing here %s", Hostname, Player)
return PLUGIN_CONTINUE
}
public client_connect(id) {
set_task(10.0, "WelcomeHudMessage",id) //After how many seconds to be showed
}