16
mIRC/pawn Scripting / Re: Heal command for WSV..
« on: October 18, 2008, 06:01:36 pm »
than u have pasted it at wrong place..
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.
if (* $+ [ Schuman Health Care Center-Downtown ] $+ * iswm $WSV.loco($1))
if (* $+ [ Your first location] $+ * iswm $WSV.loco($1)) || (* $+ [ Your second location ] $+ * iswm $WSV.loco($1)) {
elseif (aspirine == $3) {
if (* $+ [ Your first location] $+ * iswm $WSV.loco($1)) || (* $+ [ Your second location ] $+ * iswm $WSV.loco($1)) {
if ($WSV.money($2) >= 500) {
hdec WSV.money $WSV.name($2) 500
WSV.setcash $2 $WSV.money($2)
WSV.sethealth $2 100
WSV.announce $2 You are healed by the doctors of the hospital.
}
else WSV.msg $2 You need at least 500
}
else WSV.msg $2 You need to be Hospital.
}
Quote
elseif (burn == $3) {
WSV.setvehiclehealth %a 0
}
elseif ($3 == burn) {
WSV.cmdlevelcheck $1-
WSV.setvehiclehealth $4 0
WSV.msg $2 Your vehicle is burning..
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 ($3 == saveloc) {
if ($4) {
writeini -n " $+ $scriptdirSavedLocs.ini" SavedLocs $4 $WSV.location($2)
WSV.say New Location saved by $WSV.name($2) at $4
}
else WSV.msg $2 Please type a name after !saveloc
}
elseif ($3 == gotoloc) {
if ($readini(" $+ $scriptdirSavedLocs.ini",SavedLocs,$4)) {
WSV.setlocation $2 $readini(" $+ $scriptdirSavedLocs.ini",SavedLocs,$4)
WSV.msg $2 Taking you to $4
}
else WSV.msg $2 Invalid Location
}