Raised This Month: $ Target: $400
 0% 

Showing Text above healh


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cronck
Member
Join Date: Apr 2005
Old 04-23-2005 , 00:58   Showing Text above healh
Reply With Quote #1

How do i make normal text just above health like UWC3 shows ur current skill and XP there?
Cronck is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-23-2005 , 01:09  
Reply With Quote #2

set_task()
set_hudmessage()
show_hudmessage()

;)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Cronck
Member
Join Date: Apr 2005
Old 04-23-2005 , 01:27  
Reply With Quote #3

but its not a hud message...?
Its more like staying chat text?
Cronck is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 04-23-2005 , 01:29  
Reply With Quote #4

if you want it to say it like chat, use client_print
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Cronck
Member
Join Date: Apr 2005
Old 04-23-2005 , 01:30  
Reply With Quote #5

i know the client_print command...
Its not a chat message its showing, but it the same text-style
Cronck is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-23-2005 , 03:06  
Reply With Quote #6

Oh, I know what you mean..

Like..

Human Level 9 XP: 2734/51200
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Cronck
Member
Join Date: Apr 2005
Old 04-23-2005 , 03:25  
Reply With Quote #7

Yes... Thats the text i'm talking about

So, do you know how to make it?
Cronck is offline
ZiP*
Senior Member
Join Date: Jul 2004
Old 04-23-2005 , 06:36  
Reply With Quote #8

The way knekter did it:

Code:
CreateStatusText(const id) {   if(is_user_connected(id) && is_user_alive(id))   {     new Text[61];     if(IsUltimate[id] == true)       format(Text, 60, "[Ultimate %s] Level: %i XP: %i To Next Level: %i", classes[PlayerClass[id]], PlayerLevel[id], PlayerXP[id], levels[PlayerLevel[id]] - PlayerXP[id]);     else if(IsUltimate[id] == true && PlayerLevel[id] == 7)       format(Text, 60, "[Ultimate %s] Level: %i XP: %i", classes[PlayerClass[id]], PlayerLevel[id], PlayerXP[id]);     else format(Text, 60, "[%s] Level: %i XP: %i To Next Level: %i", classes[PlayerClass[id]], PlayerLevel[id], PlayerXP[id], levels[PlayerLevel[id]] - PlayerXP[id]);     message_begin(MSG_ONE, get_user_msgid("StatusText"), {0, 0, 0}, id);     write_byte(0);     write_string(Text);     message_end();     return 1;   }   return 0; }

But i guess there's many ways this can be done.
ZiP* is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-23-2005 , 07:32  
Reply With Quote #9

Oh, duh.. I knew it had to do with that message crap.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-23-2005 , 14:56  
Reply With Quote #10

holy christ.. could someone explaint that to me? because the way it is written doesn't seem to make sense in comparison the the way it is explained in the functionwiki.. the rest is just formatting(i think lol), but this:

Code:
    message_begin(MSG_ONE, get_user_msgid("StatusText"), {0, 0, 0}, id);     write_byte(0);     write_string(Text);     message_end();

What is MSG_ONE, and how is it a destination? Where did "StatusText" come from? It is not mentioned at all (besides this) in the post. What byte are you writing? (if it's nothing, why is it there)?

Some help, please? Thanx
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
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 09:59.


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