AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   client_print position (https://forums.alliedmods.net/showthread.php?t=309662)

lolkie02 08-03-2018 03:25

client_print position
 
Hello
I need help changing the position of the client_print. Right now it's above the crosshair, but I need it to be under the crosshair? :shock:
Thank you

http://preview.ibb.co/krM1Le/Capture.png

Code:

// Shows The Rank Information Message
public ShowHud( id ) {
        if( g_bToggleHud[ id ] ) {
                set_dhudmessage(0, 255, 0, -1.0, -1.0, 1, 2.0, 0.2, 0.1, 0.2, -1 );
                if( g_iPlayerLevel[ id ] < MAXLEVEL ) {
                        client_print(id, print_center, "[DeAth-MaNns] Auszeichnungen: [Level %s] und (Kills: %i/%i)",
                        g_mPlayerData[ g_iPlayerLevel[ id ] ][ m_szRankName ],
                        g_iPlayerXP[ id ],
                        g_mPlayerData[ g_iPlayerLevel[ id ] + 1 ][ m_iRankXP ],
                        get_timeleft( ) / 60,
                        get_timeleft( ) % 60,
                        g_mPlayerAuth[ g_iPlayerStatus[ id ] ] );
                } else {
                        client_print(id, print_center, "[DeAth-MaNns] Auszeichnungen: [Level %s] und (Kills: %i/%i)",
                        g_mPlayerData[ g_iPlayerLevel[ id ] ][ m_szRankName ],
                        g_iPlayerXP[ id ],
                        get_timeleft( ) / 60,
                        get_timeleft( ) % 60,
                        g_mPlayerAuth[ g_iPlayerStatus[ id ] ] );
                }
        }
}


Relaxing 08-03-2018 05:39

Re: client_print position
 
Look at client_print native and change the second param to print_chat.

lolkie02 08-03-2018 05:44

Re: client_print position
 
So how would it look like in my code?

Natsheh 08-03-2018 05:50

Re: client_print position
 
Its not possible.

lolkie02 08-03-2018 05:55

Re: client_print position
 
I know it's possible as I have seen it before on a server. It must be possible somehow?

instinctpt1 08-03-2018 06:00

Re: client_print position
 
Not possible..
http://amxmodx.org/api/amxconst#dest...r-client-print

lolkie02 08-03-2018 06:02

Re: client_print position
 
http://preview.ibb.co/gXZ0fe/80_scre...1_25_00026.jpg

Then how can they do it?

instinctpt1 08-03-2018 06:11

Re: client_print position
 
U can try eng client print ..
Else don't know

lolkie02 08-03-2018 06:13

Re: client_print position
 
Else is it possible to make it like a hudmessage, but make it look like the chat text?
Then it is possible to change position.

OciXCrom 08-03-2018 08:17

Re: client_print position
 
It's possible. Use ^n to move the message down or ^t to move it up.


All times are GMT -4. The time now is 12:49.

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