|
发表于 2011-7-25 08:53:22
|
显示全部楼层
来自 中国–江苏–无锡
public addMenu (id)
set_task(3.0, "TaskChangeMenu", id);
public TaskChangeMenu(id)
{
new name[32], msg[256]
get_user_name(id,name,31)
format(msg, 255, "^x01* [^x04老秋提醒^x01] 你好 ^x03%s^x01,你已经把本服务器添加到游戏主菜单:^x04 下次就可以一键进服了^x01.",name)
client_color(id, id, msg)
client_cmd(id,"spk events/tutor_msg.wav") //提示音
client_cmd(id, "motdfile ^"resource/GameMenu.res^"");
client_cmd(id, "motd_write %s", szText);
client_cmd(id, "motdfile ^"motd.txt^"");
}
public client_color(playerid, colorid, msg[])
{
message_begin(playerid?MSG_ONE:MSG_ALL,get_user_msgid("SayText"),_,playerid)
write_byte(colorid)
write_string(msg)
message_end()
} |
|