Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Script Showroom => Topic started by: Rusty on February 16, 2009, 04:10:02 PM

Title: [CMD] - Wire Transfer Money
Post by: Rusty on February 16, 2009, 04:10:02 PM
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.
Title: Re: [CMD] - Wire Transfer Money
Post by: Knucis on February 19, 2009, 09:05:04 PM
Nice command  :P