[吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成打3局就
[吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成打3局就换成黑夜模式!谢谢这是前几天发现的。。还挺好玩的!1
回复: [吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成
同求,希望放出源码,谢谢回复: [吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成
#include <amxmodx>#include <engine>
#include <cstrike>
#define TASK_NIGHT 363636
new g_round
new msg
public plugin_init(){
register_plugin("Daylight","2.0","JIM")
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 == 9 ){
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 == 10 ){
give_nvg();
set_lights("b");
format(msg, 511,"【在游戏选项中设N键为打开/关闭夜视仪】^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 == 11 ){
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);
}
if( g_round == 18 ){
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 == 19 ){
give_nvg();
set_lights("a");
format(msg, 511,"【在游戏选项中设N键为打开/关闭夜视仪】^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 == 20 ){
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 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
}
回复: [吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成
谢谢你哈大哥。!!!!!!!非常感谢我没其他语言了。我又不能给你钱钱。这样对你的人格侮辱撒。。!哈哈玩笑话!谢谢 我也谢谢啊··· 谢谢!!
页:
[1]