搜索
查看: 11771|回复: 38

[AMXX 带源码] Zombie XP V0.8(ZP人类+僵尸技能)【帖子编辑完毕】

[复制链接]
发表于 2009-2-4 18:30:51 | 显示全部楼层 |阅读模式 来自 河南三门峡
本帖最后由 tingshow163 于 2009-2-4 20:57 编辑

这是一个稳定和安全的插件,但像所有的插件,如果有问题请在这里的留言,我会帮助解决。

(首先请务必更新ZP银行-带自动保存功能的插件,如果您使用此插件)
只有人类类别:
更新:很多人问的只是一个人的类别插件。只要增加下列CVARs在你的zombieplague.cfg ( amxmodx / configs / zombieplague.cfg )的结尾
  1. zp_xp_removexp 1 //disables XP
  2. zp_xp_removeweapons 1 //removes custom class weapons and enables CSDM
  3. zp_xp_removezombie 2 //removes custom zombie classes
复制代码
然后,只需按下J在游戏中显示出人类级别菜单。

特点:
Gaining levels unlocks stronger classes for both humans and zombies.使人类和僵尸或者更强的被锁定的技能
Human Classes - by default the CSDM weapon menu is disabled.人类菜单-默认CSDM武器的菜单被禁用。 As you level up, you can choose stronger human classes with better weapons.如果你升级后,您可以选择更强的人类菜单购买更好的武器。
Zombie Classes - The same as always (but found in Zombie XP's menu).僵尸菜单-一如既往的样式(但显示僵尸经验的菜单) 。
Saves Levels automatically.自动储存经验。
Saves human and zombie class selection.保存选择的人类和僵尸的技能。


其他信息

要查看僵尸的菜单xpmenu 。
If you leave "#define ZP_BINDMENU" uncommented (Uncommented by default) , you can also press "J" to show the Zombie XP menu.
如果您修改了“ #定义ZP_BINDMENU ”默认键位 ,您也可以按“ J ”来查看僵尸XP的菜单。
You can level up, and each level costs more money than the last.
每升级一次,会比上次的花费更多。
This is a great plugin for servers where people spam infections grenades because there is no other reason to save their money.
这是一个强大的T病毒感染插件,因为没有其他理由以挽救他们的钱。
Basic addon zombies have been provided for Zombie XP, and I can't wait to see what the community comes up with.
基本插件僵尸提供了僵尸XP和我迫不及待地想看看社会出现的。
没有修改本来的僵尸类型。




安装方法


       把zombie_xp.amxx放到zombie_plague40.amxx同一个plugins_zplague.ini里面. 然后添加僵尸,需要注意的是:首先要去掉或者注释掉非官方的僵尸类型.


下面这段不是怎么懂.附上英文原档.大家自己理解去吧.

The only exception to having non-Zombie XP zombies is to set cvar zp_xp_removezombie to 1 or 2, but doing so disables custom zombies (only humans will be listed, and zombies can be chosen from zombie plague's menu



如何修改僵尸的技能


1.添加"#include <zombiexp>", and just replace zp_register_zombie_class with zpxp_register_zombie_class, adding the required level at the end.
例如


  1. zp_register_zombie_class(name, info, model, clawmodel, health, speed, gravity, knockback)  

复制代码
修改成

  1. const hclass_level = 6 // level required to use

  2. zpxp_register_zombie_class(name, info, model, clawmodel, health, speed, gravity, knockback, level)  

复制代码
人类使用类似的功能

  1. //Note: zclass_clawmodel becomes hclass_weapons
  2. const hclass_level = 6 // level required to use
  3. new const hclass_weapons [] = { WEAPON_AK47 , WEAPON_GLOCK18 } // weapons

  4. g_hclassid = zpxp_register_human_class ( hclass_name , hclass_info , hclass_model , hclass_weapons , hclass_health , hclass_speed , hclass_gravity , hclass_level )


复制代码
下面是截图

     升级后的菜单


显示僵尸XP的菜单



显示僵尸种类







最后面的这段我觉得是关键部分,所以我还是用GOOGLE自动翻译的吧。防止我误导大家。 希望有英文高手修正!!
个性化
zp_xp_welcomemsg 0/1 - 显示欢迎信息
zp_xp_removeweapons 0/1 -  [ 0 ]自定义类枪,或[ 1 ] CSDM默认菜单
zp_xp_removexp 1/0 - Allows selection of any human/zombie class without checking for XP requirements zp_xp_removexp 1 / 0 -允许选择的任何人/僵尸类没有检查XP的要求
zp_xp_removezombie 0/1/2 -[ 0 ]经常僵尸XP和课程。  [ 1 ]隐藏僵尸XP的僵尸并重新启用僵尸插件的僵尸名单。 [2] Same as setting with 1 (hide Zombie XP zombie menu + reenable Zombie Plagues menu) AND prevent Zombie XP classes from being registered with zombie plague. [ 2 ]相同,设置为1 (隐藏僵尸XP的僵尸菜单+重新启用僵尸瘟疫菜单)和防止僵尸XP的班级被注册僵尸瘟疫。 This requires a restart.这需要重新启动。

Code Notes 代码注释
There is a clearly marked section of the code labeled "Editable Section follows", where you can edit some settings in the plugin.有明显标志的部分代码标记为“编辑组如下” ,在那里你可以修改一些设置插件。
#define TRIGGER_ZP_ITEM - Default: enabled - Uncomment to have an item added to zp's extra menu #定义TRIGGER_ZP_ITEM - 默认:启用 -取消有一个项目添加到带的额外菜单
#define TRIGGER_SAYMENU - Default: enabled - Uncomment to use say commands like "xp", "levels", "class", etc #定义TRIGGER_SAYMENU - 默认:启用 -取消使用的命令说,像“ XP中” , “层次” , “阶级”等
#define ZP_BANK_AUTOSAVE - Default: disabled - Uncomment if you have redomin8's [ZP] Bank - With Autosave installed (fixes spending spree bug) #定义ZP_BANK_AUTOSAVE - 默认值:禁用 -取消如果您有redomin8的[邮编]银行-在自动保存安装(修正挥霍错误)
#define ZP_ALIGN_TEXT - Default: disabled - Uncomment to allow experimental menu alignment #定义ZP_ALIGN_TEXT - 默认值:禁用 -取消允许实验菜单调整
#define ZP_GAMERUINER - Default: disabled - Uncomment to give levels to people #定义ZP_GAMERUINER - 默认值:禁用 -取消,使各级人民
#define ZP_BINDMENU "j" - Default: enabled - Uncomment to automatically bind a letter to show our menu #定义ZP_BINDMENU “ J ”的 - 默认:启用 -取消自动绑定的信表明我们的菜单

Notes 注
To change the cost multiplier for leveling up (default is level*15 = cost) use zp_xp_costscale #.改变成本乘数找平了(默认是水平* 15 =成本)使用zp_xp_costscale # 。 (Level 1 costs 15, level 2 costs 30, etc) ( 1级费用15 ,第2级的成本30 ,等)
(ONLY IN BETA) To change someone's level, use zp_xp_set_level name #. (仅在测试版)要改变一个人的水平,使用zp_xp_set_level名称# 。
Be sure to comment out other zombies that do not support zombie xp, failure to do so will create unpredictable results (Unless you set cvar zp_xp_removezombie to 1 or 2)一定要注释掉其他僵尸不支持僵尸XP中,如果不这样做,将创造不可预知的结果(除非你设置cvar zp_xp_removezombie 1或2 )
Keep human names shorter than 32 chars (this is for a clean GUI)保持人的名字少于32个字符(这是清洁的GUI )
If anyone can help with ZP_ALIGN_TEXT, that would be wonderful!如果任何人都可以帮助ZP_ALIGN_TEXT ,这将是美好的!
Be sure and update ZP Bank - with Autosave if you use this plugin可以肯定和更新邮编银行-与自动保存如果您使用此插件

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
发表于 2009-2-4 19:17:01 | 显示全部楼层 来自 广西南宁
先帮你顶,等说明了再下。
回复

使用道具 举报

发表于 2009-2-4 19:40:12 | 显示全部楼层 来自 广东韶关
我删了会怎样:)
回复

使用道具 举报

 楼主| 发表于 2009-2-4 20:00:28 | 显示全部楼层 来自 河南三门峡
删了就删了  我还能怎么  反正我备用的有帐号 我继续灌水。
封我怕IP也没关系 我用代理
回复

使用道具 举报

发表于 2009-2-4 20:05:24 | 显示全部楼层 来自 广东韶关
太牛了:L....你开僵尸服不?
回复

使用道具 举报

 楼主| 发表于 2009-2-4 20:18:58 | 显示全部楼层 来自 河南三门峡
开了 但是我不给你说我的IP    防止你攻击我
回复

使用道具 举报

发表于 2009-2-4 22:05:14 | 显示全部楼层 来自 广东佛山
开了 但是我不给你说我的IP    防止你攻击我
tingshow163 发表于 2009-2-4 20:18


你这句话是在是太经典了 牛 僵尸加“魔兽” 肯定很好玩 普通僵尸服在里面就是杀 多了些种类和功能,想不到现在还能升级加技能了   牛
回复

使用道具 举报

发表于 2009-2-4 22:18:36 | 显示全部楼层 来自 广东韶关
6# tingshow163


我攻击你干吗:L
回复

使用道具 举报

 楼主| 发表于 2009-2-4 22:53:53 | 显示全部楼层 来自 河南三门峡
6# tingshow163


我攻击你干吗:L
8874323 发表于 2009-2-4 22:18



你报复我呗
回复

使用道具 举报

 楼主| 发表于 2009-2-4 22:54:23 | 显示全部楼层 来自 河南三门峡
回个帖子竟然成注册会员了   哦也
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表