| Mirage Source http://miragesource.net/forums/ |
|
| Name Restrictions http://miragesource.net/forums/viewtopic.php?f=201&t=3790 |
Page 1 of 1 |
| Author: | Poyzin [ Sun Jun 01, 2008 6:21 pm ] |
| Post subject: | Name Restrictions |
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. |
|
| Author: | mustorze [ Sun Jun 01, 2008 6:45 pm ] |
| Post subject: | Re: Name Restrictions |
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.... |
|
| Author: | Poyzin [ Sun Jun 01, 2008 9:49 pm ] |
| Post subject: | Re: Name Restrictions |
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 |
|
| Author: | Anthony [ Sun Jun 01, 2008 11:29 pm ] |
| Post subject: | Re: Name Restrictions |
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. |
|
| Author: | Poyzin [ Mon Jun 02, 2008 3:20 pm ] |
| Post subject: | Re: Name Restrictions |
Heh, sorry. Couldn't find anything. Searched for Consty Consty Name Prevent Restriction Prevent Name symbol symbol restriction and some more |
|
| Author: | Anthony [ Mon Jun 02, 2008 4:52 pm ] |
| Post subject: | Re: Name Restrictions |
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 <= 90) Or (n >= 97 And n <= 122) Or (n = 95) Or (n = 32) Or (n >= 48 And n <= 57) Then Else Call AlertMsg(Index, "Invalid name, only letters, numbers, spaces, and _ allowed in names.") Exit Sub End If Next i That should basically be the code you want to change. Add in your letters/symbols there. I am not sure what all the key numbers are, probably search it on Google. |
|
| Author: | Pbcrazy [ Mon Jun 02, 2008 4:56 pm ] |
| Post subject: | Re: Name Restrictions |
http://rmhh.co.uk/ascii.html heres a link to a site that has the keycodes. |
|
| Author: | Poyzin [ Mon Jun 02, 2008 9:57 pm ] |
| Post subject: | Re: Name Restrictions |
Anthony! THANK YOU THANK YOU THANK YOU! IT WORKED |
|
| Author: | William [ Tue Jun 03, 2008 2:55 pm ] |
| Post subject: | Re: Name Restrictions |
Obsidian made a tutorial so you can't have swear words in the chat. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|