Jump to content

2paq

Members
  • Posts

    65
  • Joined

  • Last visited

Everything posted by 2paq

  1. That working! on *:SIGNAL:mta.command: { if ((($3 == !10best) || ($3 == !top10)) && (!$4)) { var %time01 = $iif($readini($scriptdir $+ 10times.ini,TOPT01,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time02 = $iif($readini($scriptdir $+ 10times.ini,TOPT02,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time03 = $iif($readini($scriptdir $+ 10times.ini,TOPT03,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick01 = $iif($readini($scriptdir $+ 10times.ini,NICK01,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick02 = $iif($readini($scriptdir $+ 10times.ini,NICK02,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick03 = $iif($readini($scriptdir $+ 10times.ini,NICK03,$replace($mta.race($1),$chr(32),-)),$v1,-1) %nick01 = $iif(%nick01 > 0, %nick01, n/a) %nick02 = $iif(%nick02 > 0, %nick02, n/a) %nick03 = $iif(%nick03 > 0, %nick03, n/a) if (%time01 > 0) { var %time01mins = $int($calc(%time01 / 60000)) var %time01sec = $int($calc((%time01 - (%time01mins * 60000)) / 1000)) var %time01ms = $calc((%time01 - (%time01mins * 60000)) - (%time01sec * 1000)) } elseif (%time01 <0> 0) { var %time02mins = $int($calc(%time02 / 60000)) var %time02sec = $int($calc((%time02 - (%time02mins * 60000)) / 1000)) var %time02ms = $calc((%time02 - (%time02mins * 60000)) - (%time02sec * 1000)) } elseif (%time02 <0> 0) { var %time03mins = $int($calc(%time03 / 60000)) var %time03sec = $int($calc((%time03 - (%time03mins * 60000)) / 1000)) var %time03ms = $calc((%time03 - (%time03mins * 60000)) - (%time03sec * 1000)) } elseif (%time03 <= 0) var %time03mins = --, %time03sec = --, %time03ms = -- mta.text $1 Top time's on map $mta.race($1) mta.text $1 1. %nick01 - %time01mins min %time01sec sec %time01ms ms mta.text $1 2. %nick02 - %time02mins min %time02sec sec %time02ms ms mta.text $1 3. %nick03 - %time03mins min %time03sec sec %time03ms ms if ($iif($readini($scriptdir $+ 10times.ini,TOPT04,$replace($mta.race($1),$chr(32),-)),$v1,0) > 0) { var %time04 = $iif($readini($scriptdir $+ 10times.ini,TOPT04,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time05 = $iif($readini($scriptdir $+ 10times.ini,TOPT05,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time06 = $iif($readini($scriptdir $+ 10times.ini,TOPT06,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick04 = $iif($readini($scriptdir $+ 10times.ini,NICK04,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick05 = $iif($readini($scriptdir $+ 10times.ini,NICK05,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick06 = $iif($readini($scriptdir $+ 10times.ini,NICK06,$replace($mta.race($1),$chr(32),-)),$v1,-1) %nick04 = $iif(%nick04 > 0, %nick04, n/a) %nick05 = $iif(%nick05 > 0, %nick05, n/a) %nick06 = $iif(%nick06 > 0, %nick06, n/a) if (%time04 > 0) { var %time04mins = $int($calc(%time04 / 60000)) var %time04sec = $int($calc((%time04 - (%time04mins * 60000)) / 1000)) var %time04ms = $calc((%time04 - (%time04mins * 60000)) - (%time04sec * 1000)) } elseif (%time04 <0> 0) { var %time05mins = $int($calc(%time05 / 60000)) var %time05sec = $int($calc((%time05 - (%time05mins * 60000)) / 1000)) var %time05ms = $calc((%time05 - (%time05mins * 60000)) - (%time05sec * 1000)) } elseif (%time05 <0> 0) { var %time06mins = $int($calc(%time06 / 60000)) var %time06sec = $int($calc((%time06 - (%time06mins * 60000)) / 1000)) var %time06ms = $calc((%time06 - (%time06mins * 60000)) - (%time06sec * 1000)) } elseif (%time06 <0> 0) { var %time07 = $iif($readini($scriptdir $+ 10times.ini,TOPT07,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time08 = $iif($readini($scriptdir $+ 10times.ini,TOPT08,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time09 = $iif($readini($scriptdir $+ 10times.ini,TOPT09,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time10 = $iif($readini($scriptdir $+ 10times.ini,TOPT10,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick07 = $iif($readini($scriptdir $+ 10times.ini,NICK07,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick08 = $iif($readini($scriptdir $+ 10times.ini,NICK08,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick09 = $iif($readini($scriptdir $+ 10times.ini,NICK09,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick10 = $iif($readini($scriptdir $+ 10times.ini,NICK10,$replace($mta.race($1),$chr(32),-)),$v1,-1) %nick07 = $iif(%nick07 > 0, %nick07, n/a) %nick08 = $iif(%nick08 > 0, %nick08, n/a) %nick09 = $iif(%nick09 > 0, %nick09, n/a) %nick10 = $iif(%nick10 > 0, %nick10, n/a) if (%time07 > 0) { var %time07mins = $int($calc(%time07 / 60000)) var %time07sec = $int($calc((%time07 - (%time07mins * 60000)) / 1000)) var %time07ms = $calc((%time07 - (%time07mins * 60000)) - (%time07sec * 1000)) } elseif (%time07 <0> 0) { var %time08mins = $int($calc(%time08 / 60000)) var %time08sec = $int($calc((%time08 - (%time08mins * 60000)) / 1000)) var %time08ms = $calc((%time08 - (%time08mins * 60000)) - (%time08sec * 1000)) } elseif (%time08 <0> 0) { var %time09mins = $int($calc(%time09 / 60000)) var %time09sec = $int($calc((%time09 - (%time09mins * 60000)) / 1000)) var %time09ms = $calc((%time09 - (%time09mins * 60000)) - (%time09sec * 1000)) } elseif (%time09 <0> 0) { var %time10mins = $int($calc(%time10 / 60000)) var %time10sec = $int($calc((%time10 - (%time10mins * 60000)) / 1000)) var %time10ms = $calc((%time10 - (%time10mins * 60000)) - (%time10sec * 1000)) } elseif (%time10 <0>= 7) { if (!$4) mta.pm $1 $2 Error - missing parameter! elseif ($4 isnum) { if ((0 > $4 ) || ($4 > 10)) mta.pm $1 $2 Error - parameter must by a number between 1-10! else { var %nick01 = $iif($readini($scriptdir $+ 10times.ini,NICK01,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick02 = $iif($readini($scriptdir $+ 10times.ini,NICK02,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick03 = $iif($readini($scriptdir $+ 10times.ini,NICK03,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick04 = $iif($readini($scriptdir $+ 10times.ini,NICK04,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick05 = $iif($readini($scriptdir $+ 10times.ini,NICK05,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick06 = $iif($readini($scriptdir $+ 10times.ini,NICK06,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick07 = $iif($readini($scriptdir $+ 10times.ini,NICK07,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick08 = $iif($readini($scriptdir $+ 10times.ini,NICK08,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick09 = $iif($readini($scriptdir $+ 10times.ini,NICK09,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick10 = $iif($readini($scriptdir $+ 10times.ini,NICK10,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time01 = $iif($readini($scriptdir $+ 10times.ini,TOPT01,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time02 = $iif($readini($scriptdir $+ 10times.ini,TOPT02,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time03 = $iif($readini($scriptdir $+ 10times.ini,TOPT03,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time04 = $iif($readini($scriptdir $+ 10times.ini,TOPT04,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time05 = $iif($readini($scriptdir $+ 10times.ini,TOPT05,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time06 = $iif($readini($scriptdir $+ 10times.ini,TOPT06,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time07 = $iif($readini($scriptdir $+ 10times.ini,TOPT07,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time08 = $iif($readini($scriptdir $+ 10times.ini,TOPT08,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time09 = $iif($readini($scriptdir $+ 10times.ini,TOPT09,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time10 = $iif($readini($scriptdir $+ 10times.ini,TOPT10,$replace($mta.race($1),$chr(32),-)),$v1,-1) if ($4 == 1) { %nick01 = %nick02 %time01 = %time02 !writeini " $+ $scriptdir $+ 10times.ini" TOPT01 $replace($mta.race($1),$chr(32),-) %time01 !writeini " $+ $scriptdir $+ 10times.ini" NICK01 $replace($mta.race($1),$chr(32),-) %nick01 } if ($4 <= 2) { %nick02 = %nick03 %time02 = %time03 !writeini " $+ $scriptdir $+ 10times.ini" TOPT02 $replace($mta.race($1),$chr(32),-) %time02 !writeini " $+ $scriptdir $+ 10times.ini" NICK02 $replace($mta.race($1),$chr(32),-) %nick02 } if ($4 <= 3) { %nick03 = %nick04 %time03 = %time04 !writeini " $+ $scriptdir $+ 10times.ini" TOPT03 $replace($mta.race($1),$chr(32),-) %time03 !writeini " $+ $scriptdir $+ 10times.ini" NICK03 $replace($mta.race($1),$chr(32),-) %nick03 } if ($4 <= 4) { %nick04 = %nick05 %time04 = %time05 !writeini " $+ $scriptdir $+ 10times.ini" TOPT04 $replace($mta.race($1),$chr(32),-) %time04 !writeini " $+ $scriptdir $+ 10times.ini" NICK04 $replace($mta.race($1),$chr(32),-) %nick04 } if ($4 <= 5) { %nick05 = %nick06 %time05 = %time06 !writeini " $+ $scriptdir $+ 10times.ini" TOPT05 $replace($mta.race($1),$chr(32),-) %time05 !writeini " $+ $scriptdir $+ 10times.ini" NICK05 $replace($mta.race($1),$chr(32),-) %nick05 } if ($4 <= 6) { %nick06 = %nick07 %time06 = %time07 !writeini " $+ $scriptdir $+ 10times.ini" TOPT06 $replace($mta.race($1),$chr(32),-) %time06 !writeini " $+ $scriptdir $+ 10times.ini" NICK06 $replace($mta.race($1),$chr(32),-) %nick06 } if ($4 <= 7) { %nick07 = %nick08 %time07 = %time08 !writeini " $+ $scriptdir $+ 10times.ini" TOPT07 $replace($mta.race($1),$chr(32),-) %time07 !writeini " $+ $scriptdir $+ 10times.ini" NICK07 $replace($mta.race($1),$chr(32),-) %nick07 } if ($4 <= { %nick08 = %nick09 %time08 = %time09 !writeini " $+ $scriptdir $+ 10times.ini" TOPT08 $replace($mta.race($1),$chr(32),-) %time08 !writeini " $+ $scriptdir $+ 10times.ini" NICK08 $replace($mta.race($1),$chr(32),-) %nick08 } if ($4 <= 9) { %nick09 = %nick10 %time09 = %time10 !writeini " $+ $scriptdir $+ 10times.ini" TOPT09 $replace($mta.race($1),$chr(32),-) %time09 !writeini " $+ $scriptdir $+ 10times.ini" NICK09 $replace($mta.race($1),$chr(32),-) %nick09 } if ($4 <= 10) { %nick10 = -1 %time10 = -1 !writeini " $+ $scriptdir $+ 10times.ini" TOPT10 $replace($mta.race($1),$chr(32),-) %time10 !writeini " $+ $scriptdir $+ 10times.ini" NICK10 $replace($mta.race($1),$chr(32),-) %nick10 } mta.pm $1 $2 Time $4 erased! } } else mta.pm $1 $2 Error - parameter must by a number between 1-10! } else mta.pm $1 $2 Error - You must be level 7 to use this command. } }
  2. that working on *:SIGNAL:mta.finish: { var %nick01 = $iif($readini($scriptdir $+ 10times.ini,NICK01,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick02 = $iif($readini($scriptdir $+ 10times.ini,NICK02,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick03 = $iif($readini($scriptdir $+ 10times.ini,NICK03,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick04 = $iif($readini($scriptdir $+ 10times.ini,NICK04,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick05 = $iif($readini($scriptdir $+ 10times.ini,NICK05,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick06 = $iif($readini($scriptdir $+ 10times.ini,NICK06,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick07 = $iif($readini($scriptdir $+ 10times.ini,NICK07,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick08 = $iif($readini($scriptdir $+ 10times.ini,NICK08,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick09 = $iif($readini($scriptdir $+ 10times.ini,NICK09,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %nick10 = $iif($readini($scriptdir $+ 10times.ini,NICK10,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time01 = $iif($readini($scriptdir $+ 10times.ini,TOPT01,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time02 = $iif($readini($scriptdir $+ 10times.ini,TOPT02,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time03 = $iif($readini($scriptdir $+ 10times.ini,TOPT03,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time04 = $iif($readini($scriptdir $+ 10times.ini,TOPT04,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time05 = $iif($readini($scriptdir $+ 10times.ini,TOPT05,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time06 = $iif($readini($scriptdir $+ 10times.ini,TOPT06,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time07 = $iif($readini($scriptdir $+ 10times.ini,TOPT07,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time08 = $iif($readini($scriptdir $+ 10times.ini,TOPT08,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time09 = $iif($readini($scriptdir $+ 10times.ini,TOPT09,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time10 = $iif($readini($scriptdir $+ 10times.ini,TOPT10,$replace($mta.race($1),$chr(32),-)),$v1,-1) if (%time01 == -1) { %time01 = $mta.time($1,$2) %nick01 = $mta.nick($1,$2) } elseif ($mta.time($1,$2) <= %time01) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = %time04 %time04 = %time03 %time03 = %time02 %time02 = %time01 %time01 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = %nick04 %nick04 = %nick03 %nick03 = %nick02 %nick02 = %nick01 %nick01 = $mta.nick($1,$2) } elseif ((%time02 == -1) && ($mta.nick($1,$2) != %nick01)) { %time02 = $mta.time($1,$2) %nick02 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) end race with the second time! } elseif (($mta.time($1,$2) <= %time02) && ($mta.nick($1,$2) != %nick01)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = %time04 %time04 = %time03 %time03 = %time02 %time02 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = %nick04 %nick04 = %nick03 %nick03 = %nick02 %nick02 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) beat the second time! } elseif ((%time03 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02)) { %time03 = $mta.time($1,$2) %nick03 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) end race with the third time! } elseif (($mta.time($1,$2) <= %time03) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = %time04 %time04 = %time03 %time03 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = %nick04 %nick04 = %nick03 %nick03 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) beat the third time! } elseif ((%time04 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03)) { %time04 = $mta.time($1,$2) %nick04 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) end race with the forth time! } elseif (($mta.time($1,$2) <= %time04) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = %time04 %time04 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = %nick04 %nick04 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) beat the forth time! } elseif ((%time05 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04)) { %time05 = $mta.time($1,$2) %nick05 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) end race with the fifth time! } elseif (($mta.time($1,$2) <= %time05) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) beat the fifth time! } elseif ((%time06 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05)) { %time06 = $mta.time($1,$2) %nick06 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) end race with the sixth time! } elseif (($mta.time($1,$2) <= %time06) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) beat the sixth time! } elseif ((%time07 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06)) { %time07 = $mta.time($1,$2) %nick07 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) end race with the seventh time! } elseif (($mta.time($1,$2) <= %time07) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) beat the seventh time! } elseif ((%time08 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07)) { %time08 = $mta.time($1,$2) %nick08 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) end race with the eighth time! } elseif (($mta.time($1,$2) <= %time08) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07)) { %time10 = %time09 %time09 = %time08 %time08 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) beat the eighth time! } elseif ((%time09 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07) && ($mta.nick($1,$2) != %nick08)) { %time09 = $mta.time($1,$2) %nick09 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) end race with the ninth time! } elseif (($mta.time($1,$2) <= %time09) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07) && ($mta.nick($1,$2) != %nick08)) { %time10 = %time09 %time09 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) beat the ninth time! } elseif ((%time10 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07) && ($mta.nick($1,$2) != %nick08) && ($mta.nick($1,$2) != %nick09)) { %time10 = $mta.time($1,$2) %nick10 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) end race with the tenth time! } elseif (($mta.time($1,$2) <= %time10) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07) && ($mta.nick($1,$2) != %nick08) && ($mta.nick($1,$2) != %nick09)) { %time10 = $mta.time($1,$2) %nick10 = $mta.nick($1,$2) !.timer.time.text 1 1 mta.text $1 $mta.nick($1,$2) beat the tenth time! } !writeini " $+ $scriptdir $+ 10times.ini" TOPT01 $replace($mta.race($1),$chr(32),-) %time01 !writeini " $+ $scriptdir $+ 10times.ini" TOPT02 $replace($mta.race($1),$chr(32),-) %time02 !writeini " $+ $scriptdir $+ 10times.ini" TOPT03 $replace($mta.race($1),$chr(32),-) %time03 !writeini " $+ $scriptdir $+ 10times.ini" TOPT04 $replace($mta.race($1),$chr(32),-) %time04 !writeini " $+ $scriptdir $+ 10times.ini" TOPT05 $replace($mta.race($1),$chr(32),-) %time05 !writeini " $+ $scriptdir $+ 10times.ini" TOPT06 $replace($mta.race($1),$chr(32),-) %time06 !writeini " $+ $scriptdir $+ 10times.ini" TOPT07 $replace($mta.race($1),$chr(32),-) %time07 !writeini " $+ $scriptdir $+ 10times.ini" TOPT08 $replace($mta.race($1),$chr(32),-) %time08 !writeini " $+ $scriptdir $+ 10times.ini" TOPT09 $replace($mta.race($1),$chr(32),-) %time09 !writeini " $+ $scriptdir $+ 10times.ini" TOPT10 $replace($mta.race($1),$chr(32),-) %time10 !writeini " $+ $scriptdir $+ 10times.ini" NICK01 $replace($mta.race($1),$chr(32),-) %nick01 !writeini " $+ $scriptdir $+ 10times.ini" NICK02 $replace($mta.race($1),$chr(32),-) %nick02 !writeini " $+ $scriptdir $+ 10times.ini" NICK03 $replace($mta.race($1),$chr(32),-) %nick03 !writeini " $+ $scriptdir $+ 10times.ini" NICK04 $replace($mta.race($1),$chr(32),-) %nick04 !writeini " $+ $scriptdir $+ 10times.ini" NICK05 $replace($mta.race($1),$chr(32),-) %nick05 !writeini " $+ $scriptdir $+ 10times.ini" NICK06 $replace($mta.race($1),$chr(32),-) %nick06 !writeini " $+ $scriptdir $+ 10times.ini" NICK07 $replace($mta.race($1),$chr(32),-) %nick07 !writeini " $+ $scriptdir $+ 10times.ini" NICK08 $replace($mta.race($1),$chr(32),-) %nick08 !writeini " $+ $scriptdir $+ 10times.ini" NICK09 $replace($mta.race($1),$chr(32),-) %nick09 !writeini " $+ $scriptdir $+ 10times.ini" NICK10 $replace($mta.race($1),$chr(32),-) %nick10 }
  3. can you only tell mi what this function return (if I wrote this good): var %number = $findtok(%nick02 %nick03 %nick04 %nick05 %nick06 %nick07 %nick08 %nick09 %nick10,%nick01,1,32) I want to have position of the same nick as for exp. %nick01
  4. 2paq

    Name Kick

    It is possible to creation script that kick someone with to short nick? For example kick player with nick: a because you can't kick someone with that nick if he cheating ... you write: !kick a and consol kick someone who has "a" in nick ...
  5. 2paq

    MTA automessages.

    !.timer n t n - how many time t - time / interval
  6. var %number = $findtok(%nick02 %nick03 %nick04 %nick05 %nick06 %nick07 %nick08 %nick09 %nick10,%nick01,1,32) what return this function?? is something wrong in my script?? PS. Sorry but I cant wrote this all in one post!!
  7. on *:SIGNAL:mta.startrace: { ;///////this script is for erase double rekord/////// ;--------------------------------------------------- ;read nick's and time's from time var %nick01 = $iif($readini($scriptdir $+ 10times.ini,NICK01,$mta.nick($1,$2)),$v1,n/a) var %nick02 = $iif($readini($scriptdir $+ 10times.ini,NICK02,$mta.nick($1,$2)),$v1,n/a) var %nick03 = $iif($readini($scriptdir $+ 10times.ini,NICK03,$mta.nick($1,$2)),$v1,n/a) var %nick04 = $iif($readini($scriptdir $+ 10times.ini,NICK04,$mta.nick($1,$2)),$v1,n/a) var %nick05 = $iif($readini($scriptdir $+ 10times.ini,NICK05,$mta.nick($1,$2)),$v1,n/a) var %nick06 = $iif($readini($scriptdir $+ 10times.ini,NICK06,$mta.nick($1,$2)),$v1,n/a) var %nick07 = $iif($readini($scriptdir $+ 10times.ini,NICK07,$mta.nick($1,$2)),$v1,n/a) var %nick08 = $iif($readini($scriptdir $+ 10times.ini,NICK08,$mta.nick($1,$2)),$v1,n/a) var %nick09 = $iif($readini($scriptdir $+ 10times.ini,NICK09,$mta.nick($1,$2)),$v1,n/a) var %nick10 = $iif($readini($scriptdir $+ 10times.ini,NICK10,$mta.nick($1,$2)),$v1,n/a) var %time01 = $iif($readini($scriptdir $+ 10times.ini,TOPT01,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time02 = $iif($readini($scriptdir $+ 10times.ini,TOPT02,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time03 = $iif($readini($scriptdir $+ 10times.ini,TOPT03,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time04 = $iif($readini($scriptdir $+ 10times.ini,TOPT04,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time05 = $iif($readini($scriptdir $+ 10times.ini,TOPT05,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time06 = $iif($readini($scriptdir $+ 10times.ini,TOPT06,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time07 = $iif($readini($scriptdir $+ 10times.ini,TOPT07,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time08 = $iif($readini($scriptdir $+ 10times.ini,TOPT08,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time09 = $iif($readini($scriptdir $+ 10times.ini,TOPT09,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time10 = $iif($readini($scriptdir $+ 10times.ini,TOPT10,$replace($mta.race($1),$chr(32),-)),$v1,-1) ;---------------------------------------------------- ;find the same nick's (double), return the number of nick wich is the same as key nick if (%time01 > 0) { var %number = $findtok(%nick02 %nick03 %nick04 %nick05 %nick06 %nick07 %nick08 %nick09 %nick10,%nick01,1,32) find.by.number } if (%time02 > 0) { var %number = $findtok(%nick03 %nick04 %nick05 %nick06 %nick07 %nick08 %nick09 %nick10,%nick02,1,32) %number = %number + 1 find.by.number } if (%time03 > 0) { var %number = $findtok(%nick04 %nick05 %nick06 %nick07 %nick08 %nick09 %nick10,%nick03,1,32) %number = %number + 2 find.by.number } if (%time04 > 0) { var %number = $findtok(%nick05 %nick06 %nick07 %nick08 %nick09 %nick10,%nick04,1,32) %number = %number + 3 find.by.number } if (%time05 > 0) { var %number = $findtok(%nick06 %nick07 %nick08 %nick09 %nick10,%nick05,1,32) %number = %number + 4 find.by.number } if (%time06 > 0) { var %number = $findtok(%nick07 %nick08 %nick09 %nick10,%nick06,1,32) %number = %number + 5 find.by.number } if (%time07 > 0) { var %number = $findtok(%nick08 %nick09 %nick10,%nick07,1,32) %number = %number + 6 find.by.number } if (%time08 > 0) { var %number = $findtok(%nick09 %nick10,%nick08,1,32) %number = %number + 7 find.by.number } if ((%time09 > 0) && (%nick10 == %nick09)) from.10 ;----------------------------------------------------- ;this algorithm say where is the next step alias find.by.number { if (%number == 1) from.2 elseif (%number == 2) from.3 elseif (%number == 3) from.4 elseif (%number == 4) from.5 elseif (%number == 5) from.6 elseif (%number == 6) from.7 elseif (%number == 7) from.8 elseif (%number == from.9 } ;----------------------------------------------------- ;this put up the nick from position where is the double nick alias from.2 { %nick02 = %nick03 %nick03 = %nick04 %nick04 = %nick05 %nick05 = %nick06 %nick06 = %nick07 %nick07 = %nick08 %nick08 = %nick09 %nick09 = %nick10 %nick10 = n/a %time02 = %time03 %time03 = %time04 %time04 = %time05 %time05 = %time06 %time06 = %time07 %time07 = %time08 %time08 = %time09 %time09 = %time10 %time10 = -1 } alias from.3 { %nick03 = %nick04 %nick04 = %nick05 %nick05 = %nick06 %nick06 = %nick07 %nick07 = %nick08 %nick08 = %nick09 %nick09 = %nick10 %nick10 = n/a %time03 = %time04 %time04 = %time05 %time05 = %time06 %time06 = %time07 %time07 = %time08 %time08 = %time09 %time09 = %time10 %time10 = -1 } alias from.4 { %nick04 = %nick05 %nick05 = %nick06 %nick06 = %nick07 %nick07 = %nick08 %nick08 = %nick09 %nick09 = %nick10 %nick10 = n/a %time04 = %time05 %time05 = %time06 %time06 = %time07 %time07 = %time08 %time08 = %time09 %time09 = %time10 %time10 = -1 } alias from.5 { %nick05 = %nick06 %nick06 = %nick07 %nick07 = %nick08 %nick08 = %nick09 %nick09 = %nick10 %nick10 = n/a %time05 = %time06 %time06 = %time07 %time07 = %time08 %time08 = %time09 %time09 = %time10 %time10 = -1 } alias from.6 { %nick06 = %nick07 %nick07 = %nick08 %nick08 = %nick09 %nick09 = %nick10 %nick10 = n/a %time06 = %time07 %time07 = %time08 %time08 = %time09 %time09 = %time10 %time10 = -1 } alias from.7 { %nick07 = %nick08 %nick08 = %nick09 %nick09 = %nick10 %nick10 = n/a %time07 = %time08 %time08 = %time09 %time09 = %time10 %time10 = -1 } alias from.8 { %nick08 = %nick09 %nick09 = %nick10 %nick10 = n/a %time08 = %time09 %time09 = %time10 %time10 = -1 } alias from.9 { %nick09 = %nick10 %nick10 = n/a %time09 = %time10 %time10 = -1 } alias from.10 { %nick10 = n/a %time10 = -1 } ;----------------------------------------------------- ;write to file !writeini " $+ $scriptdir $+ 10times.ini" TOPT01 $replace($mta.race($1),$chr(32),-) %time01 !writeini " $+ $scriptdir $+ 10times.ini" TOPT02 $replace($mta.race($1),$chr(32),-) %time02 !writeini " $+ $scriptdir $+ 10times.ini" TOPT03 $replace($mta.race($1),$chr(32),-) %time03 !writeini " $+ $scriptdir $+ 10times.ini" TOPT04 $replace($mta.race($1),$chr(32),-) %time04 !writeini " $+ $scriptdir $+ 10times.ini" TOPT05 $replace($mta.race($1),$chr(32),-) %time05 !writeini " $+ $scriptdir $+ 10times.ini" TOPT06 $replace($mta.race($1),$chr(32),-) %time06 !writeini " $+ $scriptdir $+ 10times.ini" TOPT07 $replace($mta.race($1),$chr(32),-) %time07 !writeini " $+ $scriptdir $+ 10times.ini" TOPT08 $replace($mta.race($1),$chr(32),-) %time08 !writeini " $+ $scriptdir $+ 10times.ini" TOPT09 $replace($mta.race($1),$chr(32),-) %time09 !writeini " $+ $scriptdir $+ 10times.ini" TOPT10 $replace($mta.race($1),$chr(32),-) %time10 !writeini " $+ $scriptdir $+ 10times.ini" NICK01 $replace($mta.race($1),$chr(32),-) %nick01 !writeini " $+ $scriptdir $+ 10times.ini" NICK02 $replace($mta.race($1),$chr(32),-) %nick02 !writeini " $+ $scriptdir $+ 10times.ini" NICK03 $replace($mta.race($1),$chr(32),-) %nick03 !writeini " $+ $scriptdir $+ 10times.ini" NICK04 $replace($mta.race($1),$chr(32),-) %nick04 !writeini " $+ $scriptdir $+ 10times.ini" NICK05 $replace($mta.race($1),$chr(32),-) %nick05 !writeini " $+ $scriptdir $+ 10times.ini" NICK06 $replace($mta.race($1),$chr(32),-) %nick06 !writeini " $+ $scriptdir $+ 10times.ini" NICK07 $replace($mta.race($1),$chr(32),-) %nick07 !writeini " $+ $scriptdir $+ 10times.ini" NICK08 $replace($mta.race($1),$chr(32),-) %nick08 !writeini " $+ $scriptdir $+ 10times.ini" NICK09 $replace($mta.race($1),$chr(32),-) %nick09 !writeini " $+ $scriptdir $+ 10times.ini" NICK10 $replace($mta.race($1),$chr(32),-) %nick10 }
  8. and it working but that script write for example: Top time's on map 2paqDRIFT 1. [2RT]acp___(PL) - 6865756754 2. Leito.PL - 67565654 3. Leito.PL - 9098908 4. [2RT]Bodzio.PL - 9090909 5. Leito.PL - 787878 etc. double rekord for one player - I don't wont that!! ... and I wrote this: Edit: I find enother bug: exp.1 step1. - ok Top time's on map 2paqDRIFT 1. [2RT]acp___(PL) - 6865756754 2. n/a - n/a 3. n/a - n/a exp.2. step.2 - bug Top time's on map 2paqDRIFT 1. n/a - 6865756754 ;nick ==> n/a ?? time - ok 2. Leito.PL - 9090909 3. n/a - n/a exp.3. step.3 - bug Top time's on map 2paqDRIFT 1. n/a - 6865756754 2. [2RT]Bodzio.PL - 67565654 3. n/a - 9090909 ;nick ==> n/a ?? time - ok
  9. I do this: on *:SIGNAL:mta.finish: { var %nick01 = $iif($readini($scriptdir $+ 10times.ini,NICK01,$mta.nick($1,$2)),$v1,n/a) var %nick02 = $iif($readini($scriptdir $+ 10times.ini,NICK02,$mta.nick($1,$2)),$v1,n/a) var %nick03 = $iif($readini($scriptdir $+ 10times.ini,NICK03,$mta.nick($1,$2)),$v1,n/a) var %nick04 = $iif($readini($scriptdir $+ 10times.ini,NICK04,$mta.nick($1,$2)),$v1,n/a) var %nick05 = $iif($readini($scriptdir $+ 10times.ini,NICK05,$mta.nick($1,$2)),$v1,n/a) var %nick06 = $iif($readini($scriptdir $+ 10times.ini,NICK06,$mta.nick($1,$2)),$v1,n/a) var %nick07 = $iif($readini($scriptdir $+ 10times.ini,NICK07,$mta.nick($1,$2)),$v1,n/a) var %nick08 = $iif($readini($scriptdir $+ 10times.ini,NICK08,$mta.nick($1,$2)),$v1,n/a) var %nick09 = $iif($readini($scriptdir $+ 10times.ini,NICK09,$mta.nick($1,$2)),$v1,n/a) var %nick10 = $iif($readini($scriptdir $+ 10times.ini,NICK10,$mta.nick($1,$2)),$v1,n/a) var %time01 = $iif($readini($scriptdir $+ 10times.ini,TOPT01,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time02 = $iif($readini($scriptdir $+ 10times.ini,TOPT02,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time03 = $iif($readini($scriptdir $+ 10times.ini,TOPT03,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time04 = $iif($readini($scriptdir $+ 10times.ini,TOPT04,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time05 = $iif($readini($scriptdir $+ 10times.ini,TOPT05,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time06 = $iif($readini($scriptdir $+ 10times.ini,TOPT06,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time07 = $iif($readini($scriptdir $+ 10times.ini,TOPT07,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time08 = $iif($readini($scriptdir $+ 10times.ini,TOPT08,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time09 = $iif($readini($scriptdir $+ 10times.ini,TOPT09,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time10 = $iif($readini($scriptdir $+ 10times.ini,TOPT10,$replace($mta.race($1),$chr(32),-)),$v1,-1) if (%time01 == -1) { %time01 = $mta.time($1,$2) %nick01 = $mta.nick($1,$2) } elseif ($mta.time($1,$2) <= %time01) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = %time04 %time04 = %time03 %time03 = %time02 %time02 = %time01 %time01 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = %nick04 %nick04 = %nick03 %nick03 = %nick02 %nick02 = %nick01 %nick01 = $mta.nick($1,$2) } elseif ((%time02 == -1) && ($mta.nick($1,$2) != %nick01)) { %time02 = $mta.time($1,$2) %nick02 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) end race with the second time! } elseif (($mta.time($1,$2) <= %time02) && ($mta.nick($1,$2) != %nick01)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = %time04 %time04 = %time03 %time03 = %time02 %time02 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = %nick04 %nick04 = %nick03 %nick03 = %nick02 %nick02 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) beat the second time! } elseif ((%time03 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02)) { %time03 = $mta.time($1,$2) %nick03 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) end race with the third time! } elseif (($mta.time($1,$2) <= %time03) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = %time04 %time04 = %time03 %time03 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = %nick04 %nick04 = %nick03 %nick03 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) beat the third time! } elseif ((%time04 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03)) { %time04 = $mta.time($1,$2) %nick04 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) end race with the forth time! } elseif (($mta.time($1,$2) <= %time04) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = %time04 %time04 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = %nick04 %nick04 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) beat the forth time! } elseif ((%time05 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04)) { %time05 = $mta.time($1,$2) %nick05 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) end race with the fifth time! } elseif (($mta.time($1,$2) <= %time05) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = %time05 %time05 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = %nick05 %nick05 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) beat the fifth time! } elseif ((%time06 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05)) { %time06 = $mta.time($1,$2) %nick06 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) end race with the sixth time! } elseif (($mta.time($1,$2) <= %time06) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = %time06 %time06 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = %nick06 %nick06 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) beat the sixth time! } elseif ((%time07 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06)) { %time07 = $mta.time($1,$2) %nick07 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) end race with the seventh time! } elseif (($mta.time($1,$2) <= %time07) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06)) { %time10 = %time09 %time09 = %time08 %time08 = %time07 %time07 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = %nick07 %nick07 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) beat the seventh time! } elseif ((%time08 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07)) { %time08 = $mta.time($1,$2) %nick08 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) end race with the eighth time! } elseif (($mta.time($1,$2) <= %time08) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07)) { %time10 = %time09 %time09 = %time08 %time08 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = %nick08 %nick08 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) beat the eighth time! } elseif ((%time09 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07) && ($mta.nick($1,$2) != %nick08)) { %time09 = $mta.time($1,$2) %nick09 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) end race with the ninth time! } elseif (($mta.time($1,$2) <= %time09) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07) && ($mta.nick($1,$2) != %nick08)) { %time10 = %time09 %time09 = $mta.time($1,$2) %nick10 = %nick09 %nick09 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) beat the ninth time! } elseif ((%time10 == -1) && ($mta.nick($1,$2) != %nick01) && ($mta.nick($1,$2) != %nick02) && ($mta.nick($1,$2) != %nick03) && ($mta.nick($1,$2) != %nick04) && ($mta.nick($1,$2) != %nick05) && ($mta.nick($1,$2) != %nick06) && ($mta.nick($1,$2) != %nick07) && ($mta.nick($1,$2) != %nick08) && ($mta.nick($1,$2) != %nick09)) { %time10 = $mta.time($1,$2) %nick10 = $mta.nick($1,$2) mta.text $1 $mta.nick($1,$2) end race with the tenth time! } elseif (($mta.time($1,$2) 0) { var %time01mins = $int($calc(%time01 / 60000)) var %time01sec = $int($calc((%time01 - (%time01mins * 60000)) / 1000)) var %time01ms = $calc((%time01 - (%time01mins * 60000)) - (%time01sec * 1000)) } elseif (%time01 <0> 0) { var %time02mins = $int($calc(%time02 / 60000)) var %time02sec = $int($calc((%time02 - (%time02mins * 60000)) / 1000)) var %time02ms = $calc((%time02 - (%time02mins * 60000)) - (%time02sec * 1000)) } elseif (%time02 <0> 0) { var %time03mins = $int($calc(%time03 / 60000)) var %time03sec = $int($calc((%time03 - (%time03mins * 60000)) / 1000)) var %time03ms = $calc((%time03 - (%time03mins * 60000)) - (%time03sec * 1000)) } elseif (%time03 <= 0) var %time03mins = --, %time03sec = --, %time03ms = -- mta.text $1 Top time's on map $mta.race($1) mta.text $1 1. $iif($readini($scriptdir $+ 10times.ini,NICK01,$replace($mta.race($1),$chr(32),-)),$v1,N/A) - %time01mins min %time01sec sec %time01ms ms mta.text $1 2. $iif($readini($scriptdir $+ 10times.ini,NICK02,$replace($mta.race($1),$chr(32),-)),$v1,N/A) - %time02mins min %time02sec sec %time02ms ms mta.text $1 3. $iif($readini($scriptdir $+ 10times.ini,NICK03,$replace($mta.race($1),$chr(32),-)),$v1,N/A) - %time03mins min %time03sec sec %time03ms ms if ($iif($readini($scriptdir $+ 10times.ini,TOPT04,$replace($mta.race($1),$chr(32),-)),$v1,0) > 0) { var %time04 = $iif($readini($scriptdir $+ 10times.ini,TOPT04,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time05 = $iif($readini($scriptdir $+ 10times.ini,TOPT05,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time06 = $iif($readini($scriptdir $+ 10times.ini,TOPT06,$replace($mta.race($1),$chr(32),-)),$v1,-1) if (%time04 > 0) { var %time04mins = $int($calc(%time04 / 60000)) var %time04sec = $int($calc((%time04 - (%time04mins * 60000)) / 1000)) var %time04ms = $calc((%time04 - (%time04mins * 60000)) - (%time04sec * 1000)) } elseif (%time04 <0> 0) { var %time05mins = $int($calc(%time05 / 60000)) var %time05sec = $int($calc((%time05 - (%time05mins * 60000)) / 1000)) var %time05ms = $calc((%time05 - (%time05mins * 60000)) - (%time05sec * 1000)) } elseif (%time05 <0> 0) { var %time06mins = $int($calc(%time06 / 60000)) var %time06sec = $int($calc((%time06 - (%time06mins * 60000)) / 1000)) var %time06ms = $calc((%time06 - (%time06mins * 60000)) - (%time06sec * 1000)) } elseif (%time06 <0> 0) { var %time07 = $iif($readini($scriptdir $+ 10times.ini,TOPT07,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time08 = $iif($readini($scriptdir $+ 10times.ini,TOPT08,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time09 = $iif($readini($scriptdir $+ 10times.ini,TOPT09,$replace($mta.race($1),$chr(32),-)),$v1,-1) var %time10 = $iif($readini($scriptdir $+ 10times.ini,TOPT10,$replace($mta.race($1),$chr(32),-)),$v1,-1) if (%time07 > 0) { var %time07mins = $int($calc(%time07 / 60000)) var %time07sec = $int($calc((%time07 - (%time07mins * 60000)) / 1000)) var %time07ms = $calc((%time07 - (%time07mins * 60000)) - (%time07sec * 1000)) } elseif (%time07 <0> 0) { var %time08mins = $int($calc(%time08 / 60000)) var %time08sec = $int($calc((%time08 - (%time08mins * 60000)) / 1000)) var %time08ms = $calc((%time08 - (%time08mins * 60000)) - (%time08sec * 1000)) } elseif (%time08 <0> 0) { var %time09mins = $int($calc(%time09 / 60000)) var %time09sec = $int($calc((%time09 - (%time09mins * 60000)) / 1000)) var %time09ms = $calc((%time09 - (%time09mins * 60000)) - (%time09sec * 1000)) } elseif (%time09 <0> 0) { var %time10mins = $int($calc(%time10 / 60000)) var %time10sec = $int($calc((%time10 - (%time10mins * 60000)) / 1000)) var %time10ms = $calc((%time10 - (%time10mins * 60000)) - (%time10sec * 1000)) } elseif (%time10 <= 0) var %time10mins = --, %time10sec = --, %time10ms = -- !.timer.10.10 1 10 mta.pm $1 $2 7. $iif($readini($scriptdir $+ 10times.ini,NICK07,$replace($mta.race($1),$chr(32),-)),$v1,N/A) - %time07mins min %time07sec sec %time07ms ms !.timer.10.12 1 12 mta.pm $1 $2 8. $iif($readini($scriptdir $+ 10times.ini,NICK08,$replace($mta.race($1),$chr(32),-)),$v1,N/A) - %time08mins min %time08sec sec %time08ms ms !.timer.10.14 1 14 mta.pm $1 $2 9. $iif($readini($scriptdir $+ 10times.ini,NICK09,$replace($mta.race($1),$chr(32),-)),$v1,N/A) - %time09mins min %time09sec sec %time09ms ms !.timer.10.16 1 16 mta.pm $1 $2 10. $iif($readini($scriptdir $+ 10times.ini,NICK10,$replace($mta.race($1),$chr(32),-)),$v1,N/A) - %time10mins min %time10sec sec %time10ms ms } } }
  10. Haw hard is to change this??
  11. Wait for end race - more than 30 second ----------------------------------------------------------- On my server everyone is very friendly, we have points statistics and sometimes the player in 1st place will wait before finish line (for example on long maps which are more than 15 minutes, becouse these maps are worth more points) so other players can get also some points. Nobody would have to wait if the time was more than 30 seconds after the first players passes the finnish. I would like to set this time to more than 30 seconds, is it possible to change it to that easily? =============================================== You won the race - you are last player alive ----------------------------------------------------------- "You won the race - you are last player alive" this is when: - only one player live - someone (one or more player) is dead (or wait to respown) - someone left the serwer Someone can by last but alive and win, but if not this bug someone alse can by win!!
  12. "You won the race - you are last player alive" this is when: - only one player live - someone (one or more player) is dead (or wait to respown) - someone left the serwer Someone can by last but alive and win, but if not this bug someone alse can by win!!
  13. On my server everyone are very friendly, we have points statistic and sometime someone wait before finish line (for example on long maps - more then 15 minuts becouse this maps are for more points) for else players that they can get also some points. Nobody must be wait when the time to end race was longer then 30 second. I would like to set this time on 120 seconds, it is pasible to do that in easy way.
  14. 2paq

    User Rank Script

    Isn't problem with calc, but in read from file I find what its wrong, a forgoten change charakters in map name: $replace($mta.race($1),$chr(32),-) Now its working fine!
  15. 2paq

    User Rank Script

    I edited this script for personal requirements and something is wrong sometimes and I don't know what - can you help me? I wonted that this script write to file also number of race - and then I calc the avarge points per race, I do this that: on *:SIGNAL:mta.finish: { if (($mta.rank($1,$2) <8>= 2)) { var %waga = $readini($scriptdir $+ mappoints.ini,POINTS,$mta.race($1)) var %points = $replacex($mta.rank($1,$2),1,10,2,8,3,6,4,5,5,4,6,3,7,2,8,1) var %score = %waga * %points var %position = $replace($mta.rank($1,$2),1,first,2,second,3,third,4,fourth,5,fifth,6,sixth,7,seventh,8,eight) mta.text $1 $mta.nick($1,$2) came %position $+ and earned %score points! !writeini " $+ $scriptdir $+ points.ini" POINTS $mta.nick($1,$2) $iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$calc($v1 + %score),%score) !writeini " $+ $scriptdir $+ points.ini" RACE $mta.nick($1,$2) $iif($readini($scriptdir $+ points.ini,RACE,$mta.nick($1,$2)),$calc($v1 + 1),1) } elseif ($mta.server($1).players == 1) { var %wagalonly = $readini($scriptdir $+ mappoints.ini,LONLY,$mta.race($1)) var %score = %wagalonly * 2 mta.text $1 Playing alone earned you %score points! !writeini " $+ $scriptdir $+ points.ini" POINTS $mta.nick($1,$2) $iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$calc($v1 + %score),%score) !writeini " $+ $scriptdir $+ points.ini" RACE $mta.nick($1,$2) $iif($readini($scriptdir $+ points.ini,RACE,$mta.nick($1,$2)),$calc($v1 + 1),1) } } Sometime script do something wrong! For example: in file points.ini [POINTS] Leito.PL=120 kornik_pl=24 ~2RT~acp___(PL)=50 Maciek~pl~=8 Wojak~PL~=57 47=49 Gang$tah{NL055}=Noon * 8 [RACE] Leito.PL=18 kornik_pl=3 ~2RT~acp___(PL)=4 Maciek~pl~=1 Wojak~PL~=6 47=3 Gang$tah{NL055}=1 Gang$tah{NL055}=Noon * 8 sometime don't wont to write update points in file To executed I use this commend: on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getid($1,$4)),$2) var %b = $iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$v1,0) var %c = $iif($readini($scriptdir $+ points.ini,RACE,$mta.nick($1,$2)),$v1,1) var %d = %b / %c if ($3 == !points) { if (%a == -1) mta.text $1 Error - Absent ID else mta.text $1 $mta.nick($1,%a) has $iif($readini($scriptdir $+ points.ini,POINTS,$mta.nick($1,$2)),$v1,no) points in $iif($readini($scriptdir $+ points.ini,RACE,$mta.nick($1,$2)),$v1,no) race. mta.text $1 Average $round(%d,2) points per race. } } I use also file with the waga of the map: mappoints.ini [POINTS] Fast-Ways=1 sc.airkart=1 ~TR~Nascar=1 Land_Sea_and_Air=2 Holy-Harley=1 PP=1 Blow-the-Dam=1 Taxi-Drver=1 ~TR~FlatBed=2 Errand=1 DROPOUT2=1 ~TR~LowrideRace=1 Bobcat-BLASTAround=1 Dock-Bikes=1 Boating-BLASTAround=1 A-Walk-in-the-Park=1 Rural-Run=1 SFsunrise300=1 [LONLY] Fast-Ways=1 sc.airkart=1 ~TR~Nascar=1 Land_Sea_and_Air=2 Holy-Harley=1 PP=1 Blow-the-Dam=1 Taxi-Drver=1 ~TR~FlatBed=3 Errand=1 DROPOUT2=1 ~TR~LowrideRace=2 Bobcat-BLASTAround=1 Dock-Bikes=1 Boating-BLASTAround=1 A-Walk-in-the-Park=1 Rural-Run=1 SFsunrise300=1 I save this to file points.mrc I use also: mta.dialog and mtagus.mrc PLEASE HELP ME
×
×
  • Create New...