AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED]statusmsg (https://forums.alliedmods.net/showthread.php?t=98324)

One 07-24-2009 13:27

[SOLVED]statusmsg
 
1 Attachment(s)
PHP Code:

new statusMsg

statusMsg 
get_user_msgid("StatusText")

message_begin(MSG_ONE,statusMsg,{0,0,0},id)
    
write_byte(0)
    
write_string(text)
    
message_end()

format(message,63,"You are now listening : %s",musicName)
    
show_message(id,message

this is my code but why is the text in midd & not left? see the pic.

Exolent[jNr] 07-24-2009 13:30

Re: statusmsg
 
That is because of the client cvar: hud_centerid
1 = Center like client_print( .., print_center, ..)
0 = Bottom left by Health

Arkshine 07-24-2009 13:31

Re: statusmsg
 
The position of the status text is defined considering the value of the client cvar : hud_centerid

Edit: Damn.

One 07-24-2009 13:34

Re: statusmsg
 
omg :D i 4got to add client_cmd hud_centerid 0 :D

ma bad :P ty

hleV 07-24-2009 14:28

Re: statusmsg
 
Quote:

Originally Posted by One (Post 880783)
omg :D i 4got to add client_cmd hud_centerid 0 :D

ma bad :P ty

Isn't that a slowhacking?

One 07-24-2009 15:18

Re: statusmsg
 
Quote:

Originally Posted by hleV (Post 880827)
Isn't that a slowhacking?

sure but i have no idea.
i dont like slow hacking & u can see this in catch 3 too that i added a menu for this to save old settings. but i dont realy know how i can print the message without slowhack.

you know if player has hud_centerid on 1 .. he has the text in center & this is silly..

ConnorMcLeod 07-24-2009 18:31

Re: [SOLVED]statusmsg
 
0 is left position.

ANY other value is centered, negative values are at top and positive values are at bottom.

One 07-24-2009 19:49

Re: [SOLVED]statusmsg
 
the only thing what i want is to print my msg anywhere. i know just statsmsg. & dont want to user hudmsg.

hleV 07-24-2009 20:25

Re: [SOLVED]statusmsg
 
There is some other way. Search for threads created by MPNumb.

One 07-25-2009 06:28

Re: [SOLVED]statusmsg
 
ty :P
i dont open other thread. just a mini question. is poss to catch the statsicon position ?


All times are GMT -4. The time now is 18:27.

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