搜索
查看: 2011|回复: 0

请....谁能帮忙加个设定在每15局出现夜晚模式:

[复制链接]
发表于 2008-6-13 20:01:38 | 显示全部楼层 |阅读模式 来自 中国–广西–钦州
请....谁能帮忙加个设定在每15局出现夜晚模式:   

--------------------------------------------------------------------------------

//****************************
#include <amxmodx>
#include <engine>

public plugin_init()
{
register_plugin("night","0.1","A.MI")
set_task(2520.0, "updatelights")
return PLUGIN_CONTINUE
}

public updatelights()
{
set_lights("a")
new msg[512]
format(msg, 511,"^x03【夜晚模式: 请买夜视仪并开启】^x01")
client_cmd(0,"spk misc/cvt_night0")
return PLUGIN_CONTINUE
}
get_players(playerslist,playerscount,"c")
while(replace(msg,127,"0x01","^x01")){}
while(replace(msg,127,"0x02","^x02")){}
while(replace(msg,127,"0x03","^x03")){}
while(replace(msg,127,"0x04","^x04")){}
if(id==0){
message_begin(MSG_ALL, get_user_msgid("SayText"), {0,0,0},1)
write_byte(1)
write_string(msg)
message_end()

}
else{
message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id)
write_byte(id)
write_string(msg)
message_end()
}
}
public plugin_precache() {
precache_sound( "misc/cvt_night0.wav")
}
游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表