Hey SP community!
I had a simple question but can't find it anywhere when googling about it.
I'm looking for a way to change the message in the picture which is included in the attachments.
It's basically the message you get when your server restarts/crashes. I've seen some servers that have this message customized, so I know it's possible.
Thanks in advance!
PS: My csgo is in dutch, but you get the idea hehe..
All other Source.Python topics and issues.
2 posts • Page 1 of 1
- csgo_ik0m2iZoCu.png (12.25 KiB) Viewed 1298 times
One way to have a custom server shutdown message would be to kick all the players with the custom message, and then shut the server down:
And then you can use the quit_ex command through the server console or rcon:
Syntax: Select all
from commands.typed import TypedServerCommand
from engines.server import queue_command_string
from filters.players import PlayerIter
def quit_extended(command, message):
"""Extended 'quit' server command with support for custom messages.
message (str): Disconnect message that's shown to the player(s).
# Go through all players on the server.
for player in PlayerIter():
# Kick them with our custom message.
# Shut down the server.
Code: Select all
quit_ex "Server is going down for maintenance"
Who is online
Users browsing this forum: No registered users and 4 guests