|
发表于 2006-6-9 10:15:49
|
显示全部楼层
来自 中国–上海–上海–松江区
回复: 帮忙改下源码 谢谢 ^.^
Post by 如花
就是Time12的源码 请高人帮忙改一下 我是新手 试了5次了都出错 实在有些郁闷了:confused: 要求:1.能在Amxx1.71下正常编译成功.2.下雪时不要再有刮风的音效,很吵,不让它有音效就OK了,只下雪.3.下雨时的雨滴感觉很假,能不能改成de_aztec这个图那样的雨的样子呢?[...
1、AMXX1.0以上的SMA源码本身就能在AMXX1.6和AMXX1.7编译,反之,用于AMXX1.6的SMA源码也能在AMXX1.0下编译,所以不用修改。
2、只要在
public w_tstorm1(){
new chances = random_num(0,4)
if(chances > 2){
new xy[2]
xy[0] = random_num(-2200,2200)
xy[1] = random_num(-2200,2200)
set_task(0.3,"lightning",1324,xy,2,"a",6)
//client_cmd(0, "spk ambience/thunder_clap.wav")
前面加 // 就能把音效关掉啦,如果不行,就直接删除掉client_cmd(0, "spk ambience/thunder_clap.wav")...
3、下雨的样子修改需要一个文件,但现在没有……
4、把下面的5个音效文件改成自己所需的音效文件就可以啦
playSound(type)
{
new players[32], inum
get_players(players,inum,"c")
for(new i = 0 ;i < inum; ++i){
switch(type){
case 0: client_cmd(players,"play ^"../sound/ambience/cicada3.wav^"")
case 1: client_cmd(players,"play ^"../sound/ambience/wolfhowl01.wav^"")
case 2: client_cmd(players,"play ^"../sound/ambience/3dmeagle.wav^"")
case 3: client_cmd(players,"play ^"../sound/misc/admin.wav^"")
case 4: client_cmd(players,"play ^"../sound/misc/wolfhowl02.wav^"")
}
}
5、这个我也不明白....
6、直接修改音效文件...
public w_rain_s(){
client_cmd(0,"spk ambience/sandfall1")
new chances = random_num(0,4)
if(chances > 2){
new xy[2]
xy[0] = random_num(-2200,2200)
xy[1] = random_num(-2200,2200)
set_task(0.3,"lightning",1324,xy,2,"a",6)
client_cmd(0, "spk ambience/rain.wav")
}
return PLUGIN_HANDLED
不知道这样的修改有用没用,还请KINSPRITE、ZHANGSHENG、小E、ACHAT他们帮忙看看,我只不过提个思路....... |
|