Tokio Posted June 30, 2017 Share Posted June 30, 2017 I want add a function to the admintag script, but i don't know how to create. When i type this for example: "asd", the script make this automatically to "Asd". And may add to this function special characters? For example: é,á,ű,ő,ó,ú...etc? Those too replace to big letter sorry for my bad english:( Link to comment
itHyperoX Posted June 30, 2017 Share Posted June 30, 2017 Edit this function Upper(str) local first = utfSub(str,1,1):upper() return (first..utfSub(str,2,#str)) end function blockChatMessage(message) cancelEvent() outputChatBox(getPlayerName(source)..": "..Upper(message),255, 255, 255, true) end addEventHandler("onPlayerChat", getRootElement(), blockChatMessage) 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now