Raised This Month: $ Target: $400
 0% 

Modification of Advanced Bullet damage (easy)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xXxOpOpxXx
Senior Member
Join Date: Aug 2007
Old 03-05-2010 , 09:27   Modification of Advanced Bullet damage (easy)
Reply With Quote #1

I want the numbers to spin around the crosshair like on the picture it was awesome. It is easy to rewrite the plugin but I don't have the required skills

PHP Code:
/* 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_typeg_enabledg_recievedbool:g_showrecievedg_hudmsg1g_hudmsg2

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
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","1")    
    
    
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 
attackerattacker get_user_attacker(id)
        static 
damagedamage read_data(2)        
        if(
g_showrecieved)
        {            
            
set_hudmessage(255000.450.5020.14.00.10.1, -1)
            
ShowSyncHudMsg(idg_hudmsg2"%i^n"damage)        
        }
        if(
is_user_connected(attacker))
        {
            switch(
g_enabled)
            {
                case 
1: {
                    
set_hudmessage(0100200, -1.00.5520.14.00.020.02, -1)
                    
ShowSyncHudMsg(attackerg_hudmsg1"%i^n"damage)                
                }
                case 
2: {
                    if(
fm_is_ent_visible(attacker,id))
                    {
                        
set_hudmessage(0100200, -1.00.5520.14.00.020.02, -1)
                        
ShowSyncHudMsg(attackerg_hudmsg1"%i^n"damage)                
                    }
                }
            }
        }
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/ 
This is it thank you if you do it
Attached Thumbnails
Click image for larger version

Name:	rrrrr.JPG
Views:	5951
Size:	74.2 KB
ID:	60948  
__________________
xXxOpOpxXx is offline
Send a message via Skype™ to xXxOpOpxXx
Old 03-06-2010, 00:47
xXxOpOpxXx
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 03-11-2010, 16:04
SaM.ThE.MaN
This message has been deleted by YamiKaitou. Reason: bump
kingdomooo
Member
Join Date: Jan 2010
Old 06-17-2010 , 10:09   Re: Modification of Advanced Bullet damage (easy)
Reply With Quote #4

whis is cool anyone can make it ?
kingdomooo 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 19:51.


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