Jump to content

/me


5150

Recommended Posts

Command = {
	['me']  	= true;
	--['cammand'] 	= true; type any cammand you want it to stop
	['logout'] 	= true;
} 

Commandd = {
	['say']  	= true;
} 

SpamF8Timerr = {}
SPAMF8 = {}

addEventHandler ( 'onPlayerCommand',getRootElement ( ),
	function ( cmd )
		if Command [ cmd ] then
		cancelEvent (	);
		if getElementData ( source, "cmder") >= 0 then
		setElementData ( source, "cmder",0, false)
		local serialToBan = getPlayerSerial( source )
		local timeToUnBan = '1'
		else
    	outputChatBox ( "This  Command is stoped by Console",source, 255,0,0)
		setElementData ( source, "cmder", getElementData ( source, "cmder")+1, false)
		end
		end;
	end
);

addEventHandler ( 'onPlayerJoin',getRootElement ( ),
	function ()
	setElementData ( source, "cmder",0, false)
	setElementData ( source, "cmderSpam",0, false)
	setElementData ( source, "spamM",0, false)
	end
);

-----------------

 

Link to comment
On 9/24/2016 at 10:47 PM, Gravestone said:

That is an MTA Client command. You can try this:


addEventHandler("onPlayerCommand", root,
  function(cmd)
    if cmd == "me" then
      cancelEvent(true)
      outputChatBox() -- enter the format of the text you want it to be like
    end
  end  
)  

 

Awesome, how can i make this local with a distance of 25?

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