请帮我 看看这个插件 功能无法实现
https://forums.alliedmods.net/showthread.php?t=3145 原帖 站内也有http://www.dt-club.net/forum/thread-17448-1-1.html
按照说明安装 就是无法实现功能 发现插件已开启
安装好插件后
杀一人+300
未安装效果
安装后杀一人(无论是用什么武器)都把那300给扣掉了 也就是说一局下来无论你杀多少 钱是不会变的
不知道是为什么 跟插件描述不相符 不知道我是哪里弄错了
我是用的是3647 +amxx181 难道是版本过高么 插件显示 是AMXX1.0如果是这样请问有没有在AMXX1.81下运行的吗
我还想求一个插件规定局内使用规定枪支 非定义内的不可购买 有吗 我觉得效果因该和 刀战局 手雷局类似的东东
谢谢~:loveliness:
amx_mreward_active 1 // plugin is active
amx_knife_kill 3000 // Knife
amx_grenade_kill 1500 // HE Grenade
amx_glock18_kill 1200 // Glock 18
amx_deagle_kill 1000 // IMI Desert Eagle
amx_usp_kill 1100 // Hechkler & Koch USP45
amx_p228_kill 950 // Sig Sauer P-228
amx_fiveseven_kill 1200 // Fabrique Nationale Five-Seven
amx_m3_kill 750 // Benelli M3 Super 90
amx_xm1014_kill 750 // Benelli XM1014
amx_mp5navy_kill 750 // Heckler & Koch MP5/Navy
amx_tmp_kill 700 // Steyr Tactical Mashine Pistol
amx_p90_kill 680 // Fabrique Nationale P90
amx_ump45_kill 680 // Heckler & Koch UMP45
amx_m4a1_kill 550 // Colt M4A1
amx_aug_kill 500 // Steyr AUG
amx_scout_kill 320 // Steyr Scout
amx_awp_kill 150 // Accuracy Int. Arctic Warfare/Magnum(AWM)
amx_sg550_kill 450 // Sig SG550 Commando
amx_m249_kill 500 // FN M249 Para
amx_elite_kill 900 // Dual Beretta 96G Elites
amx_ak47_kill 500 // aAutomat Kalashnikov AK47
amx_mac10_kill 600 // Ingram MAC10
amx_sg552_kill 500 // Sig SG-552 Commando
amx_g3sg1_kill 400 // Heckler & Koch G3/SG-1
amx_headshot_bonus 50 // as percent of weapon money reward
amx_victmoney_bonus 10 // as percent of victim money (without respawn money)
amx_respawn_money 1000 // + money when player respawn 自己顶一下~! 源码呢!
把源码贴出来吖!! 源码如下 /*
* AMXMODX script.
* Weapon Money Reward v0.6
* by Similar
*This file is provided as is..
* (no warranties)
*
* Thanks to Kobri for the great idea ! :)
*
********************************************************************************
*
* Ported By KingPin( kingpin@onexfx.com ). I take no responsibility
* for this file in any way. Use at your own risk. No warranties of any kind.
*
********************************************************************************
*
* Version log
* .2 : Maintained by Similar
*
* .3 : Maintained by KingPin (for now)
* Ported to AMXX
*
* .4 : Added 1.6 weapons
*
* .5 : Made fully amxx compatible with get_basedir
*
* .6 : Made amxmodx .2 compatible with get_configsdir
* changed directory to /addons/amxmodx/configs/wp/
* made more room for longer directory names
*
*
*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
new hsBonus = 0
new rsBonus = 0
new vmBonus = 0
new pActive = 1
new wpnMoney
new plrReward
new wpnStr = {
"",
"grenade","knife","glock18","deagle","usp",
"p228","fiveseven","m3","xm1014",
"mp5navy","tmp","p90","ump45",
"m4a1","aug","scout","awp","sg550",
"m249","elite","ak47","mac10",
"sg552","g3sg1","galil","famas"
}
public init(){
hsBonus = get_cvar_num("amx_headshot_bonus")
rsBonus = get_cvar_num("amx_respawn_money")
vmBonus = get_cvar_num("amx_victmoney_bonus")
pActive = get_cvar_num("amx_mreward_active")
new tmp
for (new i = 0; i < 27; i++) {
tmp = "amx_"
add(tmp,30,wpnStr)
add(tmp,30,"_kill")
wpnMoney = get_cvar_num(tmp)
}
return PLUGIN_CONTINUE
}
public player_death() {
if (pActive == 0) return PLUGIN_CONTINUE
new kWeapon
read_data(4,kWeapon,10)
new killer = read_data(1)
new victim = read_data(2)
new hShot = read_data(3)
if (killer != victim) {
new kMoney = cs_get_user_money(killer)
new vMoney = cs_get_user_money(victim)
kMoney -= 300
cs_set_user_money(killer,kMoney)
new vmLost = 0
if (vmBonus > 0) vmLost = (vMoney * vmBonus) / 100
vMoney += (rsBonus - vmLost)
cs_set_user_money(victim,vMoney)
kMoney = 0
new mReward = 0
for (new i = 1; i < 27; i++) {
if (equal(kWeapon,wpnStr)) {
mReward = wpnMoney
i = 26
}
}
new hsReward = 0
new mmsg
if (hShot) {
if (hsBonus > 0) hsReward = (mReward * hsBonus) / 100
kMoney += hsReward
}
if (mReward > 0) kMoney += mReward
if (vmBonus > 0) kMoney += vmBonus
plrReward += kMoney
format(mmsg,30,"Kill: +$%i^nTotal: %i",kMoney,plrReward)
set_hudmessage(100,230,0,0.80,0.65,2,0.02,4.0,0.01,3.0,2)
show_hudmessage(killer,mmsg)
}
return PLUGIN_CONTINUE
}
public give_money(id) {
if (plrReward > 0) {
new vMoney = cs_get_user_money(id)
set_hudmessage(100,230,0,0.80,0.30,2,0.02,4.0,0.01,0.1,2)
show_hudmessage(id,"+$%i",plrReward)
vMoney += plrReward
plrReward = 0
if (vMoney > 16000) vMoney = 16000
cs_set_user_money(id,vMoney)
}
return PLUGIN_CONTINUE
}
public user_connect(id) {
plrReward = 0
return PLUGIN_CONTINUE
}
public user_disconnect(id) {
plrReward = 0
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("WeaponMoney","0.6","Similar")
register_event("StatusIcon","give_money","be","2=buyzone")
register_event("DeathMsg","player_death","a")
register_cvar("amx_mreward_active","1") // plugin is active
register_cvar("amx_knife_kill","2500") // Knife
register_cvar("amx_grenade_kill","1500") // HE Grenade
register_cvar("amx_glock18_kill","1250") // Glock 18
register_cvar("amx_deagle_kill","1000") // IMI Desert Eagle
register_cvar("amx_usp_kill","1000") // Hechkler & Koch USP45
register_cvar("amx_p228_kill","950") // Sig Sauer P-228
register_cvar("amx_fiveseven_kill","1200") // Fabrique Nationale Five-Seven
register_cvar("amx_m3_kill","750") // Benelli M3 Super 90
register_cvar("amx_xm1014_kill","750") // Benelli XM1014
register_cvar("amx_mp5navy_kill","750") // Heckler & Koch MP5/Navy
register_cvar("amx_tmp_kill","700") // Steyr Tactical Mashine Pistol
register_cvar("amx_p90_kill","680") // Fabrique Nationale P90
register_cvar("amx_ump45_kill","680") // Heckler & Koch UMP45
register_cvar("amx_m4a1_kill","550") // Colt M4A1
register_cvar("amx_aug_kill","500") // Steyr AUG
register_cvar("amx_scout_kill","320") // Steyr Scout
register_cvar("amx_awp_kill","150") // Accuracy Int. Arctic Warfare/Magnum(AWM)
register_cvar("amx_sg550_kill","450") // Sig SG550 Commando
register_cvar("amx_m249_kill","500") // FN M249 Para
register_cvar("amx_elite_kill","900") // Dual Beretta 96G Elites
register_cvar("amx_ak47_kill","500") // aAutomat Kalashnikov AK47
register_cvar("amx_galil_kill","700") // Galil
register_cvar("amx_famas_kill","800") // Famas
register_cvar("amx_mac10_kill","600") // Ingram MAC10
register_cvar("amx_sg552_kill","500") // Sig SG-552 Commando
register_cvar("amx_g3sg1_kill","400") // Heckler & Koch G3/SG-1
register_cvar("amx_headshot_bonus","50") // as percent of money reward
register_cvar("amx_victmoney_bonus","10") // as percent of victim money
register_cvar("amx_respawn_money","1000") // + money when player respawn
new configsDir
get_configsdir(configsDir, 83)
server_cmd("exec %s/wp/weaponmoney.cfg", configsDir)
set_task(1.0,"init",7512,"",0,"a")
} 大家都不会么 顶 。。。怕沉了 这么久了都没人能解决 唉 。。。。。。 自己再顶哈 怎么没人理??? 汗,点通块埋没了 点通怎么啦~~~~!
页:
[1]
2