Jump to content

Harry

MTA Contributors
  • Posts

    580
  • Joined

  • Last visited

Everything posted by Harry

  1. Harry

    MTAMA Scripting

    You first have to decide where you're going to store the ban data, and in what way. A (mySQL) database would be the best, but i'm thinking of using a ini file, because not everybody has a mysql server available. i'll try to finish it soon
  2. Harry

    MTAMA Scripting

    Hmm this script looks familiar.. Anyway, because you're using 'else' in the first case without any 'if' statement, there can be no second 'else'. This should work: else { %isadmin = $readini( "MTAscript.ini", admins, $mta.name( $1 , $2 )) %ismember = $readini( "members.ini", members, $mta.name( $1 , $2 )) if (%isadmin) { mta.say $1 The name $mta.name( $1 , $2 ) is a Server Admin Name. Please Login to use Features! set %badadmin. [ $+ [ $1 ] $+ . $+ [ $2 ] ] $2 .timeradmin 1 30 mta.badadmin $1 $2 } else if (%ismember) { mta.say $1 The name $mta.name( $1 , $2 ) is a server member Name. Please Login now! } } If you didn't remove all the indenting, this could be easily seen.
  3. Harry

    MTAMA Scripting

    Because a kill also means there is a death, put this part in mta.kill as well: if ($mta.kills($1,$2) == 9) mta.say $1 Haha $mta.name($1,$3) Owned!! $2 is the person killed, $3 is the killer
  4. I totally agree with TBOT... MTAMa does a great job.. For windows users.. i don't know what kind of expansion possibilities you have in mind for scripting and gamemodes in 0.4, but if MTAMA is still required, there should be a linux variant of it. What is the use of a linux server if there's no possibility to adminster it from the same computer, without using VMWare as i did before testing i switched. What alternative does the MTA team suggests for a admintool, which can be used ingame, and should run under linux... If they'll just take a look at this program, they'll see it's proper coded, and then they can easily check the way the protocol has been implemented.
  5. Harry

    MTAMA Scripting

    Just make a separate function (alias) which handles the excecution, and put the name of that function behind the timer, instead of mta.say ...
  6. Harry

    MTAMA Scripting

    The easiest, but diry way, is a while loop running through all available id's and check if their name matches the given one, and then returning the id. I'll write one for you when i've got some more time
  7. Harry

    MTAMA Scripting

    DEpends on what kind of admin script you are using. If you're using my one, or some king of derevative, use %isadmin.[$+ $1 $+ . $+ $2]
  8. Harry

    MTAMA Scripting

    Hm.. if the server runs on the same pc as mIRC it should work. Did you enable the admin port on the server? And are you conencting to the right port (default 4003)
  9. Harry

    MTAMA Scripting

    download MTAMA from the mtavc.com website, and read the textfiles in there.. should be enough for my 8-year old brother to understand, so it should be good enough for you
  10. Harry

    MTAMA Scripting

    You should load it into MTAMA, not direct in mIRC
  11. Harry

    MTAMA Scripting

    ok, looks like the documentation is worng and the '=1' and the '=2' should be swapped. Sorry for that.
  12. Harry

    MTAMA Scripting

    Try using these methods: alias mta.ingame { set %playerid 0 set %count 0 while ( $mta.maxplayers($1) > %playerid ) { if ( $ini( $+ $1 $+ .ini, ID $+ %playerid ) ) { if ($mta.game($1, %playerid) == 1) { %count = %count + 1 } } %playerid = %playerid + 1 } unset %playerid !return %count } alias mta.outgame { set %playerid 0 set %count 0 while ( $mta.maxplayers($1) > %playerid ) { if ( $ini( $+ $1 $+ .ini, ID $+ %playerid ) ) { if ($mta.game($1, %playerid) == 2) { %count = %count + 1 } } %playerid = %playerid + 1 } unset %playerid !return %count }
  13. Yes, that's what i tried to say. But can you program anything somebody else hasn't made yet? If the c++ code is public available, there's no need for most people to build their own scripts. Sure, it's 'cool' you build your own scripts, but why keep reinventing the same things? I don't see the point. I'd prefer downloading something fast, that write my own scripts, with all the bugs they might contain.
  14. Do much people know mIRC script? Sure, it is easier to use, but i think that is a problem too. Some servers i visited had such bad scripting, they could better turn it off. With this solution, with a good modular approach (which they are using) there are only a few people writing scripts/ programs, and the rest are using them. This guarantees better scripts for everyone. With a webpage with loadable / insertable plugins i think the problem with the scripting is minimal. But you're free to use MTAMA offcourse I will use it until this one is finished, and i will test them both before deciding which one i will use afterwards.
  15. Hmm.. 1000+ lines of code on 3 servers ? Is it much?? It takes about 40% CPU load on a Athlon 1700+, so i couldn't play MTA anymore because of the lag. The solution with a virtual machine worked great, except i trashed up my linux kernel so VMWare doesn't run anymore. So a mIRC for linux would be nice TBOT's C++ linux program looks very attractive, i hope it will work. MTAMa is a great addon, but some competition wouldn't be bad.
  16. I hope this will work. MTAMA is a great solution for scripting, but it is way too slow I hope this tool is as easy as MTAMA is, and way faster! Ohw, do i know the admin who runs mIrc in VMWare btw ?
  17. Harry

    MTAMA Scripting

    It is possible, but it isn't that easy. I've got a challenge script running at the Brakke student server, and the [NL] Calslaan 7-1 server(currently down). I'd like to pass you the script, but it has a verry nasty bug which i want fix before publishing. Please try the function, so i can test it some more. Comment are welcome! Harry
  18. Harry

    MTAMA Scripting

    Use this script with caution. There are people playing from with a proxy or an DSL modem that acts as an router. If there are more people behind one of these, they get the same IP address, but are not clones. Please take this in consideration before using the script above
  19. Is there any error message in the mIRC status screen? Could give a clue
  20. Remove the z from the command line, the file has a .gz , but it isn't compressed with gzip in fact. Hope it works
  21. Rename the file from _taar.gz to .tar, and untar it without gzip... Then it works
  22. I recorded some more ip's from wich my got attacked. Twice from one, once from the second. Luckily there is iptables DROP
×
×
  • Create New...