PDA

View Full Version : DoD MeleeBonus


Mr. White
07-11-2006, 08:04 AM
If i recall this was one of Firestorms creations, do you still carry it in the archives?

thanks,

me

Mr. White
07-19-2006, 11:18 AM
nm i found it on one of my old servers.

inferno
07-21-2006, 07:35 PM
Does anyone have the cvars for this plugin? I had them in my amxx.cfg but then I updated without copying the cvars over so I have the plugin but it doesn't work now.

diamond-optic
07-21-2006, 08:21 PM
Does anyone have the cvars for this plugin? I had them in my amxx.cfg but then I updated without copying the cvars over so I have the plugin but it doesn't work now.

if you have the sma of the plugin they're inside it..

inferno
07-24-2006, 09:33 PM
I only have the .amxx files because I forgot to save the source file.

diamond-optic
07-24-2006, 10:50 PM
well if all else fails...

you can use rcon and type: meta cvars
and it will list all the cvars for plugins.. you'll just have to pick them out of the list...

Mr. White
07-25-2006, 04:15 PM
here u go man, Anyone have the sma for this plugin?

melee cvars

//melee bonus
meleebonus_enabled 1
meleebonus_givehealth 10 <----whatever u want

Morimoto
08-03-2006, 08:34 PM
i lost the sma and amxx for this plugin.

can someone please post the sma?

Morimoto
08-15-2006, 05:18 PM
does no one have the *.sma for this plugin?

Fyrmn472
08-16-2006, 11:15 PM
Here's the .sma:


#include <amxmodx>
#include <fun>
#include <dodx>

public plugin_init(){
register_plugin("DoD MeleeBonus","0.5beta","[RST] FireStorm")
register_statsfwd(XMF_DEATH)
register_cvar("meleebonus_enabled","0")
set_cvar_num("meleebonus_enabled",0)
register_cvar("meleebonus_givehealth","0")
set_cvar_num("meleebonus_givehealth",10)
}

public plugin_modules(){
require_module("dodx")
require_module("fun")
}

public client_death(killer,victim,wpnindex,hitplace,TK){
if(get_cvar_num("meleebonus_enabled") == 1){
if(TK == 0){
new killername[32]
get_user_name(killer,killername,31)
new oldhealth = get_user_health(killer)
new addition = get_cvar_num("meleebonus_givehealth")

if(wpnindex == DODW_GARAND_BUTT || wpnindex == DODW_K43_BUTT || wpnindex == DODW_KAR_BAYONET || wpnindex == DODW_AMERKNIFE || wpnindex == DODW_BRITKNIFE || wpnindex == DODW_GERKNIFE || wpnindex == DODW_SPADE){
set_user_health(killer,(oldhealth+addition))
client_print(0,print_chat,"[AMXX] %s received additional %dhp for a melee kill!",killername,addition)
set_hudmessage(36, 39, 192, -1.0, 0.9, 0, 6.0, 4.0, 0.1, 0.2, 4)
show_hudmessage(killer,"+%dhp",addition)
}
else {
return PLUGIN_HANDLED
}
}
}
return PLUGIN_HANDLED
}

diamond-optic
08-17-2006, 12:13 AM
thankyou Fyrmn472

i did a little update to it and posted it in the developer's forum

http://www.dodplugins.net/forums/showthread.php?t=168