Raised This Month: $4 Target: $400
 1% 

damage zm biohazard


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Krevele
Junior Member
Join Date: Mar 2021
Old 11-25-2021 , 15:01   damage zm biohazard
Reply With Quote #1

anyone knows a good plugin that u can set a specific damage like 47 and it only does 47 no less no higher no matter where u shoot body or head.
Krevele is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Riyadh
Old 11-26-2021 , 16:24   Re: damage zm biohazard
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=789735
u need this BD
SHIFT0 is offline
Krevele
Junior Member
Join Date: Mar 2021
Old 11-27-2021 , 06:34   Re: damage zm biohazard
Reply With Quote #3

Quote:
Originally Posted by SHIFT0 View Post
that only shows damage done i need a plugin that i can change damage with
Krevele is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Riyadh
Old 11-27-2021 , 07:32   Re: damage zm biohazard
Reply With Quote #4

Quote:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>

#define PLUGIN "Advanced Bullet Damage"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

new g_type, g_enabled, g_recieved, bool:g_showrecieved, g_hudmsg1, g_hudmsg2

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_event("Damage", "on_damage", "b", "2!0", "3=0", "4!0")
register_event("HLTV", "on_new_round", "a", "1=0", "2=0")

g_type = register_cvar("amx_bulletdamage","1")
g_recieved = register_cvar("amx_bulletdamage_recieved","47 ")

g_hudmsg1 = CreateHudSyncObj()
g_hudmsg2 = CreateHudSyncObj()
}

public on_new_round()
{
g_enabled = get_pcvar_num(g_type)
if(get_pcvar_num(g_recieved)) g_showrecieved = true
}

public on_damage(id)
{
if(g_enabled)
{
static attacker; attacker = get_user_attacker(id)
static damage; damage = read_data(2)
if(g_showrecieved)
{
set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1)
ShowSyncHudMsg(id, g_hudmsg2, "%i^n", damage)
}
if(is_user_connected(attacker))
{
switch(g_enabled)
{
case 1: {
set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1)
ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage)
}
case 2: {
if(fm_is_ent_visible(attacker,id))
{
set_hudmessage(0, 100, 200, -1.0, 0.55, 2, 0.1, 4.0, 0.02, 0.02, -1)
ShowSyncHudMsg(attacker, g_hudmsg1, "%i^n", damage)
}
}
}
}
}
}
When u damage him 47 or more will show
under 47 will not show
SHIFT0 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-27-2021 , 20:16   Re: damage zm biohazard
Reply With Quote #5

Mate can you read the first post slowly and try to understand what he really wants?

Here you go.

PHP Code:
#include <amxmodx>
#include <hamsandwich>

#define CONSTANT_DAMAGE 47.0

public plugin_init()
{
   
register_plugin("Constant Damage""1.0""Natsheh");
   
RegisterHam(Ham_TakeDamage"player""fwTakeDamagePlayerPre");

   
register_cvar("Constant_Dmg""v1.0"FCVAR_SERVER);
}

public 
fwTakeDamagePlayerPre(vicinflictorattackerFloat:fDamage)
{
   
SetHamParamFloat(4CONSTANT_DAMAGE);
   return 
HAM_HANDLED;

__________________
@Jailbreak Main Mod v2.6.6 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-27-2021 at 20:22.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:54.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode