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

text style to hud ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-13-2017 , 11:49   text style to hud ?
Reply With Quote #1

Hi guys.

i realy need help with this it's my first level code i copy some from another code and i set the code and it's all work fine i need only someone who set the level and xp and nedded xp in a hud so please help.

CODE :
PHP Code:
-Solved
Thanks for advance.

Last edited by yas17sin; 02-16-2017 at 15:17.
yas17sin is offline
Send a message via ICQ to yas17sin
waizedzzy
Member
Join Date: May 2016
Location: France
Old 02-13-2017 , 11:55   Re: text style to hud ?
Reply With Quote #2

GunXP mod actually have this Hud Message, maybe you can copy from it.
Good luck
__________________
Invincible Wxx ^.^
waizedzzy is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-13-2017 , 11:58   Re: text style to hud ?
Reply With Quote #3

no i try it's hard and i am noob with level like i say "it's my first deal with level and xp things "
but thanks you
yas17sin is offline
Send a message via ICQ to yas17sin
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-13-2017 , 16:35   Re: text style to hud ?
Reply With Quote #4

bump !!
yas17sin is offline
Send a message via ICQ to yas17sin
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-14-2017 , 02:18   Re: text style to hud ?
Reply With Quote #5

What type of HUD you want, permanent, showing at start of round, showing when killing a player, updating gametime when message is permanent, ect
..
__________________
Relaxing is offline
waizedzzy
Member
Join Date: May 2016
Location: France
Old 02-14-2017 , 05:54   Re: text style to hud ?
Reply With Quote #6

He actually is asking to show for ex in red Hud:

Experience:
Level:
How many kills for next level:

which this is Hud is in gunxpmod by xbatista, but yeah it's hard to be found
__________________
Invincible Wxx ^.^
waizedzzy is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-14-2017 , 07:41   Re: text style to hud ?
Reply With Quote #7

yes permanenet hud in down of screen not at side of screen it show how much xp for next level and level and xp and max level.

Thanks for Advance.

Btw, i already have that in this code but it show only with /lvl word in chat and it show only text for a while with level and name of level and xp and next level xp but i want to replace it in hud message will be premanenet hud permanenet.

Thanks i be appreciate for any help.
yas17sin is offline
Send a message via ICQ to yas17sin
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-14-2017 , 12:52   Re: text style to hud ?
Reply With Quote #8

Code:
new g_msgsync
Code:
// plugin_init g_msgsync = CreateHudSyncObj();
Code:
public CmdShowHud (id) {     if (is_user_connected(id)) && g_iXp[id]<=0 {         set_hudmessage(random_num(70,255), random_num(70,255), 0, 0.34, 0.03, 0, 6.0,4.0, 0.1, 0.2, 2)         ShowSyncHudMsg(id, g_msgsync, "Next level: %i [%s]^nPoints to next level: %i", g_iLevel[id]+1, g_szLevelNames[g_iLevel[id]+1], g_szLevels[g_iLevel[id]+1] - g_szLevels[g_iLevel[id]]);     } }
__________________

Last edited by Relaxing; 02-14-2017 at 12:52.
Relaxing is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-14-2017 , 12:56   Re: text style to hud ?
Reply With Quote #9

should i remove this ? :

