[REQ] Change/delete "Player has left the game"
Hello guys.
Firstly, sorry if i'm in the wrong section. I need help to change or delete the quote "Player has left the game" when someone leaves the server. (I don't need to change anything about the joining message, it's ok) I know it's possible,i've seen this before on a server. I want to replace the original quote, not adding another line with a plugin. I'm playing on Sven Coop (HL1 mod). Thanks :) |
Re: [REQ] Change/delete "Player has left the game"
I have the same request, but I want to erase the original Player Join message to replace it with my own.
|
Re: [REQ] Change/delete "Player has left the game"
Here is a plugin that is able to block those messages. (dodplugins.net is down at the moment so I couldn't find the original post/code)
|
Re: [REQ] Change/delete "Player has left the game"
Quote:
Can somebody help me ? |
Re: [REQ] Change/delete "Player has left the game"
something like that !
im not tested PHP Code:
|
Re: [REQ] Change/delete "Player has left the game"
Joce93, the default HL disconnect message is sent via a SayText MSG.
Try hooking that before trying TextMsg. If that doesn't work then try hooking different messages until you find the right one: HudText , HudTextPro etc. _____________________________________________ _________________________ Shattered Heart Lynx. The default HL connect message is sent via TextMsg, hook that and use set_msg_arg_string() to modify it. Now bear in mind that different MODs might use different messages than the default HL ones to send connect/disconnect messages. |
Re: [REQ] Change/delete "Player has left the game"
You could always hook the messages and write all of them to a file and you should be able to find the message you are looking for.
|
Re: [REQ] Change/delete "Player has left the game"
Quote:
Can you help me for the script ? I used abdobiskra's code replacing "TextMsg" by "SayText" but it does not work: PHP Code:
|
Re: [REQ] Change/delete "Player has left the game"
Here you go, this is just an example of what to do. The type and usage of Connect/Disconnect messages
may depend on The MOD. For instance, TFC sends a TextMsg Disconnect message with a localized string for the 2nd (string) parameter and the disconnecting player name for the 3rd (string) parameter. The code is set to override the connect/disconnect message witha custom one, to just block the messages, comment out the line: #define OVERRIDE
Spoiler
|
Re: [REQ] Change/delete "Player has left the game"
Forgot to add: If the MOD uses a titles.txt file, check and see if there is a
localized text entry for a connection message ( %s has joined the game ) etc. For TFC it looks like: Code:
Game_playerjoinwith the # chracter so the string is sent as: #Game_playerjoin. The 3rd parameter of the message is the player name. |
| All times are GMT -4. The time now is 18:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.