RunConsoleCommand connect issue

When I attempt to reconnect to my server with


RunConsoleCommand("connect", "192.168.0.104:27015")

It disconnects, attempts to connect. Then says this in the console

It works when I connect through my console, why doesn’t it work through a lua script?

Use the deprecated PLAYER:ConCommand function; it supports connect.

LocalPlayer( ):ConCommand( "connect " … _ip );

Thanks, I’m remaking a plugin I saw last week where it prompts the user to reconnect when the server crashes. The download for that plugin was gone so I will be making it today.

I fixed that one, and I made it so that it automatically reconnects when the server is back up with the help of PHP; if that’ll give you an idea of how to make it better :slight_smile:

Someone reposted a fixed version of it.
http://forum.facepunch.com/showthread.php?t=989733&p=41762485&viewfull=1#post41762485
:slight_smile: