Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Punjabi on September 26, 2008, 12:57:36 pm
-
elseif (heal == $3) {
WSV.cmdlevelcheck $1-
if (Hospital isin $WSV.loco($2)) {
if ($WSV.money >= 500) {
hdec WSV.money $WSV.name($2) 500
WSV.setcash $2 $WSV.money($3)
WSV.sethealth $1 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.
}
Any problem in this code not working..... :(
-
It's
WSV.sethealth $2 100
not
WSV.sethealth $1 100
-
Ok i will test it ;)
-
So guys the right code for !heal is this one.. ;)
elseif (heal == $3) {
WSV.cmdlevelcheck $1-
if (Hospital 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.
}
-
do i need to save the loc of hospitals?
i want both hospitals and medic store to heal?
is it possible to have prop heal along with it, coz in wsv0.3 only prop heal is there, so i want the add the above too, any help regarding this would be appreciated!
-
Hey evil night try this one out..u have said that u want to add two locations at one time ...i have done this for u.. ;)
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.
}
Cya
Punjabi_goli
-
well thnkx
do i need to give a location name or will it auto identify the hospitals and medic stores??
where do i place this code, if i place it somewhere, it says You need to be at ur prop to heal!
-
well u have to place the location names urself it will not auto identify i have already left the place for writing place names and u have to use this command in serve by typing !aspirine thats all and if u want to edit the place name u have to loc the place use in server !location to identify the location name and then edit that place in script where i left the place for writing..here.. ;)
if (* $+ [ Your first location] $+ * iswm $WSV.loco($1)) || (* $+ [ Your second location ] $+ * iswm $WSV.loco($1)) {
Cya
Punjabi_goli
-
still the aspirin command, is not detected by the game, it says invalid command,
is there any place that u would like 2 recommend to inject this code?
btw in the location name, i gave the location which i took from areas.ini, is that rite?
-
Yes i recommend this place near the ammunation where two ambulance are placed .. ;)
if (* $+ [ Schuman Health Care Center-Downtown ] $+ * iswm $WSV.loco($1))
Cya
Punjabi_goli
-
still it says invalid command :(
-
than u have pasted it at wrong place.. :-*
-
than u have pasted it at wrong place.. :-*
iam asking u from the beginning where to paste, u never seems to answer that!
-
paste it below this command ... :-\
elseif (getc == $3) {
Do i need to identify anything else.. :(
-
paste it below this command ... :-\
elseif (getc == $3) {
Do i need to identify anything else.. :(
thnkx the command works now, but iam not getting healed, it says i should be at hospital, but iam at the hospital!
-
U need to identify th place if u are in [Schuman Health Care Center-Downtown] Than go to that place and then type !aspirine or tell me which place u have written where we have to go to heal..
-
well i need all the hospitals and medic stores in the whole vice city , i think 4 medic stores and 3 hospitals!
-
Than u have to save the boundaries first then edit those boundaires in location folder like this..
Medic store= X Y Z
Hospital= X Y Z
plz edit axis in place of (X Y Z)...i think it will work..
Regards
Punjabi_goli
-
Than u have to save the boundaries first then edit those boundaires in location folder like this..
Medic store= X Y Z
Hospital= X Y Z
plz edit axis in place of (X Y Z)...i think it will work..
Regards
Punjabi_goli
thnkx for ur idea ;D
-
No problem ::)