回复: 能否请版主解决一下,关于烟雾弹的问题..........
谢谢....再请帮忙加个设定在第8局和16局出现夜晚模式:
//****************************
#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
format(msg, 511,"^x03【夜晚模式: 请买夜视仪并开启】^x01")
client_cmd(0,"spk misc/cvt_night0")
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 plugin_precache() {
precache_sound( "misc/cvt_night0.wav")
}
回复: 能否请版主解决一下,关于烟雾弹的问题..........
啊.....出现烟雾不规则问题,如图:回复: 能否请版主解决一下,关于烟雾弹的问题..........
;Sprite Name ;Size"sprites/555puff.spr" 30
"sprites/666puff.spr" 30
注意smoke_sprites.ini文件里的数字,30表示的是spr图象显示的大小,建议设置小一些。
回复: 能否请版主解决一下,关于烟雾弹的问题..........
我是说它不是雾态的.....而是一闪一闪的.....什么回事呢?回复: 能否请版主解决一下,关于烟雾弹的问题..........
public smoke_explode(param,ent){
if(pev_valid(ent))
{
static Float:origin2
pev(ent,pev_origin,origin2)
static origin
origin = floatround(origin2) + random_num(-75,75)
origin = floatround(origin2) + random_num(-75,75)
origin = floatround(origin2) + random_num(0,65)
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,origin)
write_byte(3)
write_coord(origin) // start position
write_coord(origin)
write_coord(origin)
write_short(smokesprites])
write_byte(smokesprites_size])// byte (scale in 0.1's) 188
write_byte(5)// byte (framerate)
write_byte(14)// byte flags
message_end()
}
}
这是因为插件里定义了烟雾弹爆炸后动态spr烟雾的帧率,所以才会一闪一闪的,其实并不是什么严重的问题。
回复: 能否请版主解决一下,关于烟雾弹的问题..........
你好osker lee我一直是laoyou的fans
我按照你的方法把
//public smoke_explode(param,ent)
//{
//if(pev_valid(ent))
//{
//static Float:origin2
//pev(ent,pev_origin,origin2)
//static origin
//origin = floatround(origin2) + random_num(-75,75)
//origin = floatround(origin2) + random_num(-75,75)
//origin = floatround(origin2) + random_num(0,65)
//message_begin(MSG_BROADCAST,SVC_TEMPENTITY,origin)
//write_byte(3)
//write_coord(origin) // start position
//write_coord(origin)
//write_coord(origin)
//write_short(smokesprites])
//write_byte(smokesprites_size]) // byte (scale in 0.1's) 188
//write_byte(5) // byte (framerate)
//write_byte(14) // byte flags
//message_end()
//}
//}
全部注释,编译通过,但是我的hlserver运行的时候 当丢了一个烟雾
烟雾就开始乱跑 然后马赛克
接着 hl server死机
请帮我们看看好吗
回复: 能否请版主解决一下,关于烟雾弹的问题..........
public smoke_explode(param,ent){
if(pev_valid(ent))
{
static Float:origin2
pev(ent,pev_origin,origin2)
static origin
origin = floatround(origin2) + random_num(-75,75)
origin = floatround(origin2) + random_num(-75,75)
origin = floatround(origin2) + random_num(0,65)
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,origin)
write_byte(3)
write_coord(origin) // start position
write_coord(origin)
write_coord(origin)
write_short(smokesprites])
write_byte(smokesprites_size]) // byte (scale in 0.1's) 188
write_byte(5) // byte (framerate)
write_byte(14) // byte flags
message_end()
}
}
回复: 能否请版主解决一下,关于烟雾弹的问题..........
L 04/06/2008 - 12:36:56: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).L 04/06/2008 - 12:36:56: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:56: Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:56: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:56: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:56: Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:56: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:56: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:56: Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 04/06/2008 - 12:36:57: Function is not present (function "smoke_explode") (plugin "GHW_New_Smokes.amxx")
L 04/06/2008 - 12:36:57: Run time error 10 (plugin "GHW_New_Smokes.amxx") (native "set_task") - debug not enabled!
L 04/06/2008 - 12:36:57: To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
回复: 能否请版主解决一下,关于烟雾弹的问题..........
Post by Osker LeeCS1.5和CS1.6是有区别的,CS1.5的烟雾弹只调用smokepuff.spr这个文件,而CS1.6的烟雾弹则需要调用gas_puff_01.spr和smokepuff.spr两个文件。这个New Smoke Sprites插件的功能就是替换烟雾弹的spr文件。
你可以先把gas_puff_01.spr和smokepuff.spr改成别的名称,如改名为555puff.spr和666puff...
顶。。。。。。。。。。。。好贴不能错过。。 没钱了!哇哇!刷了!22222222
页:
1
[2]