Harry
MTA Contributors-
Posts
580 -
Joined
-
Last visited
Everything posted by Harry
-
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
-
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.
-
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
-
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.
-
Just make a separate function (alias) which handles the excecution, and put the name of that function behind the timer, instead of mta.say ...
-
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
-
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]
-
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)
-
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
-
You should load it into MTAMA, not direct in mIRC
-
ok, looks like the documentation is worng and the '=1' and the '=2' should be swapped. Sorry for that.
-
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 }
-
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.
-
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.
-
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.
-
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 ?
-
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
-
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
-
Is there any error message in the mIRC status screen? Could give a clue
-
Remove the z from the command line, the file has a .gz , but it isn't compressed with gzip in fact. Hope it works
-
Rename the file from _taar.gz to .tar, and untar it without gzip... Then it works
-
Is someone attacking mta servers or something???
Harry replied to unreb's topic in General MTA discussion
I recorded some more ip's from wich my got attacked. Twice from one, once from the second. Luckily there is iptables DROP