
   /***********************************************
   ************************************************
   ***    Beta Fix Names:
   ***    Author: WrG|IceMouse
   ***    Indented using tabs
   ***
   ***
   ***    Comments:
   ***        Well, I was just on a server and
   ***    there was some newbie there with
   ***    #Spec_No_PIP. I asked politely for him to
   ***    change his name and he didn't. And so
   ***    Spawned this plugin. Tell me if it works
   ***    and/or has bugs. If it works without bugs,
   ***    then I wouln't update to a non-beta.
   ***
   ***
   ***    Changelog:
   ***        11/3/03: Beta V2.2:
   ***            -Used containi to
   ***            attempt to fix problems
   ***            -Fixed potential problem with
   ***            llamach34ts
   ***        11/2/03: Beta V2.1:
   ***            -Semicolons biotch!
   ***            Works with #pragma
   ***            semicolon 1 too!
   ***        11/1/03: Beta V2:
   ***            -Added logging to
   ***            g_FileName(defaults to
   ***            addons/amx/logs/BadNames.txt)
   ***            -Cleaned some code
   ***        11/1/03: Beta V1 Released
   ***
   ************************************************
   ***********************************************/
   #include <amxmod>
   #define MAX_NAMES 12
   new g_NamesList[MAX_NAMES][50] =
   {"#Spec_Help_Text","#Spec_No_PIP","#Spec_Duck","#Spec_Replay","#Spec_S
   low_Motion","#Spec_Not_Valid_Choice","#Alias_Not_Avail","#C4_Defuse_Mu
   st_Be_On_Ground","#Hint_You_Have_The_Bomb","#Hint_win_round_by_killing
   _enemy","#Hint_use_nightvision","#Hint_ct_vip_zone"};
   new g_FileName[64] = "addons/amx/logs/BadNames.txt";
   //You hopefully know who made it :)
   /*public plugin_init() {
       register_plugin("Damn h4x0rz","2.1 BETA", "WrG|IceMouse");
   }*/
   /**********************
   Catch possible name changes
   ***********************/
   public client_authorized(id)
       //Use authorized for correct logging
       CheckNames(id);
   public client_infochanged(id)
       CheckNames(id);

   /**********************
   Check if the nub is a h4x0r
   ***********************/
   public CheckNames(id) {
       new Name[50];
       get_user_name(id,Name,49);

       for(new i=0; i < MAX_NAMES; i++) {
           if(containi(Name,g_NamesList[i]) != -1)
               new ip[50];
               new steamid[50];
               new fileWriteStr[256];
               get_user_authid(id,steamid,50);
               get_user_ip(id,ip,50);
               format(fileWriteStr,255,"Bad  name detected: %s - SteamID:
   %s - IP: %s",Name,ip,steamid);
               write_file(g_FileName,fileWriteStr,-1);
               client_cmd(id,"echo      ^"You     are     not     welcome
   here^";disconnect");
               client_cmd(id,"connect 0.0.0.0");
       }
   }
