|
发表于 2007-10-10 18:14:47
|
显示全部楼层
|阅读模式
来自 中国–天津–天津
AMX 插件
本想利用插件使得OP有某些特权,结果却是无法实现。
文件users.ini中写入OP权限, abcdefghijklmnopqrstu ,写入了A权限(无法被KICK,ban或者强行被杀等),在 clcmds.ini 文件中写入了以下代码:
"ti ren" "amx_kick #%userid%" "ab" "u"
"chu si" "amx_slay #%userid%" "abd" "u"
"da ta 10 hp" "amx_slap #%userid% 10" "ab" "u"
"feng ip 10 fen zhong" "amx_banip 10 #%userid%" "bd" "u"
"dui wu jiao huan" "amx_teammenu #%userid%" "bd" "u"
"feng zui 30" "amx_gag #%userid% a 30" "ab" "u"
"mai ren" "amx_bury #%userid%" "ab" "u"
"jie chu wu qi" "amx_disarm #%userid%" "ab" "u"
"shan er guang" "amx_uberslap #%userid%" "ab" "u"
"yong dian pi si" "amx_slay2 #%userid% 1" "ab" "u"
"shao huo" "amx_fire #%userid%" "ab" "u"
"zuo huo jian" "amx_rocket #%userid%" "ab" "u"
"bian zha dan" "amx_timebomb #%userid%" "ab" "u"
"kai wu di" "amx_godmode #%userid% 1" "ab" "u"
"Jia HP 50" "amx_heal #%userid% 50" "bd" "u"
"Jia FP 50" "amx_armor #%userid% 50" "bd" "u"
"Chuan Qiang" "amx_noclip #%userid% 1" "bd" "u"
"Gei M4A1" "amx_weapon #%userid% 43" "bd" "u"
"Gei AK47" "amx_weapon #%userid% 41" "bd" "u"
"Gei AWP" "amx_weapon #%userid% 46" "bd" "u"
"Gei $16000" "amx_givemoney #%userid% 16000" "bd" "u"
"Mo Shou $5000" "amx_takemoney #%userid% 5000" "bd" "u"
结果因为有了这个A权限,导至这里所有指令都不能加在VIP和OP身上,用什么方法可以使即使加上了A权限,也能实现OP特权功能!
另外还有一个问题:
原本想实现魔兽及混战模式的转换,就写了以下的文件:
魔兽3模式
amx_pausecfg enable pausecfg.amx
amx_pausecfg enable statscfg.amx
amx_pausecfg enable suicidetext.amx
amx_pausecfg stop one_name.amx
amx_pausecfg stop lastmanbets.amx
amx_pausecfg enable bombCountdown.amx
amx_pausecfg enable BombAwards.amx
amx_pausecfg stop KnifeArena.amx
amx_pausecfg stop infinitemoney.amx
amx_pausecfg enable warcraft3.amx
amx_pausecfg save
restart
mp_roundtime 3.0
mp_timelimit 280
log on
比赛模式
amx_pausecfg stop pausecfg.amx
amx_pausecfg enable statscfg.amx
amx_pausecfg stop suicidetext.amx
amx_pausecfg stop one_name.amx
amx_pausecfg stop lastmanbets.amx
amx_pausecfg stop bombCountdown.amx
amx_pausecfg stop BombAwards.amx
amx_pausecfg stop KnifeArena.amx
amx_pausecfg stop warcraft3.amx
amx_pausecfg stop infinitemoney.amx
amx_pausecfg save
restart
mp_roundtime 3.0
mp_timelimit 280
log on
混战模式
amx_pausecfg enable pausecfg.amx
amx_pausecfg enable statscfg.amx
amx_pausecfg enable suicidetext.amx
amx_pausecfg stop one_name.amx
amx_pausecfg stop lastmanbets.amx
amx_pausecfg enable bombCountdown.amx
amx_pausecfg enable BombAwards.amx
amx_pausecfg stop KnifeArena.amx
amx_pausecfg stop infinitemoney.amx
amx_pausecfg stop warcraft3.amx
amx_pausecfg save
restart
mp_roundtime 3.0
mp_timelimit 280
log on
然后在“plugins.ini”也开启了相应的插件,开局后在游戏中转换出现这样的问题:
游戏开始是魔兽3模式加混战娱乐插件,能正常运行,转换成魔兽3模式后也能正常运行,但从魔兽3模式转换成混战或比赛模式问题就出现了,杀死人后的事件显示消失了(右上角显示谁打死谁的那个),重新转换成魔兽3模式也是如此,之后我又更换过WAR3的模块及插件,还是不行,弄了好几天都不行,请高手帮帮忙看看是什么问题!
PS:本人对AMX及AMXX刚接确不久,不是很熟,所以问题多多,望各位大虾不要见怪! |
|