Jump to content

Some1 Plz Help Drivin Me Crazy


Donvalley

Recommended Posts

  • 6 months later...

This Is For !cash, !bank, When You Are At The Bank And Try To Do !bank- It Says Sorry You Must Be At The Bank??

on *:SIGNAL:mta.join:{ 
  if ($mta.bank($1,$2) == 0) { 
    writeini MTAScript.ini Bank $mta.name($1,$2) 2000 
    mta.msg $1 $2 Welcome to the server. You now have $ $+ 2000 in your bank 
  } 
  else mta.msg $1 Welcome to the server. You have $mta.bank($1,$2) in your bank 
} 
on *:SIGNAL:mta.part:{ 
  writeini MTAScript.ini Cash $mta.name($1,$2) 0 
} 
on *:SIGNAL:mta.kill:{ 
  if ($mta.cash($1,$2) > 0) { 
    if ($2 != $3 && $mta.name($1,$3) != Unknown) { 
      writeini MTAScript.ini Cash $mta.name($1,$3) $calc($mta.cash($1,$2) + $mta.cash($1,$3)) 
      mta.msg $1 $3 You have gained $mta.cash($1,$2) for killing $mta.name($1,$2) 
      mta.msg $1 $2 You have lost $mta.cash($1,$2) because $mta.name($1,$3) killed you! 
      writeini MTAScript.ini Cash $mta.name($1,$2) 0 
    } 
    elseif ($2 == $3) { 
      mta.msg $1 $2 You lost $mta.cash($1,$2) because you killed yourself 
      writeini MTAScript.ini Cash $mta.name($1,$2) 0 
    } 
  } 
} 
on *:SIGNAL:mta.command:{ 
  var %a = $iif($4 == $null,$2,$iff($mta.getid($1,$4) == -1,$2,$mta.getid($1,$4))) 
  if ($3 == !info) mta.say $1 No Information for you boy 
  elseif ($3 == !cash) mta.say $1 $mta.name($1,%a) $+ 's Cash: $mta.cash($1,%a) 
  elseif ($3 == !bank) mta.say $1 $mta.name($1,%a) $+ 's Bank: $mta.bank($1,%a) 
  elseif ($3 == !bank+) { 
    if ($mta.area($1,$2) == Bank && $mta.health($1,$2) > 0) { 
      if ($mta.cash($1,$2) > 0) { 
        if ($4 != $null) { 
          if ($4 <= $mta.cash($1,$2)) { 
            if ($4 isnum && $chr(46) !isin $4) { 
              mta.say $1 $mta.name($1,$2) put $4 into their bank! 
              writeini MTAScript.ini Bank $mta.name($1,$2) $calc($mta.bank($1,$2) + $4) 
              writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) - $4) 
            } 
            else mta.msg $1 $2 Error $4 must be numbers without points 
          } 
          else mta.msg $1 $2 You don't have that much money on hand 
        } 
        else { 
          mta.say $1 $mta.name($1,$2) put $mta.cash($1,$2) into their bank! 
          writeini MTAScript.ini Bank $mta.name($1,$2) $calc($mta.bank($1,$2) + $mta.cash($1,$2)) 
          writeini MTAScript.ini Cash $mta.name($1,$2) 0 
        } 
      } 
      else mta.msg $1 $2 You havn't got any money... 
    } 
    else mta.msg $1 $2 To use a !bank command you must be at the bank 
  } 
  elseif ($3 == !bank-) { 
    if ($mta.area($1,$2) == -898.2357,-326.6091,-898.2196,-355.5072,-936.2309,-355.5205,-939.2854,-352.5587,-952.3001,-342.9138,-957.1079,-341.7898,-966.5380,-337.4671,-966.5401,-328.1766 && $mta.health($1,$2) > 0) { 
      if ($mta.bank($1,$2) > 0) { 
        if ($4 != $null) { 
          if ($4 <= $mta.bank($1,$2)) { 
            if ($4 isnum && $chr(46) !isin $4) { 
              mta.say $1 $mta.name($1,$2) took $4 from their bank! 
              writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) + $4) 
              writeini MTAScript.ini Bank $mta.name($1,$2) $calc($mta.bank($1,$2) - $4) 
            } 
            else mta.msg $1 $2 Error $4 must be numbers without points 
          } 
          else mta.msg $1 $2 You don't have that much money in the bank 
        } 
        else { 
          mta.say $1 $mta.name($1,$2) took $mta.bank($1,$2) from their bank 
          writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) + $mta.bank($1,$2)) 
          writeini MTAScript.ini Bank $mta.name($1,$2) 0 
        } 
      } 
      else mta.msg $1 $2 You havn't got any money... 
    } 
    else mta.msg $1 $2 To use a !bank command you must be at the bank 
  } 
  elseif ($3 == !give) { 
    if ($2 != %a && $5 != $null) { 
      if ($5 <= $mta.cash($1,$2)) { 
        if ($5 isnum && $chr(46) !isin $5) { 
          writeini MTAScript.ini Cash $mta.name($1,%a) $calc($mta.cash($1,%a) + $5) 
          writeini MTAScript.ini Cash $mta.name($1,$2) $calc($mta.cash($1,$2) - $5) 
          mta.say $1 $mta.name($1,$2) gave $mta.name($1,%a) $5 
        } 
        else mta.msg $1 $2 Error $5 must be numbers without points 
      } 
      else mta.msg $1 $2 You don't have that much cash to give 
    } 
    else mta.msg $1 $2 Synax: $3 <name> <amount> 
  } 
} 
alias mta.cash { 
  !return $iif($readini(MTAScript.ini,Cash,$mta.name($1,$2)) == $null,0,$v1) 
} 
alias mta.bank { 
  !return $iif($readini(MTAScript.ini,Bank,$mta.name($1,$2)) == $null,0,$v1) 
} 
  
  

Link to comment
  • Recently Browsing   0 members

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