Raised This Month: $ Target: $400
 0% 

Code HUD Ammo,...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 09-05-2014 , 00:42   Code HUD Ammo,...
Reply With Quote #1

Can anyone share with me the code for HUD AmmoPacks...
http://prikachi.com/images.php?images/33/7585033r.png
__________________
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
Unkolix
Veteran Member
Join Date: Sep 2012
Old 09-05-2014 , 09:06   Re: Code HUD Ammo,...
Reply With Quote #2

Quote:
Originally Posted by Pinnker123 View Post
Can anyone share with me the code for HUD AmmoPacks...
http://prikachi.com/images.php?images/33/7585033r.png
If you want someone to make you this plugin, post it in Request section. It is not hard to do, but we must have the plugin you are using (the one with ammopacks) to make it work.
Unkolix is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 09-05-2014 , 10:18   Re: Code HUD Ammo,...
Reply With Quote #3

PHP Code:
    // Spectating someone else?
    
if (player != ID_SHOWHUD)
    {
        new 
player_name[32]
        
get_user_name(playerplayer_namecharsmax(player_name))
        
        
// Show name, health, class, and money
        
set_hudmessage(HUD_STATS_SPEC_RHUD_STATS_SPEC_GHUD_STATS_SPEC_BHUD_SPECT_XHUD_SPECT_Y06.01.10.00.0, -1)
        
        if (
LibraryExists(LIBRARY_AMMOPACKSLibType_Library))
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"%L: %s^nHealth: %d - %L %s - %L %d"ID_SHOWHUD"SPECTATING"player_nameget_user_health(player), ID_SHOWHUD"CLASS_CLASS"class_nameID_SHOWHUD"AMMO_PACKS1"zp_ammopacks_get(player))
        else
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"%L: %s^nHealth: %d - %L %s - %L $ %d"ID_SHOWHUD"SPECTATING"player_nameget_user_health(player), ID_SHOWHUD"CLASS_CLASS"class_nameID_SHOWHUD"MONEY1"cs_get_user_money(player))
    }
    else
    {
        
// Show health, class
        
set_hudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0, -1)
        
        if (
LibraryExists(LIBRARY_AMMOPACKSLibType_Library))
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"Health: %d - %L %s - %L %d"get_user_health(ID_SHOWHUD), ID_SHOWHUD"CLASS_CLASS"class_nameID_SHOWHUD"AMMO_PACKS1"zp_ammopacks_get(ID_SHOWHUD))
        else
            
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync"Health: %d - %L %s"get_user_health(ID_SHOWHUD), ID_SHOWHUD"CLASS_CLASS"class_name)
    } 

Last edited by zmd94; 09-05-2014 at 23:34.
zmd94 is offline
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 09-05-2014 , 15:43   Re: Code HUD Ammo,...
Reply With Quote #4

zmd94 you're really golden man thanks
__________________
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
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 03:22.


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