AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   status on lower left corner of the screen (https://forums.alliedmods.net/showthread.php?t=185622)

striker07 05-19-2012 16:21

status on lower left corner of the screen
 
How to script to see a a kind of "status line" in the lower left corner of the screen,
there where normally the name of the player comes when you look at an other player,

I want to put a line there kinda like superhero mod and wc3 mod with the current level and how much xp a person has.

grts

Emp` 05-19-2012 20:08

Re: status on lower left corner of the screen
 
Look at the source code of
Quote:

Originally Posted by striker07 (Post 1712421)
superhero mod and wc3 mod with the current level and how much xp a person has.


hornet 05-20-2012 02:11

Re: status on lower left corner of the screen
 
Hook FM_TraceLine or "StatusValue".

<VeCo> 05-20-2012 06:48

Re: status on lower left corner of the screen
 
It's the StatusText message, but every player can change it to show in the center, depending of his settings.

striker07 05-21-2012 12:43

Re: status on lower left corner of the screen
 
Quote:

Originally Posted by hornet (Post 1712642)
Hook FM_TraceLine or "StatusValue".

that is for this right?:[IMG]http://img525.**************/img525/2871/naamloosml.png[/IMG]
if so, in what include can i find that back?

Quote:

Originally Posted by <VeCo> (Post 1712789)
It's the StatusText message, but every player can change it to show in the center, depending of his settings.

How can they change that?

bibu 05-21-2012 12:45

Re: status on lower left corner of the screen
 
hud_centerid

striker07 05-24-2012 12:04

Re: status on lower left corner of the screen
 
Quote:

Originally Posted by bibu (Post 1713743)
hud_centerid

you must be trying to bag me,

No function matched this query!
Click Here to try again.

<VeCo> 05-24-2012 12:07

Re: status on lower left corner of the screen
 
That's the client command that makes StatusText centered.

striker07 05-24-2012 12:56

Re: status on lower left corner of the screen
 
I found this in the superhero sma,
but i find it confusing (when looking through the sma)

PHP Code:

new gmsgStatusText
 
public plugin_init() {
 
   
gmsgStatusText get_user_msgid("StatusText")
 
   
register_message(gmsgStatusText"msg_StatusText")
}
 
public 
msg_StatusText()
{
 if ( !
get_pcvar_num(sv_superheros) ) return PLUGIN_CONTINUE
 
// Block sending StatusText sent by engine
 // Stops name from overwriting StatusText set by plugin
 // Will not block StatusText sent by plugin
 
return PLUGIN_HANDLED
}
 
writeStatusMessage(id, const message[64])
{
 
// Crash Check, bots will crash server is message sent to them
 
if ( !is_user_connected(id) || is_user_bot(id) ) return
 
// Message is a max of 64 characters including null terminator
 // Place in unreliable stream, not a necessary message
 
message_begin(MSG_ONE_UNRELIABLEgmsgStatusText_id)
 
write_byte(0)
 
write_string(message)
 
message_end() 

but i'm guessing that's all i need, i will test it, if you know that this is not all that i need for it pls say so

Exolent[jNr] 05-24-2012 13:22

Re: status on lower left corner of the screen
 
hud_centerid is a client-side cvar.
0 = Show the message in the bottom-left above health
1 = Show the message in the middle of the screen


All times are GMT -4. The time now is 00:22.

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