Start.bat to notify when someone joins server; possible?
2 replies, posted
So, I am wondering if it is possible to add a line of code that makes a ding, or something of the sort, that makes a ding noise or a notification popup whenever someone is connecting to the server. My server is very small and is therefore usually empty. I am just wondering, for the time I am not on the Garry's mod game, or the server bat file, if it is possible to add something to the bat coding to notify me when someone joins the server.
Something along the lines of ((I am not a coder, forgive me)):
[CODE]
if 'xxxxxxxxx joined your server'
then beep ^G[/CODE]
beep ^G being a native beep sound made when this code is called, or so I have found via google.
I want this to be played from a separate entity than garrys mod as I would like to have garrys mod and the server minimized while I do other things.
You wouldn't be able to do it via a batch file as when you call srcds with your command line it opens an application. Hence you will always have 2 Command prompt looking windows. However you could make a website with a timer and it would query the server and play a tone. It wouldn't be via the computers on board buzzer it would be through a set of speakers. But it would be possible through that. E.g. Take the code of a loading screens that queries the players on the server and if it is greater than 1 play a tone.
could probably do it but i think you'd need something more complex (im not 100% though) such as visual basic or something.
Sorry, you need to Log In to post a reply to this thread.