Sign in to follow this  
Skraund

[HELP]: Console and commands

Recommended Posts

Posted (edited)

Use

onPlayerCommand

then cancel the command you want.

Edited by HassoN

Share this post


Link to post

This is an example 

 

-- Server Side
function disableCommands(cmd)
	if (cmd == "login" or cmd == "logout" or cmd == "register") then
		cancelEvent()
	end
end
addEventHandler("onPlayerCommand", root, disableCommands)

 

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.