ID:778003
 
(See the best response by Super Saiyan X.)
I've noticed some games actually not only notify when someone has logged in, but they take it a step further and notify when someone is connecting to the game.

My game's resources are quite big and I would like to be notified when someone is downloading the resources as the game constantly reboots when a round is finished which also makes their resource downloading restart.

How do I do this?
Why are you making the game reboot like that?

Also, the connecting part is usually just aesthetic.
If possible, you could try doing some kind of game reset without rebooting. I don't think there's any kind of variable that determines whether a client has finished downloading resources.
Rather than needing to reboot the game, how about storing a set of default parameters for the world to have, and resetting to them when the game is over?

Then you simply re-run the code that starts a 'round' - as I assume your game is round-based.
Why not consider all clients as not having the resources unless one of the following is true?

1. connected to a player-type mob
2. moved (pretty sure you can't move while downloading resources)
3. input a verb of any kind (pretty sure you can't do this while downloading)
Resources are loaded after world/IsBanned(), and before client/New(), I believe.
So...try something there?
Ok so I tried using client/New() but when I use that it closes connection to the game. All I have under New() is an output text. Anyone know what's wrong?
Best response
You aren't calling ..() in client/New.
If you're overriding a procedure like that, don't forget to call the default parent procedure which is accomplished by ..()
client/New
//your code
..() //you can't connect without this
//maybe more code
Ok it worked but client/New() is no good since that happens at the same time as Login(). I know there is a way to do it because I have seen it on a game before. Also IsBanned() doesn't make the message appear at all.
IsBanned() is never called on the host, if they join locally.

If you want to test it, you'd have to host through Dream Daemon server, and join through a non-local IP (aka, don't use 127.0.0.1, or localhost)
How do you do that?
In response to Zerok Kaiba
You should be able to copy the URL to the clipboard in Dream Daemon by clicking it. (Assuming you've hosted it and the port is properly forwarded.)
It should be of the form 'byond://ip:port'
For example, 'byond://123.234.123.22:12345'
Then, connect to that URL using a browser or by putting it into the pager under 'File->Open Location.'
Yea but how do I host without using that? Like how Super Saiyan X said.
No, you have to use that. You can't join via the button on Dream Daemon. Just use that IP.