• Server Side Console Commands
    2 replies, posted
How do I add a console commands that can only be run server side? Why? Because I'd like to add functions that I can run through RCON from my website, but I wouldn't want them to be accessible by any player.
[url]http://wiki.garrysmod.com/page/concommand/Add[/url] [url]http://wiki.garrysmod.com/page/Enums/FCVAR[/url] FCVAR_PROTECTED FCVAR_SERVER_CAN_EXECUTE [lua]concommand.Add( "tellall", function( ply, cmd, args, fullstring ) for k, v in pairs( player.GetAll() ) do v:ChatPrint( fullstring ) end end, nil, -- autocomplete nil, -- helptext bit.bor( FCVAR_PROTECTED, FCVAR_SERVER_CAN_EXECUTE ) -- flags )[/lua]
[url]http://wiki.garrysmod.com/page/concommand/Add[/url]
Sorry, you need to Log In to post a reply to this thread.