ItsMods

Full Version: Anti-Invisible Name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using Addon;
  5.  
  6. namespace AntiInvisibleName
  7. {
  8. public class Main : CPlugin
  9. {
  10. public override void OnPlayerConnect(ServerClient Client)
  11. {
  12. if(Array.TrueForAll(Client.Name.ToCharArray(), c => (int)c <= 31))
  13. ServerCommand("kickclient " + Client.ClientNum + " \"Invisible name detected.\"");
  14. }
  15. }
  16. }
@master131 you dont speak much, isnt so active (here) but when you do a post its certainly "the" post.

To sum up, very good work, again....

Thanks Barata...

OMA for you!
>connect
>change your name
>update it with server
>profit
Wow thanks, found a hacker who was botting on my regular server with that "." thanks!
+rep
as usual good work master
great! +rep offcourse!
(04-06-2012, 00:41)OrangePL Wrote: [ -> ]>connect
>change your name
>update it with server
>profit

Meh, you can fix it yourself if you want. Tongue
(04-06-2012, 13:07)master131 Wrote: [ -> ]
(04-06-2012, 00:41)OrangePL Wrote: [ -> ]>connect
>change your name
>update it with server
>profit

Meh, you can fix it yourself if you want. Tongue

I don't want it to be fixed Shy
(04-06-2012, 00:41)OrangePL Wrote: [ -> ]>connect
>change your name
>update it with server
>profit

>use this with AntiNameChanger
>profit
any way this can be updated with those that have only russian letters in their name?
Pages: 1 2 3