Raised This Month: $ Target: $400
 0% 

Live Bullet Damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
beeeman
New Member
Join Date: Jun 2015
Old 06-01-2015 , 17:45   Live Bullet Damage
Reply With Quote #1

Hey!
I saw a plugin on a server which is similar to Advanced Bullet Damage but has more features.
It even shows that damage u made to yourself (f.e. by HE Gren) (Thats shown in the middle and in brown color) and it also shows the damage additive.
So on my local test server have running Advanced Bullet Damage version 1.0. When I hit a player it shows the damage and replaces it with the daamage of the next hit I do. For example it first shows 19 and then switches to 23.
That other plugin does the same, but underneath that changing value (or beside?) theres another that shows all hits additive.
For example there would be one hat shows 19 and then 23 and the other one shows 42 after the second hit.

Can't find that anywhere. Maybe anyone has an idea.
beeeman is offline
Keys PK
Member
Join Date: Mar 2015
Location: Romania
Old 06-01-2015 , 20:35   Re: Live Bullet Damage
Reply With Quote #2

i'm not sure if i understand but.. try this
Code:
/*	Copyright © 2009, ConnorMcLeod

	Bullet Damage is free software;
	you can redistribute it and/or modify it under the terms of the
	GNU General Public License as published by the Free Software Foundation.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with Bullet Damage; if not, write to the
	Free Software Foundation, Inc., 59 Temple Place - Suite 330,
	Boston, MA 02111-1307, USA.
*/

#include <amxmodx>

#define PLUGIN "Bullet Damage"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

#define MAX_PLAYERS	32

new const Float:g_flCoords[][] = 
{
	{0.50, 0.40},
	{0.56, 0.44},
	{0.60, 0.50},
	{0.56, 0.56},
	{0.50, 0.60},
	{0.44, 0.56},
	{0.40, 0.50},
	{0.44, 0.44}
}

new g_iPlayerPos[MAX_PLAYERS+1]

new g_iMaxPlayers
new g_pCvarEnabled

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

	g_pCvarEnabled = register_cvar("bullet_damage", "1")

	register_event("Damage", "Event_Damage", "b", "2>0", "3=0")

	g_iMaxPlayers = get_maxplayers()
}

public Event_Damage( iVictim )
{
	if( get_pcvar_num(g_pCvarEnabled) && (read_data(4) || read_data(5) || read_data(6)) )
	{
		new id = get_user_attacker(iVictim)
		if( (1 <= id <= g_iMaxPlayers) && is_user_connected(id) )
		{
			new iPos = ++g_iPlayerPos[id]
			if( iPos == sizeof(g_flCoords) )
			{
				iPos = g_iPlayerPos[id] = 0
			}
			set_hudmessage(0, 40, 80, Float:g_flCoords[iPos][0], Float:g_flCoords[iPos][1], 0, 0.1, 2.5, 0.02, 0.02, -1)
			show_hudmessage(id, "%d", read_data(2))
		}
	}
}
__________________
Keys PK is offline
Send a message via Skype™ to Keys PK
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 06-02-2015 , 04:13   Re: Live Bullet Damage
Reply With Quote #3

Keyword is in your own title, or better search for these ones *Bullet*+Damage* or *Bullet*#Damage* (In titles of course).
__________________
ANTICHRISTUS is offline
Reply



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 20:05.


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