O to sma pluginka:
#include <amxmodx> #include <amxmisc> public admin_motd(id,level,cid) { if (!cmd_access(id,level,cid,1)) return PLUGIN_CONTINUE show_motd(id,"motd.txt","Message of the Day.") return PLUGIN_CONTINUE } public plugin_init() { register_plugin("say /motd","1.1","Pa1n") register_clcmd("say /motd","admin_motd",0,"- Shows the MOTD.") }
Z góry dzięki.
Próbowałem między innymi tak
#include <amxmodx> #include <amxmisc> #define ADMIN_FLAG_D public admin_motd(id,level,cid) { if( get_user_flags(id) & ADMIN_FLAG_D) return PLUGIN_CONTINUE if (!cmd_access(id,level,cid,1)) return PLUGIN_CONTINUE show_motd(id,"help.txt","Pamietaj o zasadach :)") return PLUGIN_CONTINUE } public plugin_init() { register_plugin("say /help","1.1","Pa1n") register_clcmd("say /help","admin_motd",0,"- Shows the MOTD.") }
ale nie działa... Dosyć ważne- będę wdzięczny