46
mIRC/pawn Scripting / Re: WSV script... (help)
« on: October 01, 2008, 04:39:36 pm »
Hehe, that is mine !jail command
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
elseif (withdraw* iswm $3) {
WSV.cmdlevelcheck $1-
if (El-Banco-Corrupto-Grande isin $WSV.loco($2)) {
if ($4 <= $WSV.bank($2)) || ($4 == all) {
if ($4 == all) var %money = $hget(WSV.Bank,$WSV.getname($2))
if ($4 <= $WSV.money($2)) var %money = $4
hinc WSV.money $WSV.name($2) $4
hdec WSV.bank $WSV.name($2) $4
WSV.setcash $2 $hget(WSV.money,$WSV.getname($2))
WSV.msg $2 You have been withdrawed $chr(91) $ $+ $4 $chr(93) from your bank account!
WSV.msg $2 New Balance: $chr(91) $ $+ $WSV.bank($2) $chr(93)
}
else WSV.msg $2 You hasn't got $chr(91) $ $+ $4 $chr(93) in you're bank account!
}
else WSV.msg $2 You have to be at the bank!
}
elseif (lockcar == $3) && ($2 < 100) {
WSV.cmdlevelcheck $1-
if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.setvehiclestatus $4 2
if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.msg $2 Vehicle $chr(91) $WSV.vehiclename($4) $chr(93) locked
else WSV.announce $2 This is not your vehicle!
}
($3 == 129)