Raised This Month: $51 Target: $400
 12% 

Show hud [+1 AP] on bullet damage.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ivani6651
Member
Join Date: Feb 2017
Old 06-20-2017 , 14:47   Show hud [+1 AP] on bullet damage.
Reply With Quote #1

Will you make me a bullet damage for zombie plague server where when you shoot to show you damage and give you a sample and hud [+1 AP] when you do ammo pack.
http://imgur.com/az3wD5R

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

new g_hudmsg1g_hudmsg2;

public 
plugin_init() {
    
register_plugin("Bullet Damage with Spec""1.3""Sn!ff3r, modded by mforce")
    
register_event("Damage""on_damage""b""2!0""3=0""4!0")    
    
    
g_hudmsg1 CreateHudSyncObj()
    
g_hudmsg2 CreateHudSyncObj()
}

public 
on_damage(id) {    
    static 
attackerattacker get_user_attacker(id)
    
    if(
is_user_connected(attacker)) {
    static 
damagedamage read_data(2)

    
set_hudmessage(255000.450.5020.14.00.10.1, -1)
    
ShowSyncHudMsg(idg_hudmsg2"%i^n"damage)
    
    
set_hudmessage(0100200, -1.00.5520.14.00.020.02, -1)
    
ShowSyncHudMsg(attackerg_hudmsg1"%i^n"damage)
    

    static 
iPlayers[32], iNum;
    
get_players(iPlayersiNum"bch")

    for(new 
0Spectator iPlayers[0]; iNumSpectator iPlayers[i++]) {
        if(
entity_get_int(SpectatorEV_INT_iuser2) == attacker) {
            
set_hudmessage(0100200, -1.00.5520.14.00.020.02, -1)
            
ShowSyncHudMsg(Spectatorg_hudmsg1"%i^n"damage)
            }
        if(
entity_get_int(SpectatorEV_INT_iuser2) == id) {
            
set_hudmessage(255000.450.5020.14.00.10.1, -1)
            
ShowSyncHudMsg(Spectatorg_hudmsg2"%i^n"damage)
            }
        }
    }

Attached Images
File Type: jpg Capture.JPG (15.3 KB, 79 views)

Last edited by ivani6651; 06-20-2017 at 17:31.
ivani6651 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 06-21-2017 , 04:05   Re: Show hud [+1 AP] on bullet damage.
Reply With Quote #2

that should be done to zm plague plugin. not this one
__________________
retired chump
DjSoftero 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:53.


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