• Welcome to Vice City Multiplayer.
 

WSV !BURN ID

Started by gamyster, November 15, 2008, 07:52:51 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

gamyster

i have this cmd by thijin

    elseif (burn == $3) {
      WSV.setvehiclehealth $WSV.vehicle($2) 0
    }

but i want it like !burn <CARID>
like !burn 90
Founder of [SAF]Clan

thijn

#1
use:

  elseif (burn == $3) {
if (($4) && ($4 isnum)) {
WSV.setvehiclehealth $4 0
}
else WSV.msg $2 Pleas use !burn <CarID>
}


Amenine

#2
I think this would be this.. ;D

elseif (burn == $3) {
   if ($4 == $WSV.vehicle) {
     WSV.setvehiclehealth $4 0
   }
   else WSV.msg $2 Error-Correct Syntax: !burn <CarID> or !burn <VehicleName>
}


I think it should work if WSV support the cars ID Through WSV.vehicle..Otherwise use the car name to burn it..

Googly Woogly Woosh
Amenine

thijn

eeh this command is not working?? Why are u using $WSV.vehicle??? its $WSV.vehicle($2) not just $WSV.vehicle ??? ???


Amenine

I think u r right its $WSV.vehicle($2)... ;)

Amenine

Than right code will be this..

elseif (burn == $3) {
   if ($4 == $WSV.vehicle($2)) {
     WSV.setvehiclehealth $4 0
   }
   else WSV.msg $2 Error-Correct Syntax: !burn <CarID> or !burn <VehicleName>
}

gamyster

xD i fixed the Problem myself anyways Thanx!!!
Founder of [SAF]Clan

JoJo_boy

Can you guys Find Me one For GUSv9.0 pleas :)

Amenine

#8
Here you go....
Note:Untested

elseif ($2 == !burn) {
  if ($vcmp.cmdcheck(!burn,%id) == fail) !halt
    if ($3 == $vcmp.vehicle(%id,name))
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
    vcmp.setvehiclehp $vcmp.vehicle(%id,name) 0
    vcmp.msg %id Your car is burning..
  }
}


                                         
Or
[/b]

elseif ($2 == !burn) {
  if ($vcmp.cmdcheck(!burn,%id) == fail) !halt
    elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
    elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
    vcmp.setvehiclehp $vcmp.vehicle(%id,name) 0
    vcmp.msg %id Your car is burning..
  }
}


Googly Woogly Woosh
Amenine

JoJo_boy

#9
Not !burn ? Coz i see Just ( $2 == burn) ??????

thijn



Amenine


JoJo_boy


thijn

Yes, That script is not good, Use this one:

elseif ($2 == !burn) {
if ($vcmp.cmdcheck(!burn,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Error - Missing Information, $2 <car id>
elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
else {
vcmp.setvehiclehp $3 0
vcmp.msg %id Your car is burning..
}
}