FNdanielNL Posted October 19, 2007 Share Posted October 19, 2007 What signal does mta, mtama give when somebody wins a dd (no respawn) map? i thought this: on *:SIGNAL:mta.win < but dunno it it works, cannot find this anywhere or some of these? on *:SIGNAL:mta.finish on *:SIGNAL:mta.finished on *:SIGNAL:mta.rank hope someone can help me... Link to comment
MB|Lagzilla Posted October 19, 2007 Share Posted October 19, 2007 I have found the on *:SIGNAL:mta.finish siganl to be of no use at all, the other one's you have are wrong.. This is a small script I partly made it is based on a script made by Sanzor...it's not very accurate but it's the best I've manged. If anyone could help with it and make it more accurate that'd be great. ;--------------------- ;-PLAYERCOUNT ALIAS'S- ;--------------------- alias gus.doa !return $iif($readini(gus.doa.ini,DOA,DOA $+ $1),$v1,0) alias gus.end { if ($gus.doa($1) == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 The Winner is: $mta.nick($1,%a) !writeini -n gus.stats.ini WINS $gus.nick($1,%a) $calc($gus.wins($1,%a) + 1) !halt } !inc %a } } } ;--------------------- ;-------SIGNAL'S------ ;--------------------- on *:SIGNAL:mta.connect:{ !writeini -n gus.doa.ini DOA DOA $+ 1 0 } on *:SIGNAL:mta.part: { if ($mta.dead($1,$2) != $null) !writeini -n gus.doa.ini DOA DOA $+ 1 $calc($gus.doa($1) - 1) gus.end $1 $2 } on *:SIGNAL:mta.startrace: { !writeini -n gus.doa.ini DOA DOA $+ $1 $mta.server($1).players } on *:SIGNAL:mta.death: { !writeini -n gus.doa.ini DOA DOA $+ 1 $calc($gus.doa($1) - 1) gus.end $1 $2 } Link to comment
FNdanielNL Posted October 19, 2007 Author Share Posted October 19, 2007 MB|Lagzilla said: I have found the on *:SIGNAL:mta.finish siganl to be of no use at all, the other one's you have are wrong..This is a small script I partly made it is based on a script made by Sanzor...it's not very accurate but it's the best I've manged. If anyone could help with it and make it more accurate that'd be great. " " I just want to know what signale is being send when the last player on a no respawn map has won... Link to comment
MB|Lagzilla Posted October 19, 2007 Share Posted October 19, 2007 It doesn't work for DD! Link to comment
[UVA]Bart Posted October 19, 2007 Share Posted October 19, 2007 are you after it for gus or prs FNdanielNL Link to comment
FNdanielNL Posted October 19, 2007 Author Share Posted October 19, 2007 [SLR]Racer said: are you after it for gus or prs FNdanielNL gus Link to comment
SanZoR Posted October 20, 2007 Share Posted October 20, 2007 alias mta.end { if (%cplayers == 1) { var %a = 0,%b = 0 while (%a <= $mta.server($1).cmax) { if ($readini(alive&dead.ini,INFO,%a == Alive)) { if ($mta.nick($1,%a) != $null) { mta.text $1 $mta.nick($1,%a) has just won $mta.race($1) $+ ! !writeini alive&dead.ini INFO %a DEAD !writeini -n stats.ini WINS $mta.nick($1,%a) $calc($readini(stats.ini,WINS,$mta.nick($1,%a)) + 1) !halt } } !inc %a } } } } on *:SIGNAL:mta.startrace: { var %aa = 0 set %cplayers $mta.server($1).players while (%aa <= $mta.server($1).cmax) { !writeini alive&dead.ini INFO %aa Alive !inc %aa } on *:SIGNAL:mta.endrace: { !.remove alive&dead.ini } on *:SIGNAL:mta.part: { if ($readini(alive&dead.ini,INFO,$2 == Alive)) set %cplayers $calc(%cplayers - 1) !writeini alive&dead.ini INFO $2 DEAD mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) !writeini alive&dead.ini INFO $2 DEAD mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 } More powerful than my old script If writeini's are wrong (I dont remember is wins stored to stats.ini) edit it yourself or give me wins path. Link to comment
[UVA]Bart Posted October 20, 2007 Share Posted October 20, 2007 dude you really dont know ewt lol you got 2 bracket mismatches and your writing the players id to the folder which change! yours but i think fixed now and changed on *:SIGNAL:mta.startrace: { if ($mta.nick($1,$2) != $null) { !writeini -n ad.ini tot total $mta.server($1).players slr.starting $1- } } on *:SIGNAL:mta.part: { if ($readini(ad.ini,ad,$mta.nick($1,$2)) == Alive) { !writeini -n ad.ini tot total $calc($slr.tot($1) - 1) !writeini -n ad.ini ad $mta.nick($1,$2) DEAD if ($slr.tot($1) == 1) mta.end $1- } } on *:SIGNAL:mta.death: { !writeini -n ad.ini tot total $calc($slr.tot($1) - 1) !writeini -n ad.ini ad $mta.nick($1,$2) DEAD if ($slr.tot($1) == 1) mta.end $1- } alias slr.tot !return $readini(ad.ini,tot,total) alias slr.starting { var %a = 0 while (%a <= $mta.server($1).cmax) { !writeini ad.ini ad $mta.nick($1,%a) Alive } !inc %a } alias mta.end { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($readini(ad.ini,ad,$mta.nick($1,%a) == Alive)) { if ($mta.nick($1,%a) != $null) { mta.text $1 $mta.race($1) $+ : The Last Man Standing Is $mta.nick($1,%a) $+ ! !remini ad.ini tot !remini ad.ini ad !writeini -n stats.ini WINS $mta.nick($1,%a) $calc($readini(stats.ini,WINS,$mta.nick($1,%a)) + 1) !halt } !inc %a } } } Link to comment
SanZoR Posted October 21, 2007 Share Posted October 21, 2007 [sLR]Racer said: dude you really dont know ewt lol you got 2 bracket mismatches and your writing the players id to the folder which change! yours but i think fixed now and changed on *:SIGNAL:mta.startrace: { if ($mta.nick($1,$2) != $null) { !writeini -n ad.ini tot total $mta.server($1).players slr.starting $1- } } on *:SIGNAL:mta.part: { if ($readini(ad.ini,ad,$mta.nick($1,$2)) == Alive) { !writeini -n ad.ini tot total $calc($slr.tot($1) - 1) !writeini -n ad.ini ad $mta.nick($1,$2) DEAD if ($slr.tot($1) == 1) mta.end $1- } } on *:SIGNAL:mta.death: { !writeini -n ad.ini tot total $calc($slr.tot($1) - 1) !writeini -n ad.ini ad $mta.nick($1,$2) DEAD if ($slr.tot($1) == 1) mta.end $1- } alias slr.tot !return $readini(ad.ini,tot,total) alias slr.starting { var %a = 0 while (%a <= $mta.server($1).cmax) { !writeini ad.ini ad $mta.nick($1,%a) Alive } !inc %a } alias mta.end { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($readini(ad.ini,ad,$mta.nick($1,%a) == Alive)) { if ($mta.nick($1,%a) != $null) { mta.text $1 $mta.race($1) $+ : The Last Man Standing Is $mta.nick($1,%a) $+ ! !remini ad.ini tot !remini ad.ini ad !writeini -n stats.ini WINS $mta.nick($1,%a) $calc($readini(stats.ini,WINS,$mta.nick($1,%a)) + 1) !halt } !inc %a } } } All what i could say is lol. I think you use aliases just to put your name or whatever somewhere! Why all your scripts are made using aliases? /me wonders why you dont remade PRS and put SLR.alias everywhere Link to comment
xGj Posted October 21, 2007 Share Posted October 21, 2007 Lil‘San^,^u<3 said: [sLR]Racer said: dude you really dont know ewt lol you got 2 bracket mismatches and your writing the players id to the folder which change! yours but i think fixed now and changed on *:SIGNAL:mta.startrace: { if ($mta.nick($1,$2) != $null) { !writeini -n ad.ini tot total $mta.server($1).players slr.starting $1- } } on *:SIGNAL:mta.part: { if ($readini(ad.ini,ad,$mta.nick($1,$2)) == Alive) { !writeini -n ad.ini tot total $calc($slr.tot($1) - 1) !writeini -n ad.ini ad $mta.nick($1,$2) DEAD if ($slr.tot($1) == 1) mta.end $1- } } on *:SIGNAL:mta.death: { !writeini -n ad.ini tot total $calc($slr.tot($1) - 1) !writeini -n ad.ini ad $mta.nick($1,$2) DEAD if ($slr.tot($1) == 1) mta.end $1- } alias slr.tot !return $readini(ad.ini,tot,total) alias slr.starting { var %a = 0 while (%a <= $mta.server($1).cmax) { !writeini ad.ini ad $mta.nick($1,%a) Alive } !inc %a } alias mta.end { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($readini(ad.ini,ad,$mta.nick($1,%a) == Alive)) { if ($mta.nick($1,%a) != $null) { mta.text $1 $mta.race($1) $+ : The Last Man Standing Is $mta.nick($1,%a) $+ ! !remini ad.ini tot !remini ad.ini ad !writeini -n stats.ini WINS $mta.nick($1,%a) $calc($readini(stats.ini,WINS,$mta.nick($1,%a)) + 1) !halt } !inc %a } } } All what i could say is lol. I think you use aliases just to put your name or whatever somewhere! Why all your scripts are made using aliases? /me wonders why you dont remade PRS and put SLR.alias everywhere A simple answer to your question is because he can script and you cant. Link to comment
[UVA]Bart Posted October 21, 2007 Share Posted October 21, 2007 lil^san lol you probably allready changed prs to shs also i bet you dont even know what a alias is lol because yours had useless stuff in it which i removed and by the way i used slr so immature people like you couldnt copie it and use it as your own Link to comment
MB|Lagzilla Posted October 21, 2007 Share Posted October 21, 2007 [sLR]Racer your script seems to crash MTA:Ma and mIRC..... Link to comment
lil Toady Posted October 21, 2007 Share Posted October 21, 2007 No wonder alias slr.starting { var %a = 0 while (%a <= $mta.server($1).cmax) { !writeini ad.ini ad $mta.nick($1,%a) Alive } !inc %a } including %a after the loop ^ should be: alias slr.starting { var %a = 0 while (%a <= $mta.server($1).cmax) { !writeini ad.ini ad $mta.nick($1,%a) Alive !inc %a } } then alias mta.end { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($readini(ad.ini,ad,$mta.nick($1,%a) == Alive)) { if ($mta.nick($1,%a) != $null) { mta.text $1 $mta.race($1) $+ : The Last Man Standing Is $mta.nick($1,%a) $+ ! !remini ad.ini tot !remini ad.ini ad !writeini -n stats.ini WINS $mta.nick($1,%a) $calc($readini(stats.ini,WINS,$mta.nick($1,%a)) + 1) !halt } !inc %a } } } here, it wont inc %a if player is dead, so: alias mta.end { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($readini(ad.ini,ad,$mta.nick($1,%a) == Alive)) { if ($mta.nick($1,%a) != $null) { mta.text $1 $mta.race($1) $+ : The Last Man Standing Is $mta.nick($1,%a) $+ ! !remini ad.ini tot !remini ad.ini ad !writeini -n stats.ini WINS $mta.nick($1,%a) $calc($readini(stats.ini,WINS,$mta.nick($1,%a)) + 1) !halt } } !inc %a } } Link to comment
[UVA]Bart Posted October 21, 2007 Share Posted October 21, 2007 lol slight mistakes they the same on both so, plus i didnt test it lol but on the bright side its better than lil^sans Link to comment
MB|Lagzilla Posted October 21, 2007 Share Posted October 21, 2007 Here's my attempt, dosen't ever seem to fail ..... only made up of a mixture of all yours and some extra lil' bits! alias gus.end { var %a = 0 if ($readini(gus.players.ini,PLAYERS,SERVER $+ $1) == 1) { while (%a <= $mta.server($1).cmax) { if ($readini(gus.players.ini,DOA,%a $+ $1) == Alive) { if ($mta.nick($1,%a) != $null) { mta.text $1 The Winner of $mta.race($1) is $mta.nick($1,%a) $+ ! !writeini -n gus.players.ini PLAYERS SERVER $+ $1 0 !halt } } !inc %a } } } alias gus.start { var %c = 0 !writeini -n gus.players.ini PLAYERS SERVER $+ $1 0 while (%c <= $mta.server($1).cmax) { if ($mta.nick($1,%c) != $null) { !writeini -n gus.players.ini DOA %c $+ $1 ALIVE !writeini -n gus.players.ini PLAYERS SERVER $+ $1 $calc($readini(gus.players.ini,PLAYERS,SERVER $+ $1) + 1) } !inc %c } } on *:SIGNAL:mta.startrace: { gus.start $1 } on *:SIGNAL:mta.part: { if ($readini(gus.players.ini,DOA,$2 $+ $1) == ALIVE) { !writeini -n gus.players.ini PLAYERS SERVER $+ $1 $calc($readini(gus.players.ini,PLAYERS,SERVER $+ $1) - 1) } !writeini -n gus.players.ini DOA $2 $+ $1 DEAD gus.end $1 $2 } on *:SIGNAL:mta.join: { if ($mta.nick($1,$2) != $null) { !writeini -n gus.players.ini DOA %c $+ $1 DEAD } } on *:SIGNAL:mta.death: { !writeini -n gus.players.ini PLAYERS SERVER $+ $1 $calc($readini(gus.players.ini,PLAYERS,SERVER $+ $1) - 1) !writeini -n gus.players.ini DOA $2 $+ $1 DEAD gus.end $1 $2 } on *:SIGNAL:mta.connect: { var %b = 0 !remove gus.players.ini !writeini -n gus.players.ini PLAYERS SERVER $+ $1 0 while (%b <= $mta.server($1).cmax) { if ($mta.nick($1,%b) != $null) { if ($mta.dead($1,%b) != $null) { !writeini -n gus.players.ini PLAYERS SERVER $+ $1 $calc($readini(gus.players.ini,PLAYERS,SERVER $+ $1) + 1) !writeini -n gus.players.ini DOA %b $+ $1 ALIVE } } !inc %b } } on *:SIGNAL:mta.disconnect: { !remove gus.players.ini } Link to comment
SanZoR Posted October 22, 2007 Share Posted October 22, 2007 MB|Lagzilla said: [sLR]Racer your script seems to crash MTA:Ma and mIRC..... Haha. And you can, Racer? Link to comment
[UVA]Bart Posted October 22, 2007 Share Posted October 22, 2007 alll im gonna say is where the f*** is shs ? when i released 2 of my versions after you promised people that it was coming every week but nothing happend ? this shows you cant script cause the basic stuff onli takes a small ammount of time to make then its just a case of making it do better things but ? wheres yours if your soooooo good at scripting, and that mistake is because i didnt even test it i just wrote it in here so....... Link to comment
SanZoR Posted October 22, 2007 Share Posted October 22, 2007 HouseMD has sources, and there is something wrong. House will fix it when he got free time. I tried to found the bug, but i fount nothing. House told me he could, but he has been inactive few months. So dont say i cant scripts, cause you aren't professional yourself. Link to comment
[UVA]Bart Posted October 22, 2007 Share Posted October 22, 2007 yawnnnnnnnnn house this house that lol you mean house does everything and you do nothing if he has been inactive then why havent you done it ? Link to comment
SanZoR Posted October 22, 2007 Share Posted October 22, 2007 Lil‘San^,^u<3 said: HouseMD has sources Cant you read or what is your problem? Link to comment
[UVA]Bart Posted October 22, 2007 Share Posted October 22, 2007 i can indeed thats why i wrote a response so houses sources are writing it and not you! Link to comment
Recommended Posts