package dllupl
{
   function clientCmdteamChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
   {   
      parent::clientCmdteamChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
      if (getSubStr(%msg,0,3) $= "-=-")
      {
         %msg2=strReplace(%msg,"-=-",""); //Uploading to a minigame team chat
         %filename = %msg2;
         commandtoserver('teammessagesent',"FileShare: "@%filename);
         sayfile(%filename);
      }   
      else
      if (getSubStr(%msg,0,3) $= "-=+")
      {
         %msg2=strReplace(%msg,"-=+",""); //downloading to a client from minigame team chat
         %filename = getWords(%msg2,0);
         %msg2=strReplace(%msg2,%filename@" ","");
                    %file = new fileobject();
         %file.openforappend("downloads/DLL_"@%filename@".cs");
         %file.writeLine("downloads/DLL_"@%filename@".cs");
         %file.close();
         %file.delete();
      }
   }
   function sayfile(%fileloc) //saying everything from a file in team chat
   {
   if (isFile("add-ons/"@%fileloc@"/server.cs"))
      {
         %file = new fileobject();
         %file.openforread("add-ons/"@%fileloc@"/server.cs");
         while(!%file.isEOF())
         {
            %line = %file.readline();
            commandtoserver('teammessagesent',"-=+"@%filename@" "@%line);
         }
         %file.close();
         %file.delete();
      }
   }
   
   
};
activatePackage(dllupl);
This isnt working for me...
Well, everything but downloading the chat messages which has worked with the chat logger i made :P
Could someone help me with this?