HouseMD Posted May 27, 2007 Share Posted May 27, 2007 U must have all the maps of the server you are scripting for it to work! alias detect.rs { unset %rs var %a = 0,%place = while (%a <= $lines(%place $+ $mta.race($1) $+ .map)) { if (none isin $read(%place $+ $mta.race($1) $+ .map, %a)) set %rs $calc(%rs + 1) if (%a == 40) var %a = $lines(%place $+ $mta.race($1) $+ .map) !inc %a } if (%rs == 1) !writeini -n rs.ini maps $replace($mta.race($1),$chr(32),-) Off else !writeini -n rs.ini maps $replace($mta.race($1),$chr(32),-) On } on *:SIGNAL:mta.startrace: { Detect.rs $1- mta.text $1 Respawn: $readini(rs.ini,maps,$replace($mta.race($1),$chr(32),-)) } Make sure u replace where it says %place on top, with the place u where u put ur maps (Eg %place = D:\Maps\) and u must have the "\" at the end, otherwise it won't work! Link to comment
JB_frozen Posted May 27, 2007 Share Posted May 27, 2007 /me hands housemd an ice cold beer Link to comment
HouseMD Posted May 28, 2007 Author Share Posted May 28, 2007 /me thanks JB_frozen for the ice cold beer and drinks it with delight Link to comment
SanZoR Posted May 28, 2007 Share Posted May 28, 2007 U must have all the maps of the server you are scripting for it to work! alias detect.rs { unset %rs var %a = 0,%place = while (%a <= $lines(%place $+ $mta.race($1) $+ .map)) { if (none isin $read(%place $+ $mta.race($1) $+ .map, %a)) set %rs $calc(%rs + 1) if (%a == 40) var %a = $lines(%place $+ $mta.race($1) $+ .map) !inc %a } if (%rs == 1) !writeini -n rs.ini maps $replace($mta.race($1),$chr(32),-) Off else !writeini -n rs.ini maps $replace($mta.race($1),$chr(32),-) On } on *:SIGNAL:mta.startrace: { Detect.rs $1- mta.text $1 Respawn: $readini(rs.ini,maps,$replace($mta.race($1),$chr(32),-)) } Make sure u replace where it says %place on top, with the place u where u put ur maps (Eg %place = D:\Maps\) and u must have the "\" at the end, otherwise it won't work! + !respawn command what shows is respawn on/off alias detect.rs { unset %rs var %a = 0,%place = while (%a <= $lines(%place $+ $mta.race($1) $+ .map)) { if (none isin $read(%place $+ $mta.race($1) $+ .map, %a)) set %rs $calc(%rs + 1) if (%a == 40) var %a = $lines(%place $+ $mta.race($1) $+ .map) !inc %a } if (%rs == 1) !writeini -n rs.ini maps $replace($mta.race($1),$chr(32),-) Off else !writeini -n rs.ini maps $replace($mta.race($1),$chr(32),-) On } on *:SIGNAL:mta.startrace: { Detect.rs $1- mta.text $1 Respawn: $readini(rs.ini,maps,$replace($mta.race($1),$chr(32),-)) } on *:SIGNAL:mta.command: { if ($3 == !respawn) { Detect.rs $1- mta.text $1 $2 /me In $mta.race($1) Respawn is $readini(rs.ini,maps,$replace($mta.race($1),$chr(32),-)) $+ ! } Link to comment
Recommended Posts