Raised This Month: $ Target: $400
 0% 

status on lower left corner of the screen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-19-2012 , 16:21   status on lower left corner of the screen
Reply With Quote #1

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

Last edited by striker07; 05-19-2012 at 16:21.
striker07 is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-19-2012 , 20:08   Re: status on lower left corner of the screen
Reply With Quote #2

Look at the source code of
Quote:
Originally Posted by striker07 View Post
superhero mod and wc3 mod with the current level and how much xp a person has.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-20-2012 , 02:11   Re: status on lower left corner of the screen
Reply With Quote #3

Hook FM_TraceLine or "StatusValue".
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-20-2012 , 06:48   Re: status on lower left corner of the screen
Reply With Quote #4

It's the StatusText message, but every player can change it to show in the center, depending of his settings.
__________________
<VeCo> is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-21-2012 , 12:43   Re: status on lower left corner of the screen
Reply With Quote #5

Quote:
Originally Posted by hornet View Post
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> View Post
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?

Last edited by striker07; 05-21-2012 at 12:43.
striker07 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 05-21-2012 , 12:45   Re: status on lower left corner of the screen
Reply With Quote #6

hud_centerid
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-24-2012 , 12:04   Re: status on lower left corner of the screen
Reply With Quote #7

Quote:
Originally Posted by bibu View Post
hud_centerid
you must be trying to bag me,

No function matched this query!
Click Here to try again.
striker07 is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-24-2012 , 12:07   Re: status on lower left corner of the screen
Reply With Quote #8

That's the client command that makes StatusText centered.
__________________
<VeCo> is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-24-2012 , 12:56   Re: status on lower left corner of the screen
Reply With Quote #9

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
striker07 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-24-2012 , 13:22   Re: status on lower left corner of the screen
Reply With Quote #10

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
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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 00:22.


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