• Welcome to Vice City Multiplayer.
 

[CMD] - Wire Transfer Money

Started by Rusty, February 16, 2009, 04:10:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rusty

So what does this do?!?
- Wires Money from your Bank account to a specified players Bank account.


  elseif ($2 == !wire) {
    if ($vcmp.cmdcheck(!wire,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - $2 <name> <amount>
    elseif (%a == -1) vcmp.msg %id Invalid Name.
    elseif ($4 !isnum) vcmp.msg %id Invalid Amount.
    elseif (National Bank !isin $vcmp.area(%b)) vcmp.msg %id Must be at The Bank to Wire Transfer Money.
    elseif (. isin $4) || (- isin $4) vcmp.msg %id No Negative or Decimal Point allowed.
    elseif ($4 > $vcmp.bank(%b)) vcmp.msg %id You don't have this much in your Bank Account.
    else {
      vcmp.bank- %b $4
      vcmp.bank+ %a $4
      vcmp.msg %id You have Wired $ $+ $bytes($4,b) to $vcmp.name(%a) Bank Account.
     
    }
  }



Status: Untested.

Coming soon... Basic Cop System and Item Buying.

Knucis