Jump to content

auto frozen after win


xF_Micka

Recommended Posts

I think this is a bit more advanced than that :P

But try this:

  
on *:Signal.mta.win: { 
  mta.freeze $1 $4 
  mta.text $1 $mta.nick($1,$2) Has won as the last player Alive and therfore has been frozen until the next map! 
  !writeini -n wins.ini winini $mta.nick($1,$2) yes 
} 
 if ( $pgs.cash($1,$2) == $null ) && ($readini(cash.ini,win,$mta.nick($1,$2)) != yes) { 
  !writeini -n cash.ini maincash $mta.nick($1,$2) 350 
  !writeini -n cash.ini win $mta.nick($1,$2) yes 
  mta.pm $1 $2 Cash earned: $ $+ 350 Total Cash: $pgs.cash($1,$2) 
} 
 } 
on *:Signal.mta.command: { 
if ($3 == !scriptbug) { 
!writeini -n script.ini win $mta.nick($1,$2) yes 
mta.pm $1 $2 Your Bug Has Been Reported into an ini ! 
} 
 } 
on *:Signal.mta.join: { 
.timerjoin $1 $3 Using Freezing Script by: -XIII-4Cazp.UK 
} 
 } 
  

Hope that works, but as i say, i havnt tested ^^

i made it compatible with prs/pgs so it saves to your normal cash

Link to comment
I think this is a bit more advanced than that :P

But try this:

  
on *:Signal.mta.win: { 
  mta.freeze $1 $4 
  mta.text $1 $mta.nick($1,$2) Has won as the last player Alive and therfore has been frozen until the next map! 
  !writeini -n wins.ini winini $mta.nick($1,$2) yes 
} 
 if ( $pgs.cash($1,$2) == $null ) && ($readini(cash.ini,win,$mta.nick($1,$2)) != yes) { 
  !writeini -n cash.ini maincash $mta.nick($1,$2) 350 
  !writeini -n cash.ini win $mta.nick($1,$2) yes 
  mta.pm $1 $2 Cash earned: $ $+ 350 Total Cash: $pgs.cash($1,$2) 
} 
 } 
on *:Signal.mta.command: { 
if ($3 == !scriptbug) { 
!writeini -n script.ini win $mta.nick($1,$2) yes 
mta.pm $1 $2 Your Bug Has Been Reported into an ini ! 
} 
 } 
on *:Signal.mta.join: { 
.timerjoin $1 $3 Using Freezing Script by: -XIII-4Cazp.UK 
} 
 } 
  

Hope that works, but as i say, i havnt tested ^^

i made it compatible with prs/pgs so it saves to your normal cash

Is this a standalone script or i have to put it into prs? And if i have to put it in prs, where?? And what about points? Prs gives points only when you die or drown!

Link to comment

Don't work. :(

Here here my integral part of the code :

alias prs.dmcheck { 
  var %b = $prs.dmcount($1) 
  if ($prs.players($1) > 1) { 
    var %a = $calc($prs.players($1) - %b) 
    !hadd prsrank $mta.nick($1,$2) $calc($prs.points($1,$2) + %a) 
    if (%a > 0) mta.pm $1 $2 %a $iif(%a == 1,Point,Points) Earned. Total: $prs.points($1,$2) 
  } 
  if (%b == 1) { 
    var %a = 0 
    while (%a < %loop) { 
      if ($hget(prstemp,alive $+ %a) == yes) { 
        !.signal prs.endrace $1 %a 
        !hdel prstemp alive $+ %a 
        !hadd prsdmwins $replace($mta.race($1),$chr(32),$chr(45)) $+ $mta.nick($1,%a) $calc($prs.dmwins($1,%a) + 1) 
        !hadd prsdmwins total $+ $mta.nick($1,%a) $calc($prs.totaldmwins($1,%a) + 1) 
        !hadd prsrank $mta.nick($1,%a) $calc($prs.points($1,%a) + $prs.players($1)) 
    mta.freeze $1 $4            <================= HERE FOR FREEZE 
        mta.text $1 The Winner Is: $mta.nick($1,%a) 
        mta.text $1 Won $prs.dmwins($1,%a) Out Of $prs.mapstarts($1,%a) $iif($prs.mapstarts($1,%a) == 1,Time,Times) 
      } 
      !inc %a 
    }  
  }    
} 

Link to comment
  • 4 weeks later...

} 
alias prs.dmcheck { 
  var %b = $prs.dmcount($1) 
  if ($prs.players($1) > 1) { 
    var %a = $calc($prs.players($1) - %b) 
  } 
  if (%b == 1) { 
    var %a = 0 
    while (%a < %loop) { 
      if ($hget(prstemp,alive $+ %a) == yes) { 
        !.signal prs.endrace $1 %a 
        !hdel prstemp alive $+ %a 
        !hadd prsdmwins $replace($mta.race($1),$chr(32),$chr(45)) $+ $mta.nick($1,%a) $calc($prs.dmwins($1,%a) + 1) 
        !hadd prsdmwins total $+ $mta.nick($1,%a) $calc($prs.totaldmwins($1,%a) + 1) 
        !hadd prsrank $mta.nick($1,$2) $calc($prs.points($1,$2) + %a) 
        mta.freeze $1 %a 
        mta.text $1 $mta.nick($1,%a) won and earned %a $iif(%a == 1,Point,Points) $+ . 
      } 
      !inc %a 
    }  
  }    
} 

:fadein:

Link to comment
  • 1 month later...

Insane, only do not say, that it was made by you... :!: Do not give out another's work for the. And in general who has granted you the right to distribute a command made by xbost? :redhotevil:

Link to comment

Insane, only do not say, that it was made by you... :!: Do not give out another's work for the. And in general who has granted you the right to distribute a command made by xbost? :redhotevil:

Link to comment

AstonDB9 this script isnt really rocket science is it really, and its nothing special, all you do is loop through the players to see whos dead or alive and the winner simply freeze, then unfreeze when the map has started or even on a timer

and win freeze can be disabled using one more check

add it to a ini weather or not its on or off and then check the ini before you freeze to see if it is on, thats what mine does in my slr script :D

Link to comment

AstonDB9 this script isnt really rocket science is it really, and its nothing special, all you do is loop through the players to see whos dead or alive and the winner simply freeze, then unfreeze when the map has started or even on a timer

and win freeze can be disabled using one more check

add it to a ini weather or not its on or off and then check the ini before you freeze to see if it is on, thats what mine does in my slr script :D

Link to comment
  • Recently Browsing   0 members

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