DazzaJay Posted November 14, 2007 Author Share Posted November 14, 2007 well, i changed them 2 parts from iff to iif and now it dosent do that random map thing, it just does thothing. Link to comment
Scooby Posted November 14, 2007 Share Posted November 14, 2007 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
DazzaJay Posted November 14, 2007 Author Share Posted November 14, 2007 Cool, it seems to be working well... just one question, when it reenables the maps, does it reenable every disabled map in one hit? or does it Reenable the maps one at a time? Link to comment
Scooby Posted November 14, 2007 Share Posted November 14, 2007 all in 1 go.. i wouldnt have written it that way, but thats how Bart has done it Link to comment
DazzaJay Posted November 14, 2007 Author Share Posted November 14, 2007 k, all good, i will get a revised ver at a later date that removes the maps in the order and time after they were locked. Link to comment
Scooby Posted November 14, 2007 Share Posted November 14, 2007 ok, well its easily done, but probably quicker just to rewrite it, not that its that big anyway. Link to comment
DazzaJay Posted November 14, 2007 Author Share Posted November 14, 2007 well scooby, if you can some spare time, could you do that plz? Link to comment
DazzaJay Posted November 26, 2007 Author Share Posted November 26, 2007 Dont worry about it anymore, it turns out my team are a bunch of jerks. [PHS] is closed. Link to comment
Recommended Posts