[自创]教学 于不同地图限制武器 限制插件 独立使用

Home Home
引用 | 编辑 观众甲
2010-01-18 15:36
楼主
推文 x7
原因: 想某特定地图才开启的插件
例子 : 只想在de_dust2 & de_dust  ...
~开启 sentrygun.amxx
~关闪 rope.amxx
~限制不能购买沙漠之鹰

1) 在amxx.cfg 加入  amx_pausecfg pause sentrygun.amxx
解释: 因为只想 某特定地图才开启 所以预设关闭这个插件
2) 在cstrike\addons\amxmodx\configs\maps,没有maps资料夹就自创 建立一个空白文件 副档名为cfg
文件名字 必须为该地图名称   (如 de_dust2.cfg  & de_dust.cfg)
3) 编辑 de_dust2.cfg
4a) 输入所需要在这地图开启的插件
amx_pausecfg enable sentrygun.amxx
再该地图开启插件的指令 插件名称
4b) 输入所需要在这地图关闭的插件
amx_pausecfg pause rope.amxx
关闭插件的指令 插件名称

5) 如需要 限制武器 (如沙漠之鹰) 请输入
amx_restrict on deagle
限制武器指令 枪名称
其他武器如下
武器名->限制名
H&K USP .45 Tactical -> usp
Glock18 Select Fire -> glock
Desert Eagle .50AE -> deagle
SIG P228 -> p228
Dual Beretta 96G Elite -> elites
FN Five-Seven -> fn57
Benelli M3 Super90 (pump shotty) -> m3
Benelli XM1014 (auto shotty) -> xm1014
H&K MP5-Navy -> mp5
Steyr Tactical Machine Pistol -> tmp
FN P90 -> p90
Ingram MAC-10 -> mac10
H&K UMP45 -> ump45
AK-47 -> ak47
Gali -> galil
Famas -> famas
Sig SG-552 Commando -> sg552
Colt M4A1 Carbine -> m4a1
Steyr Aug -> aug
Steyr Scout -> scout
AI Arctic Warfare/Magnum -> awp
H&K G3/SG-1 Sniper Rifle -> g3sg1
Sig SG-550 Sniper -> sg550
FN M249 Para (machine gun) -> m249
Kevlar Vest -> vest
Kevlar Vest & Helmet -> vesthelm
Flashbang -> flash
HE Grenade -> hegren
Smoke Grenade -> sgren
Defuse Kit -> defuser
NightVision Goggles -> nvgs
Tactical Shield -> shield
Primary weapon ammo -> primammo
Secondary weapon ammo -> secammo方法二:通过OP rcon命令实行封禁/解除。在控制台输入amx_restrict命令。你将得到如下提示:

Usage: amx_restrict <command> [value]
Commands:
on - set restriction on whole equipment 〈禁止所有武器〉
off - remove restriction from whole equipment 〈开启所有武器〉
on <value> [...] - set specified restriction 〈设置禁止〉
off <value> [...] - remove specified restriction 〈解除禁止〉
list - display list of available equipment and weapons 〈显示可用的武器以及装备〉
save - save restriction 〈保存武器设置〉
load [file] - load restriction [from a file] 〈加载服务器武器设置〉
Available values to restrict are:
ammo, equip, pistol, shotgun, sub, rifle, machine
Type 'amx_restrict list' for more specified values
Basically, your commands are:<Written by KinGtIon>
amx_restrict on <weapon name or catagory> <武器名字或全名> on 代表禁止
amx_restrict off <weapon name or catagory> off 代表开启使用
amx_restrict list 武器列表
amx_restrict save 武器禁止之后保存文件<任何时候都有效,不保存将只对当前地图有效>
amx_restrict load <weaponrest.cfg> 加载服务器以前的禁止设置

具体使用方法:

先打开武器列表:rcon amx_reatrict list 武器列表第一页<手枪系列>;rcon amx_reatrict list11武器列表第二页<短枪系列>; rcon amx_reatrict list21 武器列表第三页<长枪系列>; rcon amx_reatrict list31武器列表第四页<盾牌和子弹>。在里面找出相应的武器名称。

禁枪命令:如禁匪徒连狙:rcon amx_restrict on g3gs1;警察连狙:rcon amx_restrict on sg550;盾牌:rcon amx_restrict on shield。

解除封禁:用off代替on就可以了。

献花 x4
引用 | 编辑 chapecs
2010-01-18 16:33
1楼
  
好方便的方法!!

邦推上去一下啰 表情

献花 x0
引用 | 编辑 01a2Bc3DeF
2010-01-18 22:15
2楼
  
分图改真好用,这样就不用在地图档里加些怪怪的参数了(像KZ的摔玩血之后补满)
有改大类别的吗,像名称前2字是kz的全部都不损血的,这样会更方便

献花 x0
引用 | 编辑 pinustoh1996
2010-01-19 00:13
3楼
  
这个好像挺好的啦 表情

献花 x0
引用 | 编辑 makkihim2
2010-01-19 20:16
4楼
  
不懂用呀!!!!!!!!!!!......

献花 x0
引用 | 编辑 观众甲
2010-02-22 19:49
5楼
  
下面是引用 makkihim2 于 2010-01-19 20:16 发表的 : 到引言文
不懂用呀!!!!!!!!!!!......

你要装了amxx其中一个版本,在configs新增map的资料夹
然后再map的资料夹里面先新增一个文字本
然后把
新增文字文件.txt
改成
(地图名称).cfg
例如de_dust2.cfg
如果看不到副档名
请到
控制台→资料夹选项→检视→隐藏已知档案类型的副档名
本来有打勾的
变成没有打勾
按套用,确定
然后就看到副档名了

献花 x0
引用 | 编辑 so78b42
2010-02-22 19:58
6楼
  
这真的不错每张地图能有不同的设定 谢谢分享

献花 x0
引用 | 编辑 fi-favor
2010-05-18 21:41
7楼
  
好用的教学

谢谢分享如此方便的文章
先前我发表的只有说到一部份的应用
大大这篇给了详细的说明

而且还新增呵好几个功能应用

很谢谢你,解决我的问题

费话就不多说了
推推~~推到天上吧

献花 x0
引用 | 编辑 6231
2010-05-31 02:13
8楼
  
太完美了!!
感谢~
晚点再弄

献花 x0
引用 | 编辑 s091140
2010-11-10 19:22
9楼
  
你真棒呀!!!!
我想很久也想不出方法来管制插件表情 表情 给你献花!!

献花 x0
引用 | 编辑 a0963210002
2010-12-27 23:05
10楼
  
我不能用 为什么呢?

献花 x0
引用 | 编辑 jjjerry093
2011-02-14 19:55
11楼
  
这部错 表情

献花 x0
引用 | 编辑 0921553001
2011-05-21 22:43
12楼
  
用用看

正好缺这个~~

献花 x0
引用 | 编辑 klps913409
2012-12-15 16:13
13楼
  
不能使用阿@@~~~

献花 x0
引用 | 编辑 shs9761213
2013-09-05 15:26
14楼
  
谢大大po文,
这让我的SV更完整,
少了屁孩在那边洗芭乐,

话说我有装sb处罚插件, 嘿嘿;)

献花 x0
引用 | 编辑 (1)超强CT
2014-02-12 19:55
15楼
  
这个很好用呢
找了很久才找到
我正好需要

献花 x0
引用 | 编辑 zxzx45248
2014-04-20 12:57
16楼
  
很实用的教学 感谢您的指导 表情

献花 x0