搜索
查看: 6699|回复: 24

[AMXX 带源码] 感觉这个升级插件比较好(没翻译—带原码)

[复制链接]
发表于 2009-7-2 06:49:42 | 显示全部楼层 |阅读模式 来自 中国–江西–萍乡
本帖最后由 pxhome 于 2009-7-2 06:52 编辑

RPG mod v1.0b3
(Last updated: 26 June 2009)

Description
This plugin is based on RPG mod for CS:S by SeLfkiLL.
It allows players to gain xp when they kill or damage opponents. After reaching certain amount of xp, player gains level and receives credits.
Players can spend their credits to buy upgrades providing different benefits.

You can also:
- allow only one of the teams to use upgrades
- set default upgrades for all players or bots
- give some upgrades only to selected users
- block players from changing anything in their data (so they can use only default upgrades or upgrades given by command)


Upgrades:
Code:
1: Regeneration: regenerates 1-10 hp every second
2: Health+: increases your maximum health by 25-250
3: Resupply: regenerates 1-10 bp ammo every 3 seconds
4: Vampire: gives you 7.5%-112.5% of damage dealt back as health (if not full)
5: Stealth: makes you transparent (16%-78%)
6: LongJump: increases your jump speed (20%-100%)
7: IceStab: your knife stabs seriously slow down your opponents
8: FrostPistol: your pistol hits slow down your opponents
9: Denial: you get your weapons back if you died
10: Impulse: temporarily increases your speed after being hit
11: Medic: heals your nearby teammates (1-15 hp (armor) every second)
12: AutoBHop: lvl1 - autojumping, lvl2 - no slowdown after landingRequired Modules
fakemeta
hamsandwich
fun
cstrike
nvault
sqlx


Commands
Chat commands:
rpg or menu - opens main menu
help - opens help menu
/deletexp - deletes your data from current database

Console commands:
rpgmenu - opens main menu

amx_rpglogin <username> <password> - used to register or login
I've never seen it in any xp mod (I wonder why). It allows you to link your player data (xp, credits, upgrades) with desired username and password.
To register and save your data, use this command with username that does not exist in database.
To login and retrieve your data, use this command with username and password you used to register.
Both username and password must be 3-10 characters containing only letters, numbers, - and _
Using this command you can always get back your data even if you have mutliple steamids/dynamic ip/different names or server cvar rpgm_saveby has changed.
If you use this command your current data will be always deleted from current database (set by rpgm_saveby cvar), and moved to/loaded from database for registered users.

Admin console commands:
amx_rpg_lvl <@all|@t|@ct|#userid|name> <+|=|-> <amount> - changes target(s) level
amx_rpg_drop_upgs <@all|@t|@ct|#userid|name> - forces target(s) to sell all upgrades
amx_rpg_set_upgs <@all|@t|@ct|#userid|name> <upgrades_string> - set target(s) upgrades
example: amx_rpg_set_upgs @t 5a0e00000001
(give all terro lvl5 regeneration, lvl10 health, lvl14 vampire and lvl1 bhop)

Server commands:
amx_rpg_global_reset <RENAME|DELETE> - rename or delete all current database files/tables
In other words: xp reset for all players
Cvars
cvar default_value   //description

rpgm_savedata 1   //save data? 1 - yes, 0 - no (including bots)
rpgm_bot_savedata 0   //save bots data ? 1 - yes, 0 - no   
//bots are always saved by name in separate file (nvault) or table (mysql)

rpgm_saveby 1   //save player data by 1 - steamid, 2 - ip, 3 - name
//data saved by steamids, ips, names is kept in separate files/tables

rpgm_savedb 1   //Database: 1 - nvault, 2 - MySql
rpgm_sql_host ""   //sql server ip
rpgm_sql_user ""   //sql username
rpgm_sql_pass ""   //sql password
rpgm_sql_db ""   //sql database name

rpgm_user_control 1   //block say commands, menus and info under chat? 0 - yes, 1 - no

