Jump to content

Default chat commands?


Stylez

Recommended Posts

Ah, I See that will use this simple function and the command will not work any more :

addEventHandler("onPlayerCommand",root, 
    function ( CMD ) 
        if ( CMD == "me" ) then  
            cancelEvent(); 
                outputConsole("* This Command Are Not Allowed!"); 
            end; 
        end 
    ); 
Link to comment
Ah, I See that will use this simple function and the command will not work any more :

addEventHandler("onPlayerCommand",root, 
    function ( CMD ) 
        if ( CMD == "me" ) then  
            cancelEvent(); 
                outputConsole("* This Command Are Not Allowed!"); 
            end; 
        end 
    ); 

Yeah thats good. But what if i have RP server.. i will not be able to use it.. :/

Link to comment
Ah, I See that will use this simple function and the command will not work any more :

addEventHandler("onPlayerCommand",root, 
    function ( CMD ) 
        if ( CMD == "me" ) then  
            cancelEvent(); 
                outputConsole("* This Command Are Not Allowed!"); 
            end; 
        end 
    ); 

Yeah thats good. But what if i have RP server.. i will not be able to use it.. :/

why you want cancel the command ? it's not problem !

Link to comment

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