Guest Posted November 4, 2007 Share Posted November 4, 2007 Hello, Could someone give me a script for !money/!cash system, where as the more you play/win the more money you get/rewarded and for it to work in GUS please? For example: !money you have $199 Link to comment
SanZoR Posted November 5, 2007 Share Posted November 5, 2007 Are you looking it for DD or Race server? Link to comment
JB_frozen Posted November 5, 2007 Share Posted November 5, 2007 well accualy this one is for race but the main things are in it alias cash.add !writeini -n " $+ $scriptdir $+ cash.ini" Money $1 $calc($iif($readini($scriptdir $+ cash.ini,Money,$mta.nick($1,$2),$1) == $null,5,$vl) + $2) alias cash.sub !writeini -n " $+ $scriptdir $+ cash.ini" Money $1 $calc($iif($readini($scriptdir $+ cash.ini,Money,$mta.nick($1,$2),$1) == $null,5,$v1) - $2) on *:SIGNAL:mta.command:{ if ($3 == !money) /mta.text $1 $mta.nick($1,$2) your money is: $ $+ $readini($scriptdir $+ cash.ini,Money,$mta.nick($1,$2)) } on *:SIGNAL:mta.Finish:{ /mta.text $1 $mta.nick($1,$2) has won and receive $200 cash.add $mta.nick($1,$2) 200 } Link to comment
[UVA]Bart Posted November 5, 2007 Share Posted November 5, 2007 try this, !points !cash on *:SIGNAL:mta.command { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !points) mta.text $1 $mta.nick($1,%a) $+ 's points: $slr.points($1,%a) elseif ($3 == !cash) || ($3 == !money) mta.text $1 $mta.nick($1,%a) $+ 's cash: $slr.cash($1,%a) } 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.cash !return $iif($readini(cash.ini,cash,$mta.nick($1,$2)) == $null,0,$v1) alias slr.points !return $iif($readini(cash.ini,points,$mta.nick($1,$2)) == $null,0,$v1) 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) $+ ! !writeini -n cash.ini cash $mta.nick($1,%a) $calc($slr.cash($1,%a) + 10) !writeini -n cash.ini points $mta.nick($1,%a) $calc($slr.points($1,%a) + 5) !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
Recommended Posts