Raised This Month: $32 Target: $400
 8% 

hit marker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
undead52
Senior Member
Join Date: Dec 2016
Old 10-20-2017 , 07:06   hit marker
Reply With Quote #1

This hitmark shows x at the center but i want it to shot like, lik 4 message but i dont how to set coordinates
PHP Code:
\  /
/  \ 
ty
PHP Code:
#include < amxmodx > 

#define DETECT_FLASHBANG // Comment this if you dont want to show sign if player flashes someone

#if defined DETECT_FLASHBANG
    #include < fakemeta >
    #include < hamsandwich >
    
    
new g_iFlasher;
#endif

new g_iHudSync;

public 
plugin_init( ) {
    
register_plugin"Damage Sign""1.0""xPaw" );
    
    
register_event"Damage""EventDamage""b""2!0""3=0""4!0" );
    
    
g_iHudSync CreateHudSyncObj( );
    
#if defined DETECT_FLASHBANG
    
register_event"ScreenFade""EventScreenFade""be""1>4096""4=255""5=255""6=255""7>199" );
    
    
RegisterHamHam_Think"grenade""FwdHamGrenadeThink" );
#endif
}

public 
EventDamage( const id ) {
    new 
iAttacker get_user_attackerid );
    
    if( 
is_user_connectediAttacker ) )
        
ShowTheSigniAttacker );
}

#if defined DETECT_FLASHBANG
public EventScreenFade( const id ) {
    if( 
g_iFlasher == || !is_user_aliveid ) )
        return;
    
    
ShowTheSigng_iFlasher );
}

public 
FwdHamGrenadeThink( const iEntity ) { // Credits to ConnorMcLeod <3
    
if( peviEntitypev_dmgtime ) <= get_gametime( )
    && 
get_pdata_intiEntity114) == 0
    
&& !( get_pdata_intiEntity96) & ( << ) ) ) {
        static 
iCount;
        
        if( ++
iCount == ) {
            
g_iFlasher peviEntitypev_owner );
        } else {
            
g_iFlasher 0;
            
            if( 
iCount == )
                
iCount 0;
        }
    }
}
#endif

ShowTheSign( const id ) {
    
set_hudmessage0100200, -1.0, -1.020.13.00.020.02);
    
ShowSyncHudMsgidg_iHudSync"x" );

undead52 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-20-2017 , 08:42   Re: hit marker
Reply With Quote #2

PHP Code:
ShowTheSign( const id ) { 
    
set_hudmessage0100200, -1.0, -1.020.13.00.020.02); 
    
ShowSyncHudMsgidg_iHudSync"\  /^n/  \" ); 

set_hudmessage( 0, 100, 200, -1.0, -1.0, 2, 0.1, 3.0, 0.02, 0.02, 4 )
both -1.0 are the coordinates of the screen. play with it till it suits your needs
__________________
retired chump

Last edited by DjSoftero; 10-20-2017 at 08:42.
DjSoftero is offline
undead52
Senior Member
Join Date: Dec 2016
Old 10-20-2017 , 09:01   Re: hit marker
Reply With Quote #3

it worked ty
undead52 is offline
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 19:06.


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