[Question] What about HUD messages/channels ?
All is in title ...
I tried doing some sort of connect/disconnect player plugin ( Welcome Message ) but i didn't see how i can put a message on HUD ... i only manage to send a chat message from server ... Is there an equivalent function for HUD message in SourceMod ? I know source don't display message in HUD channels like HL but i just wanna use some equal function ... Also, i didn't understand the function ... StartMessage ... EndMessage. Is it something like the old WRITE_MSG under HL ??? |
Re: [Question] What about HUD messages/channels ?
try this one.
Code:
// "HudMsg" messageif you using for CSS note this: Code:
L. DukeNov 16 2006, 07:48 PM |
Re: [Question] What about HUD messages/channels ?
jopmako is correct. There are HUD messages and StartMessage/EndMessage is the equivalent.
However, Valve refuses to allow hud messages to work. They took a crucial font definition out of a client file. Unless players add the definition back in, the messages will not display. |
Re: [Question] What about HUD messages/channels ?
Wow, great ^^, but i would like to have a simple access to an HUD message like the old amx_showhudmessage ...
I used StartMessage/EndMessage and it sends me an error ... I will retry it and paste the error here. Thanks. |
Re: [Question] What about HUD messages/channels ?
he only option since Valve removed the font definition is for center say text, so you'll probably want to use that to test.
The message to start would be "TextMsg", then write byte 4, write your message as string, end message. EDIT: You could also do "HintText" Eventually, these will probably be added as functions in SourceMod. |
Re: [Question] What about HUD messages/channels ?
1 Attachment(s)
Here is the code :
Code:
...I need to put something between StartMessageAll(message); and EndMessage(); ^^ I totally misunderstood the StartMessageAll ... I have to write the all message ... but i've never done that ... I"ll try the code from jopmako ... and test the HudMsg under Source ... Thanks. |
Re: [Question] What about HUD messages/channels ?
We're not going to do a "simple function" for HudMessages until Valve supports them, unfortunately, since they don't work unless every client modifies a specific file.
I don't know how familiar you are with AMX Mod X, but please read jopmako's example again. That's not how you do messages at all. A message is started with a "message name" or "index," which is specific to the game mod. You stuff data in the message via the BfWrite* functions. Because of a bug in the Source engine, using an invalid message name or index will crash Source, so you have to be careful. |
Re: [Question] What about HUD messages/channels ?
That's just HUD messages right? That means we can do HUD Hints with Sourcemod right? You know, in Counterstrike Source a HUD Hint is that little dark box that appears toward the bottom middle of your screen if you look at a team mate or an enemy saying something like 'You've spotted an enemy' or 'You've spotted a team mate'. How do we create a HUD Hint in Sourcemod?
|
Re: [Question] What about HUD messages/channels ?
Can't we make a 'ClientScheme.res' with 'CenterPrintText' code and add it to the downloads table?
|
Re: [Question] What about HUD messages/channels ?
Quote:
|
| All times are GMT -4. The time now is 11:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.