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-24-2012 , 12:56   Re: status on lower left corner of the screen
Reply With Quote #1

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 #2

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
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-24-2012 , 14:05   Re: status on lower left corner of the screen
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
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
ahA!

thank you exolent for once more you're most appreciated help

fyi: for those interested in a status bar, the code above is correct, just adjust it to your plugin or needs and it works fine
striker07 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