Jump to content

Map Overuse Script


DazzaJay

Recommended Posts

seems i found a few more bugs:P

i rewrote parts, try this:

on *:SIGNAL:mta.connect { 
 !.timerremini 0 1800 remstuff $1 
} 
alias remstuff { 
  !remini -n slrtemp.ini played  
   mta.text $1 Disabled Maps Have Been Re-enabled! 
} 
on *:SIGNAL:mta.command { 
  if ($3 == !limit) { 
    if ($mta.level($1,$2) < 4) mta.pm $1 $2 Error: Incorrect Level 
    elseif (!$4) mta.text $1 Current Limit: $slr.limit($1) - Last 30min Usage: $slr.temp($1) 
    elseif ($4 !isnum) mta.pm $1 $2 Error: !limit <amount>     
    else { 
      mta.text $1 $mta.nick($1,$2) Changed $mta.race($1) $+ s Limit From: $slr.limit($1) To $4  
      !writeini -n slrlimit.ini Maplimit $replace($mta.race($1),$chr(32),%) $4  
    } 
  } 
} 
on *:SIGNAL:mta.startrace: { 
  !writeini -n slrtemp.ini played $replace($mta.race($1),$chr(32),%) $calc($slr.temp($1) + 1) 
  if ($slr.temp($1) > $slr.limit($1)) { 
    mta.text $1 Starting A Random Map - Reason: Map Limit Reached, Disabled For 30 mins. 
    mta.startrace $1 $rand(0,$mta.races($1)) 
  } 
} 
alias slr.limit !return $iif($readini(slrlimit.ini,Maplimit,$replace($mta.race($1),$chr(32),%)) == $null,3,$v1) 
alias slr.temp !return $iif($readini(slrtemp.ini,played,$replace($mta.race($1),$chr(32),%)) == $null,0,$v1) 
  

Link to comment
  • 2 weeks later...
  • Recently Browsing   0 members

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