• Welcome to Vice City Multiplayer.
 

Heal command for WSV..

Started by Punjabi, September 26, 2008, 10:57:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Punjabi

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..... :(
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Windlord

It's

WSV.sethealth $2 100


not


WSV.sethealth $1 100

Punjabi

GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Punjabi

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.
}
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

evil_night13

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!

Punjabi

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
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

evil_night13

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!

Punjabi

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
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

evil_night13

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?

Punjabi

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

GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

evil_night13

still it says invalid command  :(

Punjabi

than u have pasted it at wrong place.. :-*
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

evil_night13

Quote from: Punjabi on October 18, 2008, 04:01:36 PM
than u have pasted it at wrong place.. :-*

iam asking u from the beginning where to paste, u never seems to answer that!

Punjabi

paste it below this command ... :-\

elseif (getc == $3) {

Do i need to identify anything else.. :(


GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

evil_night13

Quote from: Punjabi on October 18, 2008, 04:24:56 PM
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!