Author Topic: Custom message sent to players on "quit" in console  (Read 2279 times)

0 Members and 1 Guest are viewing this topic.

Offline kulcris

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Custom message sent to players on "quit" in console
« on: December 23, 2014, 10:19:54 AM »
I have been looking everywhere for some way to change the message "server is shutting down" when someone types quit into the server console.
When i type quit i am actually restarting the server and the fact that "server is shutting down" implies the server is not going to come back, alot of players dont rejoin.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Custom message sent to players on "quit" in console
« Reply #1 on: December 23, 2014, 02:49:31 PM »
You could tsay or csay a message to all the players telling them its a restart. Changing the default message would involve changing the GMOD core files, not a good idea.
Once you get to know me, you'll find you'll have never met me at all.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Custom message sent to players on "quit" in console
« Reply #2 on: December 23, 2014, 04:01:38 PM »
Might be able to use the GM:Shutdown to do a message in players consoles before fully quitting.
"Server programmed to restart - please try again in 1-2 minutes"
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Custom message sent to players on "quit" in console
« Reply #3 on: December 23, 2014, 05:04:33 PM »
That's an idea, yeah
Once you get to know me, you'll find you'll have never met me at all.

Offline kulcris

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Custom message sent to players on "quit" in console
« Reply #4 on: December 28, 2014, 11:30:21 AM »
hmmmmm could you force a popup that stays after the shutdown?