Raised This Month: $ Target: $400
 0% 

Show hud [+1 AP] on bullet damage.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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, 86 views)

Last edited by ivani6651; 06-20-2017 at 17:31.
ivani6651 is offline
 



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 07:38.


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