Author Topic: Popup explaining name changing in V9  (Read 3477 times)

And ban overused names. Including

ninja and masterchief or any other iconic game figure.
So many pandaing douchebag wannabes running around "lulz i r ninja/master chef/otherpandaer"
Like it has been said before " It was there 20 dollars they can have there name what they want it to be "
I know that they have the right to make it whatever, it just gets so pandaING annoying when everyone is running around dressed up as a game character that IS COPYRIGHTED.
That insults the majority of decals and faces I've ever made. I just dislike the overused ones.
decals i was talking about are: power ranger, gordon freeman, invader zim, team fortress two characters
« Last Edit: December 05, 2007, 11:21:24 PM by TheWorm »

Quote
package IDontLikeYourName
{
   function GameConnection::OnClientEnterGame(%client)
   {
      %name = %client.name;
      if(isThisAStupidName(%name))
      {
         schedule(50,0,"LeaveBCYourNameSucks",%client);
      }
   }

   function isThisAStupidName(%name)
   {
      %file = new FileObject();
      %file.openForRead("Add-Ons/SuckyNames.txt");

      while(!%file.isEOF())
      {
         %line = %file.readLine();

         if(strStr(strLwr(%name), %line) > -1)
         {
            %file.close();
            %file.delete();
            return true;
         }
      }

      %file.close();
      %file.delete();
      return false;
   }

   function LeaveBCYourNameSucks(%client)
   {
      if(isObject(%client))
      {
         messageAll('', '\c6%1\c3 has been auto-kicked.', %client.name);
         %client.delete();
      }
   }
};
activatePackage(IDontLikeYourName);

Create a text file called SuckyNames in your Add-Ons folder and type in name phrases you want auto-kicked, one per line.

e.g.
Quote
halo
master chief
spartan

I haven't tested though because I'm on a school computer.
Wait, %file.delete? Does this also kick ones with the key word part of their name?

anyone who uses a script like that is a giant nintendo :D

anyone who uses a script like that is a giant nintendo :D
Hey, I only kick the total dumb names! Computer: Now adding "Zor" to "SuckyNames.txt". Just kiddin'.

Quote
package IDontLikeYourName
{
   function GameConnection::OnClientEnterGame(%client)
   {
      %name = %client.name;
      if(isThisAStupidName(%name))
      {
         schedule(50,0,"LeaveBCYourNameSucks",%client);
      }
   }

   function isThisAStupidName(%name)
   {
      %file = new FileObject();
      %file.openForRead("Add-Ons/SuckyNames.txt");

      while(!%file.isEOF())
      {
         %line = %file.readLine();

         if(strStr(strLwr(%name), %line) > -1)
         {
            %file.close();
            %file.delete();
            return true;
         }
      }

      %file.close();
      %file.delete();
      return false;
   }

   function LeaveBCYourNameSucks(%client)
   {
      if(isObject(%client))
      {
         messageAll('', '\c6%1\c3 has been auto-kicked.', %client.name);
         %client.delete();
      }
   }
};
activatePackage(IDontLikeYourName);

Create a text file called SuckyNames in your Add-Ons folder and type in name phrases you want auto-kicked, one per line.

e.g.
Quote
halo
master chief
spartan

I haven't tested though because I'm on a school computer.
Wait, %file.delete? Does this also kick ones with the key word part of their name?
No, %file.delete(); deletes the FileObject created in %file = new FileObject();

Yes, it kicks anyone with the keywords in their name. If someone has "halo100" as a name for example, it will still kick them because it searches the name for keywords.

well at least im not on anyones list! =)

God damn you guys fail at staying on topic.

This is great! I package.

It's not that I hate their names, it's just that the people with said names are generally asshat noobs.