您好:
复制程式
#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 就依照上面代码新增.
谢谢:)