Jump to content

Limit Of Entered Characters ?


Recommended Posts

I am trying to make a temporary nick system, similiar to Halo 3's tags.

I want it to be forced to be 1 letter, a-z, and 2 numbers, 0-9. How can I limit this ? Here is my code so far.

function joinRed ( player, commandName, shortName ) 
local nickCurrent = getClientName ( player ) 
local nickNew = shortName 
local nickSet = getElementData( thePlayer, "origNick" ) 
    if ( nickSet == false ) then 
        setElementData ( player, "origNick", nickCurrent ) 
setClientName ( player, nickNew ) 

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