Code:
#include <amxmodx>
#include <fun>
new timer = 15
public plugin_init() {
register_plugin("Hudmessage with task","dunno","LynX")
register_clcmd("hudmessage","hudmessage")
}
public hudmessage(id) {
if(timer > 0){
set_hudmessage(200,0,0, 0.03, 0.76, 2, 0.02, 1.0, 0.01, 0.1, 2)
show_hudmessage(id,"Task finishes in %d seconds",timer)
timer--
set_task(1.0,"hudmessage",id)
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
__________________