Raised This Month: $12 Target: $400
 3% 

LVL/XP in green hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
loleKcz
Junior Member
Join Date: Aug 2010
Old 11-10-2013 , 13:20   LVL/XP in green hud
Reply With Quote #1

Hello. Please help me with make lvl/xp status in hud message like this:

Image: http://img46.**************/img46/2782/hva4.jpg

Thanks a lot.

Last edited by loleKcz; 11-10-2013 at 15:28.
loleKcz is offline
loleKcz
Junior Member
Join Date: Aug 2010
Old 11-10-2013 , 16:07   Re: LVL/XP in green hud
Reply With Quote #2

new message[64], temp[64]
new heroIndex, MaxBinds, count, playerLevel, playerpowercount
new menuid, mkeys

count = 0
playerLevel = gPlayerLevel[id]

if ( playerLevel < gNumLevels ) {
formatex(message, charsmax(message), "LVL:%d/%d XP%d/%d)", playerLevel, gNumLevels, gPlayerXP[id], gXPLevel[playerLevel+1])
}
else {
formatex(message, charsmax(message), "LVL:%d/%d XP%d/%d)", playerLevel, gNumLevels, gPlayerXP[id])
}

//Resets All Bind assignments
MaxBinds = min(get_pcvar_num(sh_maxbinds), SH_MAXBINDPOWERS)
for ( new x = 1; x <= MaxBinds; x++ ) {
gPlayerBinds[id][x] = -1
}

playerpowercount = getPowerCount(id)

for ( new x = 1; x <= gNumLevels && x <= playerpowercount; x++ ) {
heroIndex = gPlayerPowers[id][x]
if ( -1 < heroIndex < gSuperHeroCount ) {
// 2 types of heroes - auto heroes and bound heroes...
// Bound Heroes require special work...
if ( gSuperHeros[heroIndex][requiresKeys] ) {
count++
if (count <= 3) {
if ( message[0] != '^4') add(message, charsmax(message), " ")
formatex(temp, charsmax(temp), "%d=%s", count, gSuperHeros[heroIndex])
add(message, charsmax(message), temp)
}
// Make sure this players keys are bound correctly
if ( count <= get_pcvar_num(sh_maxbinds) && count <= SH_MAXBINDPOWERS ) {
gPlayerBinds[id][count] = heroIndex
gPlayerBinds[id][0] = count
}
else {
clearPower(id, x)
}
}
}
}

if ( is_user_alive(id) ) {
writeStatusMessage(id, message)
if ( setThePowers ) set_task(0.6, "setPowers", id)
}

// Update menu incase already in menu and levels changed
// or user is no longer in menu
get_user_menu(id, menuid, mkeys)
if ( menuid != gMenuID ) {
gInMenu[id] = false
}
else {
menuSuperPowers(id, gPlayerMenuOffset[id])
}
loleKcz is offline
loleKcz
Junior Member
Join Date: Aug 2010
Old 11-15-2013 , 09:05   Re: LVL/XP in green hud
Reply With Quote #3

I make it myself. You can lock it
loleKcz is offline
Drissdev1
Senior Member
Join Date: Jun 2014
Old 06-22-2014 , 10:53   Re: LVL/XP in green hud
Reply With Quote #4

Put plugins all here.
Drissdev1 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 00:47.


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