搜索
查看: 2422|回复: 6

[吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成打3局就

[复制链接]
发表于 2008-11-3 16:43:37 | 显示全部楼层 |阅读模式 来自 重庆渝北区
[吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成打3局就换成黑夜模式!谢谢   

   这是前几天发现的。。还挺好玩的!1

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
雨在梦中下的粉 该用户已被删除
发表于 2008-11-3 19:45:45 | 显示全部楼层 来自 广东韶关
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2008-11-4 16:13:20 | 显示全部楼层 来自 河南漯河

回复: [吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成

同求,希望放出源码,谢谢
回复

使用道具 举报

发表于 2008-11-4 16:48:07 | 显示全部楼层 来自 广西百色

回复: [吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成

#include <amxmodx>
#include <engine>
#include <cstrike>
#define TASK_NIGHT 363636
new g_round
new msg[512]
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[32],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
}
回复

使用道具 举报

 楼主| 发表于 2008-11-5 15:38:59 | 显示全部楼层 来自 重庆渝北区

回复: [吴梦达] 大哥进来一下把你的哪个黑夜模式插件的代码发一下吧!我想把这个改成

谢谢你哈大哥。!!!!!!!非常感谢我没其他语言了。我又不能给你钱钱。这样对你的人格侮辱撒。。!哈哈玩笑话!谢谢
回复

使用道具 举报

发表于 2009-3-8 02:31:45 | 显示全部楼层 来自 湖南衡阳
我也谢谢啊···
回复

使用道具 举报

发表于 2010-2-21 13:24:25 | 显示全部楼层 来自 北京
谢谢!!
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

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