Raised This Month: $ Target: $400
 0% 

[SOLVED]statusmsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 07-24-2009 , 13:27   [SOLVED]statusmsg
Reply With Quote #1

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.
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	274
Size:	88.2 KB
ID:	46063  
__________________

Last edited by One; 07-24-2009 at 13:34.
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-24-2009 , 13:30   Re: statusmsg
Reply With Quote #2

That is because of the client cvar: hud_centerid
1 = Center like client_print( .., print_center, ..)
0 = Bottom left by Health
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-24-2009 , 13:31   Re: statusmsg
Reply With Quote #3

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

Edit: Damn.
__________________
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 07-24-2009 , 13:34   Re: statusmsg
Reply With Quote #4

omg i 4got to add client_cmd hud_centerid 0

ma bad ty
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-24-2009 , 14:28   Re: statusmsg
Reply With Quote #5

Quote:
Originally Posted by One View Post
omg i 4got to add client_cmd hud_centerid 0

ma bad ty
Isn't that a slowhacking?
__________________
hleV is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 07-24-2009 , 15:18   Re: statusmsg
Reply With Quote #6

Quote:
Originally Posted by hleV View Post
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..
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-24-2009 , 18:31   Re: [SOLVED]statusmsg
Reply With Quote #7

0 is left position.

ANY other value is centered, negative values are at top and positive values are at bottom.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 07-24-2009 , 19:49   Re: [SOLVED]statusmsg
Reply With Quote #8

the only thing what i want is to print my msg anywhere. i know just statsmsg. & dont want to user hudmsg.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-24-2009 , 20:25   Re: [SOLVED]statusmsg
Reply With Quote #9

There is some other way. Search for threads created by MPNumb.
__________________
hleV is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 07-25-2009 , 06:28   Re: [SOLVED]statusmsg
Reply With Quote #10

ty
i dont open other thread. just a mini question. is poss to catch the statsicon position ?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 18:27.


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