XcR Posted January 10, 2005 Posted January 10, 2005 alias db { if ($2 == on) { if ($mta.admin+($1)) { mta.say $1 Dystruction derby activated! mta.say $1 Get a good car and type '!join' to be in the list! (60 secs remaining) %derby = 1 !unset % [ $+ [ $1 ] ] !.timerdb 1 60 db $1 start } else mta.say $1 No admin+ connection! } elseif ($2 == off) { if (%derby) { mta.say $1 Dystruction derby deactivated! %derby = 0 !.timerdb off !.timerdb2 off } } elseif ($2 == start) { if ($numtok(% [ $+ [ $1 ] ],32) < 3) { mta.say $1 Not enough players to start: restart. mta.say $1 Get a good car and type '!join' to be in the list! (60 secs remaining) !unset % [ $+ [ $1 ] ] !.timerdb 1 60 db $1 start } else { mta.say $1 Time up! mta.say $1 The Round begins! (5 mins) !.timerdb2 1 300 db $1 stop } } elseif ($2 == stop) { var %a = $numtok(% [ $+ [ $1 ] ],32),%b,%c,%d,%e while %a > 0 { %e = $gettok(% [ $+ [ $1 ] ],%a,32) if ($mta.health($1,%e) > $mta.health($1,%b)) { if ($mta.health($1,%e) > $mta.health($1,%c)) { if ($mta.health($1,%e) > $mta.health($1,%d)) { %b = %c %c = %d %d = %e } %b = %c %c = %e } %c = %e } !dec %a } mta.say $1 Time over! mta.say $1 1st: $mta.name($1,%d) ( $+ $mta.health($1,%d) $+ $chr(37) $+ ) 2st: $mta.name($1,%c) ( $+ $mta.health($1,%c) $+ $chr(37) $+ ) 3rd: $mta.name($1,%b) ( $+ $mta.health($1,%b) $+ $chr(37) $+ ) mta.say $1 Get a good car and type '!join' to be in the list! (60 secs remaining) set % [ $+ [ $1 ] ] !.timerdb 1 60 db $1 start } } just replace the alias db in the script with the one above and it should work. - XcR
Niels Posted January 11, 2005 Posted January 11, 2005 http://home.deds.nl/~aeron aka http://www.aeron.tk offline ?
Mike Posted January 11, 2005 Posted January 11, 2005 Yup, (and that's the reason you'll get the message "Invalid update file" if you try to update)
Jani Posted January 18, 2005 Posted January 18, 2005 what line do i put into my script so that only a lv5 admin can activate my PSL loaded script (loaded with olis script of course)
Mike Posted January 18, 2005 Posted January 18, 2005 (edited) meh on *:SIGNAL:mta.command:{ var %a = $readini($1.ini,ID $+ $2,level) if (%a >= 5) { if ($3 == !mode) { if (*mh iswm $4) mh $5- elseif (*ctc iswm $4) ctc $5- elseif (*team iswm $4) team $5- } } } Edited January 19, 2005 by Guest
Mike Posted January 18, 2005 Posted January 18, 2005 lol thats a stupid way of doing it Where's your better way?
Oli Posted January 19, 2005 Posted January 19, 2005 jesus lol... i thought it was obvious... just think about what !mh on actually DOES for example... then u can skip a step and it looks much better
Mike Posted January 19, 2005 Posted January 19, 2005 Fine on *:SIGNAL:mta.command:{ var %a = $readini($1.ini,ID $+ $2,level) if (%a >= 5) { if ($3 == !mode) { if (*mh iswm $4) mh $5- elseif (*ctc iswm $4) ctc $5- elseif (*team iswm $4) team $5- } } }
Au{R}oN Posted January 22, 2005 Posted January 22, 2005 excuse me guys, there is the script anti flood?An example: Zitz: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
MrJax Posted January 22, 2005 Posted January 22, 2005 We have one on our server, i suppose theres a few ways of writing one.
Jani Posted January 22, 2005 Posted January 22, 2005 excuse me guys, there is the script anti flood?An example:Zitz: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA theres one built into mta
Au{R}oN Posted January 23, 2005 Posted January 23, 2005 So there isn't that script? But i remember this script in mta 0.3, created by aeron
Niels Posted January 23, 2005 Posted January 23, 2005 if ($readini(shitlist.ini,clanban,clan) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } This is work with one clan. I ban more clans and he don't rember the old clan. Can somone fix this, or telll my what the error is ? (Sorry for my bad english)
XcR Posted January 23, 2005 Posted January 23, 2005 just create more sections in the ini like so: [clan1] clan=whatever [clan2] clan=whatever and so on.
Niels Posted January 23, 2005 Posted January 23, 2005 on *:SIGNAL:mta.join: { if ($readini(shitlist.ini,clanban,clan) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } if ($readini(shitlist.ini,clanban,clan1) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } if ($readini(shitlist.ini,clanban,clan2) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } if ($readini(shitlist.ini,clanban,clan3) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } if ($readini(shitlist.ini,clanban,clan4) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } if ($readini(shitlist.ini,clanban,clan5) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } } It's a great script
Oli Posted January 23, 2005 Posted January 23, 2005 Well if u really wanna do it like that at least be smart about it on *:SIGNAL:mta.join: { var %a = 1 while %a <= $ini(shitlist.ini,clanban,0) { if $readini(shitlist.ini,clanban,$ini(shitlist.ini,clanban,%a)) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } !inc %a } }
[FMJ]chode Posted January 23, 2005 Posted January 23, 2005 lol wasnt that one of the 1st scripts ever to be made for mta... ...i remember how it used to keep them damn NBK's off our server
Aeron Posted January 24, 2005 Posted January 24, 2005 lolwasnt that one of the 1st scripts ever to be made for mta... ...i remember how it used to keep them damn NBK's off our server No the first script was the !count (down) script
Niels Posted January 25, 2005 Posted January 25, 2005 Well if u really wanna do it like that at least be smart about it on *:SIGNAL:mta.join: { var %a = 1 while %a <= $ini(shitlist.ini,clanban,0) { if $readini(shitlist.ini,clanban,$ini(shitlist.ini,clanban,%a)) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } !inc %a } } mIRC Says this: * /if: insufficient parameters (line 845, script2.mrc)
Mike Posted January 25, 2005 Posted January 25, 2005 on *:SIGNAL:mta.join: { var %a = 1 while %a <= $ini(shitlist.ini,clanban,0) { if ($readini(shitlist.ini,clanban,$ini(shitlist.ini,clanban,%a)) isin $mta.name($1,$2)) { mta.say $1 Your clan is clanbanned here. mta.ban $1 $2 } !inc %a } } Bracket mismatch, tut tut Oli
Recommended Posts