Jump to content

!top 3,!top5 and !top10


deamon137

Recommended Posts

  • 1 month later...

like this?

on *:SIGNAL:mta.command:{
 if ($3 == !top3) {
   var %a = 0,%b = 0,%c = 0,%d,%e = 0,%f,%g = 0,%h
   while (%a  %c) {
       %e = %c
       %f = %d
       %c = %b
       %d = $ini($scriptdir $+ times.ini,TIMES,%a)
     }
     elseif (%b > %e) {
       %g = %e
       %h = %f
       %e = %b
       %f = $ini($scriptdir $+ times.ini,TIMES,%a)
     }
     elseif (%b > %g) {
       %g = %b
       %h = $ini($scriptdir $+ times.ini,TIMES,%a)
     }
     !inc %a
   }
   mta.text $1 Players with top times:
   if (%d) mta.text $1 1: %d with %c time
   if (%f) mta.text $1 2: %f with %e time
   if (%h) mta.text $1 3: %h with %g time
 }
}

Link to comment
  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...