rpgm_frequent_save 0   //1, 2 - frequent xp saving
//set to 1 or 2 if you are worried about players losing xp earned during map due to server crash
//0 - automatically save player data only on disconnect
//1 - save on disconnect + save all players data on new round
//2 - save on disconnect + every 10 secs save player with most xp gained
//2 is for servers with no round end (csdm etc.)

rpgm_xp_mult 1.0   //multiplier for xp gained

rpgm_in_team 0   //upgrades work only for: 0-both teams, 1-ts, 2-cts

rpgm_start_lvl 0   //default level for new players
rpgm_bot_start_lvl 0   //default level for new bots

rpgm_upgs 111111111111   //this is string, it determines which upgrades are enabled and disabled
//0 on position x means that upgrade number x is disabled while 1 means it's enabled
//example 1: 111111111110 - all upgrades enabled, except AutoBHop
//example 2: 010010000000 - only Health+ and Stealth are enabled
//If you disable some upgrade, then players get 100% of credits spent on this upgrade back

rpgm_def_upgrades 000000000000   //this is string - default upgrades for new players        
rpgm_bot_def_upgrades 00000000000   //this is string - default upgrades for new bots
//you can use numbers (0,...,9) and letters (a,...,z)
//a = 10, b = 11, c = 12, ...

rpgm_bot_buy_upgs 0   //bots automatically buy random upgrades on spawn? 1 - yes, 0 - no
//depends on amount of credits, bot buy random upgrade if his credits are >= 0

ChangeLog
1.0b3 (26 June 2009):
- added MySql support (using sqlx module)
- added bots support (start lvl, data saving, buying upgrades)
- added settings menu
- modified login info menu
- added cvars:
        rpgm_savedb
        rpgm_frequent_save
        rpgm_start_lvl
        rpgm_in_team
        rpgm_def_upgrades
        rpgm_bot_start_lvl
        rpgm_bot_savedata
        rpgm_bot_buy_upgs
        rpgm_bot_def_upgrades
        rpgm_sql_host
        rpgm_sql_user
        rpgm_sql_pass
        rpgm_sql_db
        rpgm_user_control
- added commands:
        amx_rpg_lvl
        amx_rpg_drop_upgs
        amx_rpg_set_upgs
        amx_rpg_global_reset
- removed cvar rpgm_start_cr

1.0b2 (21 June 2009):
- bugfix (xp reset when using say)

1.0b1 (9 June 2009):
- bugfix (index out of bounds in show_levels)

1.0b (8 June 2009):
- first releaseCredits
SeLfkiLL - orginal idea

继续引用原来的老话
有能力的就慢慢看,没能力就等别人发布已经翻译出来的,估计没几个人愿意自己翻译好的出来。
作者本人也还在不断的完善这个插件。希望大家把这个升级插件在僵尸服务器里发扬光大,最少这个带原码,以后你也可以不要看别人眼色来求原码了。就这样,我也顺便随便收点下载币。

本帖子中包含更多资源

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

×
发表于 2009-7-3 20:30:24 | 显示全部楼层 来自 中国–广东–肇庆
这个好像BUG比较多,而且是很久以前的产品
回复

使用道具 举报

 楼主| 发表于 2009-7-3 23:46:16 | 显示全部楼层 来自 中国–江西–萍乡
已经更新到 1.03B版了,你可以试一下
不是原来作者更新的
回复

使用道具 举报

发表于 2009-7-12 09:41:37 | 显示全部楼层 来自 中国–广东–深圳
RPG游戏国防部v1.0b3
(最后更新: 2009年6月26日)

描述
此插件是基于RPG游戏国防部的政务司司长:县的SeLfkiLL 。
它可以让玩家获得XP中当他们杀死或破坏对手。后达到一定数额的XP中,球员收益水平,并得到学分。
玩家可以花费学分购买升级提供不同的好处。

您还可以:
-只允许其中一个小组使用升级
-设置默认升级为所有的球员或漫游
-提供一些升级用户只选择
-阻止球员改变任何东西在他们的数据(这样他们就可以只使用默认的升级或升级所给予的命令)


