Jump to content

DD Win Signal (no respawn)


FNdanielNL

Recommended Posts

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
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

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 :P

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

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
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 :shock:

Link to comment
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 :shock:

A simple answer to your question is because he can script and you cant.

Link to comment

No wonder :P

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

Here's my attempt, dosen't ever seem to fail :D ..... 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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...