HouseMD Posted February 24, 2007 Share Posted February 24, 2007 I couldn't figure out how to get this to work: if ($3 == !restartmap) mta.startrace $mta.race($1) $+ It starts some other map...instead of the map you are playing... Link to comment
BetaDevil Posted February 24, 2007 Share Posted February 24, 2007 how many maps do you have, the most ppl have to many maps on their server for MTAmA to handle. Link to comment
HouseMD Posted February 25, 2007 Author Share Posted February 25, 2007 umm...right now i have 23 Link to comment
BetaDevil Posted February 25, 2007 Share Posted February 25, 2007 that's not it try: if ($3 == !restartmap) mta.startrace $mta.race($1,$2) Link to comment
HouseMD Posted February 25, 2007 Author Share Posted February 25, 2007 It will not work because i already tried it, it should work like the map command. if ($3 == !map) Mta.text $1 Map Name : mta.race($1) $+ Thats how the changemap should work, or maybe if I change it to work on ID... Link to comment
lil Toady Posted February 25, 2007 Share Posted February 25, 2007 if ($3 == !restartmap) mta.startrace $1 $mta.race($1) ye-ye, i pwn Link to comment
BetaDevil Posted February 25, 2007 Share Posted February 25, 2007 oh lol, I forgot that one Link to comment
HouseMD Posted February 25, 2007 Author Share Posted February 25, 2007 I told you i tried everything, and this was one of them, I have 32 maps now, and it changed to the last map! which was Carbon DD, and keeps changing there! There must be another way Link to comment
Scooby Posted February 26, 2007 Share Posted February 26, 2007 I told you i tried everything, and this was one of them, I have 32 maps now, and it changed to the last map! which was Carbon DD, and keeps changing there! There must be another way if ($3 == !redo) mta.startrace $1 $mta.races($1,$mta.race($1)) Link to comment
HouseMD Posted February 27, 2007 Author Share Posted February 27, 2007 thx Scoob, it works perfect now ^^ btw, Does anyone know how to fix the end count bug eg. When a race has ended and I say !redo, it restarts the map but it keeps counting and initiates the vote Does anyone know how to fix that, 'cause i don't have a clue. Link to comment
Scooby Posted February 27, 2007 Share Posted February 27, 2007 thx Scoob, it works perfect now ^^btw, Does anyone know how to fix the end count bug eg. When a race has ended and I say !redo, it restarts the map but it keeps counting and initiates the vote Does anyone know how to fix that, 'cause i don't have a clue. no, u cant stop it once its started. Just try to remember not to start a new map untill its completely finished counting. Link to comment
Keslertje2005 Posted March 17, 2007 Share Posted March 17, 2007 Is it also possible to start the map at the end of the round? Link to comment
Scooby Posted March 17, 2007 Share Posted March 17, 2007 Is it also possible to start the map at the end of the round? u mean restart it once it ends? if so then yeah theres a few ways u can do this. Link to comment
Keslertje2005 Posted March 17, 2007 Share Posted March 17, 2007 Do you know how this is possible? Link to comment
Scooby Posted March 17, 2007 Share Posted March 17, 2007 Dont u use GUS? If so, its already added. Link to comment
Keslertje2005 Posted March 17, 2007 Share Posted March 17, 2007 I use x16 final... But i can't find a restart mode Link to comment
Scooby Posted March 17, 2007 Share Posted March 17, 2007 I use x16 final... But i can't find a restart mode isnt it !constant i dont use the script so... Link to comment
Keslertje2005 Posted March 17, 2007 Share Posted March 17, 2007 But than it will cycle the map everytime... And I can't fix something that will be almost the same but than 1 cycle Link to comment
BetaDevil Posted March 17, 2007 Share Posted March 17, 2007 on *:SIGNAL:mta.startrace: { ;Parameters: ;$1 = Server ;$2 = Race ID ;$3 = 0/1/2 (success,failed,no players) %remmap = $readini($scriptdir $+ remmap.ini,REMMAPS,$replace($mta.race($1),$chr(32),-)) if (%constant = on && %constantmap != $mta.race($1) && %remmap != 1) mta.startrace $1 %constantmapid unset %constant unset %constantmap unset %constantmapid if (%remmap == 1 && %constant != on) { mta.text $1 Map " $+ $mta.race($1) $+ " has been removed, changing to a random map.. !.timer 1 1 mta.startrace $1 $rand(0,$mta.races($1)) } if ($3 == 0 && %remmap != 1) { set %race $2 set %deaths 0 set %topt 0 set %currentdeaths 0 var %a = $calc($readini($scriptdir $+ mta.stats.ini,n,$mta.races($1,$2),times) + 1),%b = $calc($readini($scriptdir $+ mta.stats.ini,n,ALL,times) + 1) !writeini -n $+(",$scriptdir,mta.stats.ini,") ALL times %b !writeini -n $+(",$scriptdir,mta.stats.ini,") $+(",$mta.races($1,$2),") times %a if ($mta.races($1,$2) != $null) mta.text $1 $mta.races($1,$2) - Top Time: $gus.toptime($1) - By: $gus.topname($1) - Deathlimit: $gus.deathlimit($1,$2) - Played: $+(%a,/,%b) times ( $+ $round($calc(100 / %b * %a),2) $+ % $+ ) set %topt $gus.toptime($1) } if ($readini($scriptdir $+ instructions.ini,INSTRUCTIONS,$replace($mta.races($1,$2),$chr(32),)) != $null && $readini($scriptdir $+ instructions.ini,INSTRUCTIONS,$replace($mta.races($1,$2),$chr(32),)) != default && %remmap != 1) { mta.text $1 $mta.races($1,$2) - Instructions: $readini($scriptdir $+ instructions.ini,INSTRUCTIONS,$replace($mta.races($1,$2),$chr(32),)) } } Link to comment
Recommended Posts