(OVG)Santi Posted February 14, 2007 Share Posted February 14, 2007 on *:SIGNAL:mta.endrace:{ var %b = 1 while (%b = 2) { if ($mta.dead($1,%b) == $false) { mta.text $1 $mta.nick($1,%b) is the winner of the map $$mta.race($1) and win one point! !writeini -n $+(",$mta.dir,winmaps.ini") $mta.nick($1,%b) mapsnors $calc($readini($mta.dir $+ winmaps.ini,$mta.nick($1,%b),mapsnors) + 1 } } } } } !inc %b } here is my scrip and is untested but i things work (mmmmmmmm) i am not sure but post here for see if someone can see and sayme if work Link to comment
Scooby Posted February 14, 2007 Share Posted February 14, 2007 on *:SIGNAL:mta.endrace:{ var %b = 1 while (%b = 2) { if ($mta.dead($1,%b) == $false) { mta.text $1 $mta.nick($1,%b) is the winner of the map $$mta.race($1) and win one point! !writeini -n $+(",$mta.dir,winmaps.ini") $mta.nick($1,%b) mapsnors $calc($readini($mta.dir $+ winmaps.ini,$mta.nick($1,%b),mapsnors) + 1 } } } } } !inc %b } here is my scrip and is untested but i things work (mmmmmmmm) i am not sure but post here for see if someone can see and sayme if work I already told u there is no mta.endrace. And no, this wont work. Details on how to do this has already been covered in another section on these forums. look here> http://forum.mtavc.com/viewtopic.php?t=18786 Link to comment
SanZoR.Sr Posted February 15, 2007 Share Posted February 15, 2007 This ine is tested, and should works fine. I use this one on my server. alias mta.end { if (%cplayers == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 $mta.nick($1,%a) is winner, and gets 1 more point! mta.freeze $1 %a !writeini -n " $+ $scriptdir $+ stats.ini" WINS $mta.nick($1,%a) $gus.add($gus.wins($1,%a),1) !halt } !inc %a } } } on *:SIGNAL:mta.startrace: { set %cplayers $mta.server($1).players } on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 } This one add one more wins in wins list, no points. But whit lil fix u can get it workin whit points. Link to comment
SanZoR.Sr Posted February 15, 2007 Share Posted February 15, 2007 This one is tested, and should works fine. I use this one on my server. alias mta.end { if (%cplayers == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 $mta.nick($1,%a) is winner, and gets 1 more point! mta.freeze $1 %a !writeini -n " $+ $scriptdir $+ stats.ini" WINS $mta.nick($1,%a) $gus.add($gus.wins($1,%a),1) !halt } !inc %a } } } on *:SIGNAL:mta.startrace: { set %cplayers $mta.server($1).players } on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 } This one add one more wins in wins list, no points. But whit lil fix u can get it workin whit points. Ps. This is in Ywa:s post, so read first other ppl posts, before you make own. Link to comment
BetaDevil Posted February 15, 2007 Share Posted February 15, 2007 did sum1 test that script, coz I still don't know it's working for 100%... and if it's not working you have to ask XE-Clan for a good one . Link to comment
Scooby Posted February 15, 2007 Share Posted February 15, 2007 did sum1 test that script, coz I still don't know it's working for 100%... and if it's not working you have to ask XE-Clan for a good one . I think he said he tested it. it looks ok to me (noticed a missing bracket in it tho ), just doesnt work well with both race maps and DM maps, so ud have to add a checker if u run a server with both map types. on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2)) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } Link to comment
BetaDevil Posted February 15, 2007 Share Posted February 15, 2007 I noted the bracket typo, but fixed it in the other topic. You can add [DD] at the start of each map to check if it's DD or not... Link to comment
lil Toady Posted February 15, 2007 Share Posted February 15, 2007 "DD or not DD, that is the question"! Link to comment
SanZoR.Sr Posted February 16, 2007 Share Posted February 16, 2007 Yes, that one is tested, and i use it in my server (DD & FUN) That script gives one more wins for some players. If not, thats coz MTA cannot found winner players nick. But if MTA found it, that works 100%. Tip: Some special letters are buggy ($/()<>& etc) And script wont give him one more wins. I try fix it, but i think problem is in MTA:MA. This is best DD script what is in multi theft auto forums, so search is just time wasting. So... This one works usually, thats all what i can say whit my bad eng, lol... - PXL And if you have DD & Racing server, that script is really buggy. It freezes and gives one more wins for some players, but if u just unfreeze him, and it doesnt freezes any1 anymore during that map. And in only DD server that is good script. Link to comment
SanZoR.Sr Posted February 16, 2007 Share Posted February 16, 2007 did sum1 test that script, coz I still don't know it's working for 100%... and if it's not working you have to ask XE-Clan for a good one . Lol, im in XE clan. Link to comment
BetaDevil Posted February 16, 2007 Share Posted February 16, 2007 well, it won't work with % and $ coz that are vars and commands in mIRC... that's why alias-system doesn't save them . Link to comment
lil Toady Posted February 16, 2007 Share Posted February 16, 2007 did sum1 test that script, coz I still don't know it's working for 100%... and if it's not working you have to ask XE-Clan for a good one . Lol, im in XE clan. you are not Link to comment
(OVG)Santi Posted February 18, 2007 Author Share Posted February 18, 2007 i was playing wicth my friend, in total we was 4. in mta sa when the first in die recibe rank 4 the second in die recibe rank 3 the 3º in die recibe rank 2 and the last id die recibe rank 1 this is a rule and i can make a scrips based in this or this is luck???? see in your servers thx! Link to comment
(OVG)Santi Posted February 22, 2007 Author Share Posted February 22, 2007 i am trying to say for example players == 4 (this is my case) the 1º in die say in mta.mrc by aeron, have rank 4 the 2º in die say have rank 3 the 3º in die say have rank 2 (now, the life player is the win) i am tring to say when you die you ricibe a rank or in my case was only luck???? i am tring to say put on mta.signal of death if mta.rank($1,$2) == 2 the player life is the winner this is correct. understant??? Link to comment
Recommended Posts