-- 作者:saloman
-- 发布时间:2007-10-05 23:43:00
-- 新的AMXX 限制NO C-D购买武器插件CDpunisher汉化版插件
首先声明:这个插件不是我编的,我只是把别人的东西拿过来改了一句话!原版的进服检测是否开cd,不开cd的,名字前面会加[NO C-D],而且限制no cd有些枪支买不了,并且每隔几秒钟提醒玩家要开cd,如果不开cd,很多枪不能买而且每局会被扣除40%的钱!!开了cd,每局奖励10%的钱!!!。如果是开了作弊器的,会在名字前加[Old C-D],但是不能踢出[Old CD]。所以我改进了这个插件,让他能踢[Old C-D] 后来我试着汉化了一下,但都是乱码,经过一段时间,我终于汉化完了,也是依据点通那位高人的东西翻译的,所以我在这里申明,这个插件不是我编的,我只是在里面加了一句话,后编译的。
使用方法: 1.在服务器 X:\\HLServer\\cstrike\\server.cfg文件中添加:
cdrequired 0
2\\下载CDPunisher-0h.amxx复制到HLServer\\cstrike\\addons\\amxx\\plugins目录下 在\\amxx目录下plugins.ini中添加 CDPunisher-0h.amxx
3.在服务器 X:\\HLServer\\cstrike\\addons\\amxx.cfg文件中添加:
// Begin cfg // These values are the recomended values. Please feel free to change them.
// This part of a message that will be displayed to NO C-D players. // Try to limit the number of charecters to something that will fit in one line. cdpunish_message "DO NOT ASK ADMINS ABOUT CHEATING DEATH! YOU\'VE BEEN WARNED!"
cdpunish_disarm 2 // 0=off 1=no cd only 2=old cd and no cd cdpunish_requireauth 1 // 0=trusted 1=treat as No C-D 2=Treat as Old C-D cdpunish_moneymanager 1 // 1=on 0=off
// cdpunish_cdauthmoney, cdnoauthmoney and cdoldauthmoney // are intergers that represent a percentage of money that will be // added or subtracted from the players winnings each time they make // money. That will be when they spawn, when the get a kill, when // they rescue a hostage and so on. // to set no loss and no gain use 100 // to set 60% loss use 60 // to set 30% gain use 130 cdpunish_cdauthmoney 110 // If C-D gives +10% cdpunish_cdnoauthmoney 60 // if No C-D subtracts 40% cdpunish_cdoldauthmoney 50 // if Old C-D subtracts 50% // The following are the weapon restriction rules. // 0 = unrestricted // 1 = No C-D restricted // 2 = No C-D and Old C-D restricted // By default all restrictions are off cdpunish_p228 1 cdpunish_shield 1 cdpunish_scout 0 cdpunish_xm1014 1 cdpunish_mac10 0 cdpunish_aug 2 cdpunish_elite 1 cdpunish_fiveseven 1 cdpunish_ump45 0 cdpunish_sg550 2 cdpunish_galil 2 cdpunish_famas 2 cdpunish_usp 0 cdpunish_glock18 0 cdpunish_awp 2 cdpunish_mp5navy 0 cdpunish_m249 1 cdpunish_m3 1 cdpunish_m4a1 2 cdpunish_tmp 1 cdpunish_g3sg1 2 cdpunish_deagle 1 cdpunish_sg552 2 cdpunish_ak47 2 cdpunish_p90 1 cdpunish_awp 2 cdpunish_hegrenade 2 cdpunish_flashbang 1 cdpunish_smokegrenade 1 cdpunish_nvgs 1 cdpunish_defuser 1 cdpunish_vest 0 cdpunish_vesthelm 0 cdpunish_primammo 0 cdpunish_secammo 0 // End cfg
测试环境1.76a +cd 3.3.1 server,,这些参数大家可以随便更改,后面的“0”代表任何人买枪不受限制,“1”代表[NO C-D]的不能买这个枪。“2”就没有必要设置了,因为2时指[Old C-D]和[NO C-D],而此时[Old C-D]已经被踢出去了,所以和“1”,没多大区别。
见下贴有人要源码,现在附上源码,希望国人提高反作弊意识。 点击浏览该文件
点击浏览该文件
[此贴子已经被作者于2007-10-5 23:43:19编辑过]
|