Jump to content

disable chatbox and disable command?


SirniNamaz

Recommended Posts

Posted

how to:

1. disable 'logout' and 'login' and 'register' command

2. disable chatbox

3. how to disable chatbox output that gets outputed when you login (or logout), something like this: login: you have successfully logged in and logout: you have successfully logged out

Posted
function clogout() 
cancelEvent() 
addEventHandler("onPlayerLogout",getRootElement(), clogout) 

Should work, make same but with anothers events.

and to disable chatbox use

showChat 
--or 
unbindKey (source, "t" ) 

both codes are serverside

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...