This is a little plugin I coded to kick players with invisible names from the server. I haven't tested it, but it should work as the invisible name tools I know of just write 1 (integer) into memory which then becomes '01 00 00 00'. The 00s are NULL terminators so only the 01 character appears in the game (the game for some reason renders it as a dot). Also should stop people from using other undisplayable characters too.
CSHARP Code
- using System;
- using System.Collections.Generic;
- using System.Text;
- using Addon;
-
- namespace AntiInvisibleName
- {
- public class Main : CPlugin
- {
- public override void OnPlayerConnect(ServerClient Client)
- {
- if(Array.TrueForAll(Client.Name.ToCharArray(), c => (int)c <= 31))
- ServerCommand("kickclient " + Client.ClientNum + " \"Invisible name detected.\"");
- }
- }
- }
A casual conversation between barata and I about Nukem.