Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Name Restrictions
#1
Does anyone know how to put it so no one can put certain letters or symbols in there name?
I'm stumped.

Thanks in advance.
Reply
#2
I made a plan ...
Code:
Private Sub Command1_Click()
Dim omg() As String
Texta = "law,omh,awhj,noob" 'Names...
omg = Split(Texta, ",")
For i = 0 To 3 'number of words starts from 0
If omg(i) = nameoftextbox.Text Then
MsgBox "go to hell"
End If
Next i
End Sub
try....
Reply
#3
Nah it don't work..And where do I put that anyway rofl

Edit:
Texta gets the compile error

Edit 2:
Nevermind. I get it..but it doesnt not let you use those words..just adds them Sad
Reply
#4
There is a code in there to prevent the use of high ascii characters as well as one that prevents the use of Consty's name. Search for these and you should be able to figure it out that way.
Reply
#5
Heh, sorry. Couldn't find anything. Searched for
Consty
Consty Name
Prevent
Restriction
Prevent Name
symbol
symbol restriction

and some more
:oops:
Reply
#6
Probably was removed in MSE2 if thats what your using.

So, lets just say, go to your server side source, find the "Add character packet" in modHandleData. There should be another one there that's like this:

[code]
' Prevent hacking
For i = 1 To Len(Name)
n = Asc(Mid(Name, i, 1))

If (n >= 65 And n = 97 And n = 48 And n
Reply
#7
http://rmhh.co.uk/ascii.html

heres a link to a site that has the keycodes.
Reply
#8
Anthony! THANK YOU THANK YOU THANK YOU! IT WORKED Big Grin
Reply
#9
Obsidian made a tutorial so you can't have swear words in the chat.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)