xF_Micka Posted February 10, 2008 Share Posted February 10, 2008 Hi, I search a script who freeze the winner for my DM server. Thx. Link to comment
[UVA]Bart Posted February 11, 2008 Share Posted February 11, 2008 Yeah my slr one does it Link to comment
xF_Micka Posted February 11, 2008 Author Share Posted February 11, 2008 I haven't got found the code for the auto frozen ... Link to comment
xF_Micka Posted February 15, 2008 Author Share Posted February 15, 2008 Nobody can help me ? Help Link to comment
-XIII-4Cazp.UK Posted February 16, 2008 Share Posted February 16, 2008 on *:SIGNAL:mta.endrace: { mta.freeze $1 $4 mta.text $1 $2 $mta.nick($1,$2) has been Frozen! mta.unfreeze $1 $4 } } Hope that helps? Note: i have not tested Link to comment
xF_Micka Posted February 16, 2008 Author Share Posted February 16, 2008 Don't work mta.freeze $1 $4 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) Link to comment
-XIII-4Cazp.UK Posted February 16, 2008 Share Posted February 16, 2008 I think this is a bit more advanced than that 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
Cyber Posted February 17, 2008 Share Posted February 17, 2008 I think this is a bit more advanced than that 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
xF_Micka Posted February 17, 2008 Author Share Posted February 17, 2008 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
Guest Posted February 17, 2008 Share Posted February 17, 2008 "... mta.freeze $1 $4... " must be "mta.freeze $1 %a" Link to comment
[UVA]Bart Posted February 20, 2008 Share Posted February 20, 2008 he hasnt got the loop to use %a Link to comment
xF_Micka Posted February 23, 2008 Author Share Posted February 23, 2008 What doing ??? Link to comment
1nsane Posted March 17, 2008 Share Posted March 17, 2008 } 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 } } } Link to comment
Guest Posted May 16, 2008 Share Posted May 16, 2008 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? Link to comment
Guest Posted May 16, 2008 Share Posted May 16, 2008 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? Link to comment
1nsane Posted May 16, 2008 Share Posted May 16, 2008 And I shall tell, that this command is made by me. If you do not trust compare this winfreeze with DDC's one + this winfreeze cannot be disabled Link to comment
1nsane Posted May 16, 2008 Share Posted May 16, 2008 And I shall tell, that this command is made by me. If you do not trust compare this winfreeze with DDC's one + this winfreeze cannot be disabled Link to comment
[UVA]Bart Posted May 16, 2008 Share Posted May 16, 2008 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 Link to comment
[UVA]Bart Posted May 16, 2008 Share Posted May 16, 2008 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 Link to comment
Recommended Posts