Ensuring player is in a server?

Author Topic: Ensuring player is in a server?  (Read 623 times)

How do I make sure a player is connected to a server in a client.cs file?

You can check $ServerInfo::Address to see if it matches yours.

You can check $ServerInfo::Address to see if it matches yours.
Thank you for help, but that's not what I'm looking for.
I need some function that can make sure a client is actually in a server, so they can't use functions like the client-sided getposition thingy, because that errors out if you aren't in a server and causes massive FPS loss.
This probably isn't a function, but something like $isinserver

if(isObject(ServerConnection))
?

if(isObject(ServerConnection))
?
Yep, that's what I needed.
Thanks.