General > Developers Corner

Forcing a client/player to type a command into chat as soon as they join

<< < (2/2)

Bite That Apple:
Retaining to your issue, connect is a fcvar_server_can_execute command, which is blocked for whatever dumb security reason. I think there is a way to remove fcvar_server_can_execute but idk how.

Jerpy:

--- Quote from: Bite That Apple on January 29, 2015, 07:20:33 PM ---Retaining to your issue, connect is a fcvar_server_can_execute command, which is blocked for whatever dumb security reason. I think there is a way to remove fcvar_server_can_execute but idk how.

--- End quote ---

Yeah, I saw that in a different thread. The way around it is to instead use "ply:SendLua"
so for example:

--- Code: ---ply:SendLua("LocalPlayer():ConCommand('connect ip')")
--- End code ---

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version