您好:
複製程式
#include <amxmodx>
new const VERSION[] = "1.0";
public plugin_init()
{
register_plugin("Motd Plugin", VERSION, "1")
register_clcmd("say /motd1", "CMD_Motd_1")
register_clcmd("say_team /motd1", "CMD_Motd_1")
register_clcmd("say /motd2", "CMD_Motd_2")
register_clcmd("say_team /motd2", "CMD_Motd_2")
}
public CMD_Motd_1(id)
show_motd(id, "motd1.txt")
public CMD_Motd_2(id)
show_motd(id, "motd2.txt")
寫motd 其實很簡單.
如果您需要多添加motd3 就依照上面代碼新增.
謝謝:)