General > Developers Corner
Name Checker/Kick
Decicus:
Just posting again to verify that it did in fact work. I added a part of my name to that list to test, and it kicked me.
Megiddo:
Don't forget our NameChanged hook. :)
Decicus:
--- Quote from: Megiddo on October 07, 2013, 04:49:25 PM ---Don't forget our NameChanged hook. :)
--- End quote ---
Useful. I think I'll add that to the script. Thanks!
JamminR:
Some fun learn as you go ideas;
Instead of kicking, you could maybe run a name change on the client side. (I forget what Garry's blocked allowing run on clients.)
If that works, change name once to something like IhadANaughtyName<some_random_number>.
Store the player in a table. If they change their name back to something naughty in it, as detected by the name change hook, then they get kicked.
If they change to something without setting off the alert kick, code exits gracefully.
Decicus:
I like the idea, JamminR, but I'm pretty sure you can't change anyone's names in-game anymore. I know a few years back that some Source games allowed you to have a different name than your Steam nickname. Now every game (including Garry's Mod) takes the nickname from Steam and uses that instead.
So I'm pretty sure (although not 100% sure), that it won't really work.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version