Jump to content

No colorcode on account name


Dardex

Recommended Posts

Hello!

How can I block people who use color codes on their name when they want to register on server?

function RegisterHandler ( player, username, password) 
        local acc = addAccount(username,password) 
        if acc then 
                logIn(player,acc,password) 
                outputChatBox("You've been successfully registred!",player,0,125,0) 
                triggerClientEvent ( "CloseShit", getRootElement()) 
        else 
                outputChatBox("Hint:Do not use name colorcodes",player,125,0,0) 
                outputChatBox("Username is already taken.",player,125,0,0) 
        end 
end 
addEvent( "RegisterSubmit", true ) 
addEventHandler( "RegisterSubmit", getRootElement(), RegisterHandler ) 

this is registration function

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