Jump to content

BTH

Members
  • Posts

    99
  • Joined

  • Last visited

Posts posted by BTH

  1. and again moving those would be hard, I would have to make a script to move hundreds of objects, that would make for a long script. The water is only one thing, that’s why I would prefer moving it instead.

    Not necessarily. You can easily move a lot of objects in unison without writing lots of script code (object arrays and loops for example). Moving a lot of objects in the same direction and with the same speed should be no problem. Same goes for pickups (assuming you can dynamically set the xyz attributes). I was also thinking of the glue function. This will come in handy if you want to move objects as one...

    You beat me to it :(:P
  2. If its something that can be added easily why not do it? Ban by multi IP-adresses is plain stupid cuz most people have dynamic IPs and they can always run MTA via a socks proxy server.
    It can't be added easily AFAIK. The source code he posted was for .NET. MTA is coded in native C++.
  3. I am not sure about functions of upcoming MTA DM release, but I hope that we're going to have CPU ID ban. If you haven't implented it already, then here's a little function for getting CPU ID, which has to be impelnted in the client. Then you should send it to the server and store in some file.

            public string GetCPUId()
           {
               string cpuInfo = String.Empty;
               string temp = String.Empty;
               ManagementClass mc = new ManagementClass("Win32_Processor");
               ManagementObjectCollection moc = mc.GetInstances();
               foreach (ManagementObject mo in moc)
               {
                   if (cpuInfo == String.Empty)
                   {// only return cpuInfo from first CPU
                       cpuInfo = mo.Properties["ProcessorId"].Value.ToString();
                   }
               }
               return cpuInfo;
           }

    The code is in C#, but it is not difficult to convert it, as C# and C++ are parts of one platform (.NET).

    P.S. Global ban by CPU ID isn't violent. It is what I call justice. Noone would cheat ever.

    Thanks.

    You're mixing up C++ and Microsoft Visual C++. Native C++ does not use .net
  4. Statistics

    query($sql);

    $msg = mysql_num_rows($mySQL->query);

    echo "

    Total guesses: $msg

    \n";

    $sql = 'SELECT * FROM guesses where gdate < NOW();';

    $mySQL->query($sql);

    $msg = mysql_num_rows($mySQL->query);

    echo "Passed dates: $msg

    \n";

    $sql = 'SELECT feat FROM guesses where feat != \'\';';

    $mySQL->query($sql);

    echo '

    Feature guesses:

    ';

    echo '';

    $vary = true;

    while($outs = mysql_fetch_array($mySQL->query)){

    $class = ($vary = !$vary)? "class1" : "class2";

    echo "

    $outs[0]\n";

    }

    ?>

  5. Now that's the kind of replies I like, thanks Aeron!

    Ok, so this is the idea...

    ----

    addEventHandler (event, getRootElement(), function)

    addEventHandler = Let the script know you want to activate a function with a special event

    event = The name of the event, actually the trigger for the function

    getRootElement() = Holds the information which gets sended to the function (can be an array which holds more information).

    (I guess this is a XML function, but from what kind of XML file it gets the root? And what does it return?)

    function = The function to activate

    Correct if im wrong.

    The last element is actually a string with functionname.
×
×
  • Create New...