PHP Code:
public Cmd_Say(id)
{
    new 
args[101], arg1[10], arg2[64];
    
read_args(argscharsmax(args));
    
remove_quotes(args);
    
parse(argsarg1charsmax(args), arg2charsmax(arg2));
    
    if(
equali(arg1"/level" ) || equali(arg1"/lvl" ))
    {
        new 
iPlayer cmd_target(idarg20)
        if(!
arg2[0] || !iPlayer)
        {
            if( 
g_szLevels[g_iLevel[id]+1] != 0)
            {
                
//ColorChat(id, GREY, "^4[%s]^1 Next level:^3 %i ^1[^3%s^1] | Points to next level:^3 %i", TAG, g_iLevel[id]+1, g_szLevelNames[g_iLevel[id]+1], g_szLevels[g_iLevel[id]+1] - g_szLevels[g_iLevel[id]]);
                //ColorChat(id, GREY, "^4[%s]^1 You got^3 %i^1 points | Level:^3 %i ^1[^3%s^1]", TAG, g_iPoints[ id ], g_iLevel[id], g_szLevelNames[g_iLevel[id]]);
                
                
client_print_color(idprint_chat"%L"id"YOURLEVEL_CHATCOMMAND_1"TAGg_iLevel[id]+1g_szLevelNames[g_iLevel[id]+1], g_szLevels[g_iLevel[id]+1] - g_szLevels[g_iLevel[id]]);
                
client_print_color(idprint_chat"%L"id"YOURLEVEL_CHATCOMMAND_2"TAGg_iXpid ], g_iLevel[id], g_szLevelNames[g_iLevel[id]]);
            }
            else
            {
                
//ColorChat(id, GREY, "^4[%s]^1 You got^3 %i^1 points | Level:^3 %i ^1[^3%s^1] (^4MAX LEVEL^1)", TAG, g_iPoints[ id ], g_iLevel[id], g_szLevelNames[g_iLevel[id]]);
                
client_print_color(idprint_chat"%L"id"YOURLEVEL_CHATCOMMAND_MAXLEVEL"TAGg_iXpid ], g_iLevel[id], g_szLevelNames[g_iLevel[id]]);
            }
        }
        else
        {
            new 
iName[32];
            
get_user_name(iPlayeriNamecharsmax(iName));
        
            if( 
g_szLevels[g_iLevel[iPlayer]+1] != 0)
            {
                
//ColorChat(id, GREY, "^4[%s]^1 Next level:^3 %i ^1[^3%s^1] | Points to next level:^3 %i", TAG, g_iLevel[iPlayer]+1, g_szLevelNames[g_iLevel[iPlayer]+1], g_szLevels[g_iLevel[iPlayer]+1] - g_szLevels[g_iLevel[iPlayer]]);
                //ColorChat(id, GREY, "^4[%s]^3 %s^1 got^3 %i^1 points | Level:^3 %i ^1[^3%s^1]", TAG, iName, g_iPoints[ iPlayer ], g_iLevel[iPlayer], g_szLevelNames[g_iLevel[iPlayer]]);
                
                
client_print_color(idprint_chat"%L"id"OTHERLEVEL_CHATCOMMAND_1"TAGg_iLevel[iPlayer]+1g_szLevelNames[g_iLevel[iPlayer]+1], g_szLevels[g_iLevel[iPlayer]+1] - g_szLevels[g_iLevel[iPlayer]]);
                
client_print_color(idprint_chat"%L"id"OTHERLEVEL_CHATCOMMAND_2"TAGiNameg_iXpiPlayer ], g_iLevel[iPlayer], g_szLevelNames[g_iLevel[iPlayer]]);


            }
            else
            {

                
//ColorChat(id, GREY, "^4[%s]^3 %s^1 got^3 %i^1 points | Level:^3 %i ^1[^3%s^1] (^4MAX LEVEL^1)", TAG, iName, g_iPoints[ iPlayer ], g_iLevel[iPlayer], g_szLevelNames[g_iLevel[iPlayer]]);
                
                
client_print_color(idprint_chat"%L"id"OTHERLEVEL_CHATCOMMAND_MAXLEVEL"TAGiNameg_iXpiPlayer ], g_iLevel[iPlayer], g_szLevelNames[g_iLevel[iPlayer]]);

            }
        }
    } 
and the hud show only next level and needed xp it doesn't show current level and xp and it is not permanenet.
i need it permanenet and to dhow current level and xp and next level and needed xp and down the screen.
thanks for advance

Last edited by yas17sin; 02-14-2017 at 13:06.
yas17sin is offline
Send a message via ICQ to yas17sin
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-14-2017 , 14:30   Re: text style to hud ?
Reply With Quote #10

You just keep adding features, about the current XP ext., it's easy friend.
__________________
Relaxing 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 20:29.


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