Jump to content

Anti-Caps HELP


Bean666

Recommended Posts

Posted

Is it possible to create an Anti-Caps lock script? well can anyone give me a help here , like if someone uses CAPS , the BIG letters will transform to a small one , i've seen it in other servers , please help , :)))

Posted

Simply,

  
--SERVERSIDE 
  
addEventHandler("onPlayerChat",getRootElement(),function(msg,msgtype) 
text = string.lower(msg) 
local red, green, blue = getPlayerNametagColor(source) 
outputChatBox(getPlayerName(source) ..": #EBDDB2".. text,getRootElement(),red,green,blue,true) 
cancelEvent() 
end 
) 
  

Posted
Simply,
  
--SERVERSIDE 
  
addEventHandler("onPlayerChat",getRootElement(),function(msg,msgtype) 
text = string.lower(msg) 
local red, green, blue = getPlayerNametagColor(source) 
outputChatBox(getPlayerName(source) ..": #EBDDB2".. text,getRootElement(),red,green,blue,true) 
cancelEvent() 
end 
) 
  

it transforms to small letters and the caps is still in the chat, the caps i typed it showed up and the small one showed up too ,when it transformed

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