能用CS的名字保存金钱了,
源码中第一句修改用MYSQL保存经验#define SQLON 0 =#define SQLON 1
这样就好了之要在SQL.CFG中设置好SQL的用户名和密码和数据库名字,这样就会自动在数据库中建叫bank的表很简单.
//将本文件内容复制到amxx.cfg文件中
//=================银行系统设置==========================
//开设新银行账号时默认存放的数量,如果没有这么多数量那么什么时候有什么时候自动存入 (默认1000)
bank_default_opening 1000
//银行开关是否发消息到玩家 (默认 1; 0|1) 关|开
bank_state 1
//使用银行最少人数限制 (默认 2)
bank_min_players 2
//银行使用权限制 (默认 0; 0|1|2) 0为任何人可以使用; 1为"addons/amxmodx/configs/bankusers.ini"上的或SQL表bankusers上有的SteamID及管理员可以使用 ;2为只有ini上有SteamID的可以使用
bank_restrict 0
//设定多少回合内可以使用银行 (默认 15)
bank_interest_rounds 15
//返回多少利息 (默认 0.01 (0.01 = 1%))
bank_interest_rate 0.01
//Bank fee for first transaction in each round (default 0; in $)
bank_fees_base 0
//Increase in the current bank fee per transaction (default 0; in $)
bank_fees_increase 0
//How many rounds to wait to turn on the bank at the beginning of the map.
bank_offrounds 1
//Set the message displayed to tell people that the bank is running
bank_msg "本服务器使用了银行插件,输入bank_menu调用银行菜单,输入bank_help查看帮助"
//(default 60) - Set the rate in seconds at which the message is displayed
bank_msg_interval 90
//(default 0; 0|1) - 设置1为使用IP记录金钱 - 设置0为使用名字记录金钱 默认为0
bank_use_ip 0