Raised This Month: $ Target: $400
 0% 

Message_Begin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mrki_Drakula
Senior Member
Join Date: Jun 2011
Location: Serbia
Old 08-23-2012 , 13:10   Message_Begin
Reply With Quote #1

Hello.

I've been trying to make a Level Up System with Ranks for my new Jailbreak Mod, and i want to add message above or under the chat. I don't want HUD Message, since im already using one for Server Status, and it looks like i cant add another one. So, this is my code, but it adds on the center of the screen. How i can move it?

PHP Code:
new ime[32
get_user_name(idimecharsmax(ime)) 
static 
cache[512]
format(cache511"Ime: %s\nTim: Cuvari/nLevel: %d^nIskustvo: %d"imeCuvarCin[id], CuvarExp[id])
message_begin(MSG_ONE_UNRELIABLEg_msgStatusText, {0,0,0}, id)
write_byte(0)
write_string(cache)
message_end() 
Thanks. Please be quick
Mrki_Drakula is offline
Send a message via MSN to Mrki_Drakula Send a message via Skype™ to Mrki_Drakula
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-23-2012 , 13:27   Re: Message_Begin
Reply With Quote #2

new g_msgStatusText = get_user_msgid("SayText")

message_begin(MSG_BROADCAST, g_msgStatusText, {0,0,0}, id)
write_byte(0)
write_string(cache)
message_end()

or you need to put a specific id in the first write_byte(id) to do MSG_ONE_UNRELIABLE
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-23-2012 , 13:38   Re: Message_Begin
Reply With Quote #3

If you are using "StatusText" message you can do this:
Code:
client_cmd( id, "hud_centerid 0" )
but put some menu, so players can accept change.

Last edited by OvidiuS; 08-23-2012 at 13:39.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Mrki_Drakula
Senior Member
Join Date: Jun 2011
Location: Serbia
Old 08-23-2012 , 15:22   Re: Message_Begin
Reply With Quote #4

Thank you very much, solved!
Mrki_Drakula is offline
Send a message via MSN to Mrki_Drakula Send a message via Skype™ to Mrki_Drakula
Reply


Thread Tools
Display Modes

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 05:44.


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