- #include <amxmodx>
- #include <amxmisc>
- #define PLUGIN "MOTD pravila"
- #define VERSION "1.0"
- #define AUTHOR "Massive Boredom"
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_clcmd("say /sajt","sajt")
- register_clcmd("say_team /sajt","sajt")
- register_cvar("Advertise","90")
- set_task(get_cvar_float("Advertise"),"advertise" , _ , _ , _ , "b")
- }
- public obavestenje(id,level,cid)
- {
- new configsdir[200]
- new MOTDfile[200]
- get_configsdir(configsdir,199)
- format(MOTDfile,199,"%s/motd_poruke/obavestenje.html",configsdir)
- show_motd(id,MOTDfile)
- return PLUGIN_HANDLED
- }
- public admini(id,level,cid)
- {
- new configsdir[200]
- new MOTDfile[200]
- get_configsdir(configsdir,199)
- format(MOTDfile,199,"%s/motd_poruke/admini.html",configsdir)
- show_motd(id,MOTDfile)
- return PLUGIN_HANDLED
- }
- public msn(id,level,cid)
- {
- new configsdir[200]
- new MOTDfile[200]
- get_configsdir(configsdir,199)
- format(MOTDfile,199,"%s/motd_poruke/msn.html",configsdir)
- show_motd(id,MOTDfile)
- return PLUGIN_HANDLED
- }
- public milf(id,level,cid)
- {
- new configsdir[200]
- new MOTDfile[200]
- get_configsdir(configsdir,199)
- format(MOTDfile,199,"http://www.milf-cs.info/motd/milf.html")
- show_motd(id,MOTDfile)
- return PLUGIN_HANDLED
- }
- public cena(id,level,cid)
- {
- new configsdir[200]
- new MOTDfile[200]
- get_configsdir(configsdir,199)
- format(MOTDfile,199,"http://www.milf-cs.info/motd/cena.html")
- show_motd(id,MOTDfile)
- return PLUGIN_HANDLED
- }
- public komande(id,level,cid)
- {
- new configsdir[200]
- new MOTDfile[200]
- get_configsdir(configsdir,199)
- format(MOTDfile,199,"http://www.milf-cs.info/motd/komande.html")
- show_motd(id,MOTDfile)
- return PLUGIN_HANDLED
- }
- public advertise()
- {
- client_print(0,print_chat,"Napisite /komande da biste videli sve komande.")
- return PLUGIN_HANDLED
- }
- /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
- *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
- */