回复: 保证不会群踢的十几个第三方娱乐插件(自己修改过)
请问,cmdmenu.amxx这个插件有什么改动?回复: 保证不会群踢的十几个第三方娱乐插件(自己修改过)
支持楼主,热心人啊!回复: 保证不会群踢的十几个第三方娱乐插件(自己修改过)
:sweet_kis 里面的几个插件不错 喜欢回复: 保证不会群踢的十几个第三方娱乐插件(自己修改过)
顶一个,看看先~~~~回复: 保证不会群踢的十几个第三方娱乐插件(自己修改过)
night_day.amxx有修改参数吗??,
AMX.CFG
能实现只要黎明模式,和不配发夜视仪吗??
回复: 保证不会群踢的十几个第三方娱乐插件(自己修改过)
在发布的原码中自己改...."b"是黎明模式...对.................
回复: 保证不会群踢的十几个第三方娱乐插件(自己修改过)
#include <amxmodx>#include <amxmisc>
#include <engine>
#include <cstrike>
#define TASK_NIGHT 363636
new g_round
new msg
public plugin_init(){
register_plugin("Daylight","2.","A.MI")
register_event("TextMsg", "round_restart", "a", "2=#Game_Commencing", "2=#Game_will_restart_in")
register_logevent("newRound", 2, "0=World triggered", "1=Round_Start")
}
public round_restart(){
if(task_exists(TASK_NIGHT)){
remove_task(TASK_NIGHT)
g_round=0
}
set_lights("#OFF")
}
public newRound(){
g_round++
if( g_round == 11 ){
format(msg, 511,"【 注 意 : 下局开始两局夜晚战斗模式 】^n夜视仪免费送,按 N 可开启.")
set_hudmessage(248, 248, 255, -1.0, 0.6, 2, 0.5, 8.0, 0.1, 1.0, 2);
show_hudmessage(0, msg);
}
if( g_round == 12 ){
give_nvg();
set_task(1.0, "updatelights")
format(msg, 511,"【 夜 晚 模 式 打 够 两 局 就 结 束 】^n请 按 N 开 启 夜 视 功 能 .")
set_hudmessage(255, 255, 0, -1.0, 0.6, 2, 0.5, 8.0, 0.1, 1.0, 2);
show_hudmessage(0, msg);
}
if( g_round == 13 ){
give_nvg();
format(msg, 511,"【 夜 晚 模 式 打 够 两 局 就 结 束 】^n请 按 N 开 启 夜 视 功 能 .")
set_hudmessage(255, 255, 0, -1.0, 0.6, 2, 0.5, 8.0, 0.1, 1.0, 2);
show_hudmessage(0, msg);
}
if( g_round == 14 ){
set_lights("#OFF");
format(msg, 511,"【 恭喜大家完成两局夜晚实战 】^n【 若你当兵你将是最棒的士兵 】")
set_hudmessage(255, 255, 0, -1.0, 0.6, 2, 0.5, 8.0, 0.1, 1.0, 2);
show_hudmessage(0, msg);
}
return PLUGIN_CONTINUE
}
public updatelights(){
set_lights("a")
}
public client_color(id,msg[])
{
new playerslist,playerscount//,i
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 give_nvg(){
new m = get_maxplayers()
for(new i = 1; i <= m; i++)
if(is_user_alive(i)){
cs_set_user_nvg(i, 1);
}
return PLUGIN_CONTINUE
}
是这个吗
set_lights("a")
怎么不发放夜视仪
:byebye::byebye::byebye::byebye::byebye: