You want to make that player would get message, that they would need to write /nagrada?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "MOTD"
#define VERSION "1.0"
#define AUTHOR "Massive Boredom"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /nagrada","motd")
register_clcmd("say_team /nagrada","motd")
register_cvar("Advertise","90")
set_task(get_cvar_float("Advertise"),"adverti se" , _ , _ , _ , "b")
}
public motd(id,level,cid)
{
new configsdir[200]
new MOTDfile[200]
get_configsdir(configsdir,199)
format(MOTDfile,199,"%s/motd/nagrada.html",configsdir)
show_motd(id,MOTDfile)
return PLUGIN_HANDLED
}
public client_putinserver(id)
{
if (!task_exists(id)) set_task(60.0, "PrintText" ,id)
}
public PrintText(id)
{
client_print(id,print_chat,"Kucaj /nagrada da vidite sta dobijaju prva 3 na ranku !")
}
Something like this?
__________________