Jump to content

Commands in Custom Chatbox


Bonsai

Recommended Posts

Posted

Hey Peeps,

some time ago I made a little custom chatbox.

Right now I'm trying to fix some minor things.

One of those are commands.

As far as I know, clientside commands are nothing to worry about. It should work fine just executing.

Serverside commands are complicated cause there is a custom acl system involved.

Hardcoded commands, such as /bind, only work in console, since you can't execute them as it seems.

I just wonder if there is a way to make them work in a custom chatbox either.

Bonsai

Posted

ExecuteCommandHandler might be the solution, only works for commands written in lua (i.e custom functions you wrote by yourself) and not the hardcoded commands.

-- server 
bool executeCommandHandler( string commandName, player thePlayer, [ string args ] ) 
-- client 
bool executeCommandHandler( string commandName, [ string args ] ) 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...