Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: gamyster on October 16, 2008, 08:30:49 pm
-
Please help :- got
elseif (withdraw* iswm $3) {
WSV.cmdlevelcheck $1-
if (%bankname 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!
}
THIS SCRIPT by windlord i m having a Problem like if i try anything to buy it says u dont have enough cash like i wanna get healed or when i buy even a car Still i dont know why it gives error Saying you need 200$ but i have 9000$ :( something is error in this script the HEAL CMD i used is this one not made by me :- its made by someone in Forum
elseif (aspirine == $3) {
WSV.cmdlevelcheck $1-
if (downtown isin $WSV.loco($2)) {
if ($WSV.money >= 500) {
hdec WSV.money $WSV.name($2) 500
WSV.setcash $2 $WSV.money($3)
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.
}
:( i have 9000$ it says u dont have 2000$ :( whats the error
-
Eeh, its not a Error from the heal script i think because nowere in that script does it says u dont have 2000$, It only says You need at least 500.
But maby u said something wrong :D
Anyways this should work fine:
elseif (aspirine == $3) {
WSV.cmdlevelcheck $1-
if (downtown isin $WSV.loco($2)) {
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.
}
-
I know that there is a Problem IN This script :-
elseif (withdraw* iswm $3) {
WSV.cmdlevelcheck $1-
if (%bankname 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!
}
Because like i have license and heal cmd i cant BUY BOTH! it says same error u dont have Enough money.
-
mmm, i donnu :-\
-
:p NVM I FIXED IT!.
-
Hey quake there is no problem in !withdraw or !deposit ,there is a problem in heal and license command try to find it yourself there is a minor mistake and thijn had replied a right heal command ....and u have seen in my server that heal command is working fine thats the clue now try to find it yourself.. ;)
Cya
Punjabi_goli
-
Hey is $WSV.money($2) is same like WSV.money $2 ??
-
The heal command only works, if you are at your property (owned property)
$WSV.money($2) --> it is a command shows how much money you have, ($2 means you.)
-
The heal command only works, if you are at your property (owned property)
$WSV.money($2) --> it is a command shows how much money you have, ($2 means you.)
so there is no possibility to heal like LW, i.e healing at all hospitals and medic stores?
-
It is possible, just you have to make another command for hospital heals.
-
It is possible, just you have to make another command for hospital heals.
uhm .. can u provide one, where members should be able to heal at all hospitals and medic store?
-
maby something like:
elseif (heal == $3) {
WSV.cmdlevelcheck $1-
if (hosp isin $WSV.loco($2)) || (medic isin $WSV.loco($2)) {
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 or at a Medic Store.
}
Think that should work only if the Areas are good, So the Hospital has Hosp in his name, and the Medic Store has medic in his name ;)
-
Think that should work only if the Areas are good, So the Hospital has Hosp in his name, and the Medic Store has medic in his name ;)
thnkx thijn, any specific place to inject this code?
-
Just add it were the other cmds are i think :D ;)
-
Yes, and u can set the same name for all hospitals.
-
I think thats in Areas.ini ;)
-
thnkx thijn & SRS.Tomis, will get back to u once its done ;)
thijn ur code worked!
btw areas.ini has only one hospital, how do i add the rest medic store and other hospitals, if give the coord's and save them in areas.ini with a name eg: dispensary-downtown, its not detecting in the server!
-
It will not work u need the [boundaries] of the particular place.. :)
-
It will not work u need the [boundaries] of the particular place.. :)
u mean coords of the 4 corners?
if iam wrong , pls say how to get the boundaries of the particular place
-
It will not work u need the [boundaries] of the particular place.. :)
u mean coords of the 4 corners?
if iam wrong , pls say how to get the boundaries of the particular place
Boundaries... Try this: http://forum.vicecitymultiplayer.com/index.php?topic=733.0
I dunno if is this what you wants...
Cya, Knucis
-
I am config editor so i should know what boundaries are and i can easily make boundaries of 4 corners...Tested boundaries means i have already tested it..and i know how to make it but cant open the secret..sorry if u need the boundaries of any area plz tell me in new topic.. i will help..definately..
-
It will not work u need the [boundaries] of the particular place.. :)
u mean coords of the 4 corners?
if iam wrong , pls say how to get the boundaries of the particular place
Boundaries... Try this: http://forum.vicecitymultiplayer.com/index.php?topic=733.0
I dunno if is this what you wants...
Cya, Knucis
thnkx Knucis, i think adtec's idea will work , will try it now!
-
It will not work u need the [boundaries] of the particular place.. :)
u mean coords of the 4 corners?
if iam wrong , pls say how to get the boundaries of the particular place
Boundaries... Try this: http://forum.vicecitymultiplayer.com/index.php?topic=733.0
I dunno if is this what you wants...
Cya, Knucis
thnkx Knucis, i think adtec's idea will work , will try it now!
No Problem ;)
-
Knucis can u help me :
iam trying to get the Dispensary - VicePoint to be saved as a loc in server, i followed Adtec's idea :
201.=Dispensary-VicePoint
201=378.901215,748.782532,387.484894,748.782532,387.484894,760.228638,378.901215,760.228638
still the loc is not detected in the server!
am i doint it wrong?
UPDATE: oops i forgot adtec's tip, to place it at the top, now the loc is detected!
thnkx once again! :D
-
:o after inserting this commands, !kill or /c kill is not working, it says invalid command!
-
Post ur command here !kill i will tell u where to paste it.. :P
-
Post ur command here !kill i will tell u where to paste it.. :P
nvm sorted it out! ;D