升级:
码:
1 :再生:再生惠普每秒钟1月10日
2 :健康+ :增加您的最高健康的25-250
3 :再:再生1-10基点弹药每3秒
4 :吸血鬼:给你7.5 % -112.5 % ,处理后的损害健康(如果不是全部)
5 :隐身:让你透明的( 16 % -78 % )
6 : LongJump :增加您的跳转速度( 20 % -100 % )
7 : IceStab :您的刀刺严重放慢您的对手
8 : FrostPistol :您手枪访问放慢您的对手
9 :拒绝:您让武器回到如果你死
10 :脉冲:暂时增加的速度被击中后
11 :梅迪奇:医治您附近的队友( 1月15日,惠普(甲)每一秒钟)
12 : AutoBHop : lvl1 - autojumping , lvl2 -没有放缓后landingRequired模块
fakemeta
hamsandwich
娱乐
cstrike
nvault
sqlx


命令
聊天命令:
RPG游戏或菜单-打开主菜单
帮助-打开帮助菜单
/ deletexp -删除您的数据从当前数据库

控制台命令:
rpgmenu -打开主菜单

amx_rpglogin <用户名> <password> -用于注册或登入
我从来没有见过的任何XP的国防部(我不知道为什么) 。它允许你联系您的播放器的数据( XP中,信贷,升级)与理想的用户名和密码。
登记和保存您的数据,使用此命令的用户名,并不存在于数据库中。
登录和检索你的数据,使用此命令的用户名和密码,您登记。
这两个用户名和密码必须是3-10字符只包含字母,数字, -和_
使用此命令,您可以随时取回您的数据即使您已经mutliple steamids /动态IP /不同的名称或服务器cvar rpgm_saveby已经发生了变化。
如果您使用此命令您当前的数据将被永远删除当前数据库(确定rpgm_saveby cvar ) ,并转移到/从数据库中注册用户。

管理控制台命令:
amx_rpg_lvl “ @所有| @吨| @的CT | #帐号|名称” <+|=|-> <amount> -改变目标(县)级
amx_rpg_drop_upgs “ @所有| @吨| @的CT | #帐号|名称” -部队目标(县)出售所有升级
amx_rpg_set_upgs “ @所有| @吨| @的CT | #帐号|名称” <upgrades_string> -设定目标(县)升级
例如: amx_rpg_set_upgs @吨5a0e00000001
(让所有terro lvl5再生, lvl10健康, lvl14吸血鬼和lvl1 bhop )

服务器的命令:
amx_rpg_global_reset <RENAME|DELETE> -重命名或删除当前的所有数据库文件/表格
换句话说: XP中重置所有球员
Cvars
回复

使用道具 举报

 楼主| 发表于 2009-7-12 12:44:18 | 显示全部楼层 来自 中国–江西–萍乡
难得看到这样的有心人呀~~~~
回复

使用道具 举报

发表于 2009-7-19 08:45:57 | 显示全部楼层 来自 中国–贵州–遵义
翻译的有点乱
回复

使用道具 举报

发表于 2009-7-20 12:51:52 | 显示全部楼层 来自 中国–广东–深圳
是在控制台输入命令才可以注册或登陆啊,有没有游戏中提示注册和登陆的呢?
回复

使用道具 举报

发表于 2009-7-20 13:24:57 | 显示全部楼层 来自 中国–广东–深圳
我安装了一下这个插件,总体感觉来说非常不错,只是汉化和数据库连接问题没得到解决 ,再将其修改成游戏中提示玩家注册,我想这个插件一定相当不错,如果有人愿意帮我按照这个意思帮我改一下这个插件的话,我愿意给予经济回报!有意者请联系我QQ247140593   谢谢!!!!
回复

使用道具 举报

发表于 2009-7-20 20:41:40 | 显示全部楼层 来自 中国–广东–深圳
DDDDDDDDDDDDDDDD
回复

使用道具 举报

发表于 2009-7-21 10:28:28 | 显示全部楼层 来自 中国–山东–济南
都翻译出来啊,有用吗?
回复

使用道具 举报

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

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