Raised This Month: $ Target: $400
 0% 

How can i make ocixcrom level plugin to show 5,000/10,000Xp in hud?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 02-16-2022 , 17:57   Re: How can i make ocixcrom level plugin to show 5,000/10,000Xp in hud?
Reply With Quote #6

This function should work in any plugin with any code but make sure you are Use it correctly.

PHP Code:
if (id != ID_SHOWHUD)
{
    
// Show name, health, class, and ammo packs and armor
    
set_dhudmessage(00138HUD_SPECT_XHUD_SPECT_Y16.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L %s^nHP: %d - %L %s - %L %d - %L %d"ID_SHOWHUD"SPECTATING"g_playername[id],
    
pev(idpev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[id], ID_SHOWHUD"ARMOR"pev(idpev_armorvalue))
}
else
{
    new 
szXPCommas16 ], szNextXPCommas16 ], szAPCommas16 ];
    
AddCommasmysystem_get_user_xpid ), szXPCommascharsmaxszXPCommas ) );
    
AddCommasmysystem_get_user_next_xp(id), szNextXPCommascharsmaxszNextXPCommas ) );
    
AddCommasg_ammopacks[id], szAPCommascharsmaxszAPCommas ) );
    
    
set_dhudmessage(redgreenblueHUD_STATS_XHUD_STATS_Y06.01.10.00.0)
    
show_dhudmessage(ID_SHOWHUD"%L: %d - %L %s - %L %d - %L %d^nXP: %s/%s | Level: %d/%d: %s"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUDpev_health), ID_SHOWHUD"CLASS_CLASS",
    class, 
ID_SHOWHUD"AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], ID_SHOWHUD"ARMOR"pev(ID_SHOWHUDpev_armorvalue), szXPCommasszNextXPCommasmysystem_get_user_level(id), mysystem_get_max_levels(), ranknameszAPCommas )

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache 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 11:42.


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