Raised This Month: $ Target: $400
 0% 

Arrange huds under each other


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Deidara
Member
Join Date: Jul 2010
Location: Romania
Old 02-07-2016 , 13:09   Arrange huds under each other
Reply With Quote #1

Hello, I have this.
It's a hud message who appears left or right depends of the players team.
I put the up-down possition random but ocasionally they overwrite, I don't know how to explain it so I'll attach a screenshot.

The first image - 1 is what happend when two or more huds are displayed - look at the left side, up. [ http://steamcommunity.com/id/eliara/...74420292407965 ]
The second image is how I want them to be, when two or more messages are generated I want them under each other to look nice. [ http://steamcommunity.com/id/eliara/...74420292407965 ]

Screens are on steam cloud images gallery because I can't upload them, they are too large.

Code:

PHP Code:
announce(killerlevel)
{
    new 
streak get_streak()

    if (
streak&1)
    {
        new 
name[32];
        new 
PositionYforCT random_num(0.15,0.70)
        new 
PositionXforT random_num(0.15,0.70)

           
get_user_name(killername32);
          if ( 
cs_get_user_team(killer) == CS_TEAM_CT )
            {
                
set_dhudmessage(0801500.03PositionYforCT20.026.00.010.12);
                
show_dhudmessage(0stkmessages[level], name);
            }
        else
            {
                
set_dhudmessage(20592920.80PositionXforT20.026.00.010.12);
                
show_dhudmessage(0stkmessages[level], name);
            }
    }

    if (
streak&2)
    {
            
client_cmd(0"spk %s"stksounds[level]);
    }

Sorry if this topic doesn't look attractive but I'm not english and I don't know it very well.
I hope there's the right section to ask help.

Last edited by Deidara; 02-07-2016 at 13:11.
Deidara is offline
Send a message via Yahoo to Deidara Send a message via Skype™ to Deidara
 



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 09:27.


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