Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: gamyster on November 15, 2008, 08:52:51 AM

Title: WSV !BURN ID
Post by: gamyster on November 15, 2008, 08:52:51 AM
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
Title: Re: WSV !BURN ID
Post by: thijn on November 15, 2008, 10:52:12 AM
use:

  elseif (burn == $3) {
if (($4) && ($4 isnum)) {
WSV.setvehiclehealth $4 0
}
else WSV.msg $2 Pleas use !burn <CarID>
}
Title: Re: WSV !BURN ID
Post by: Amenine on November 15, 2008, 05:19:14 PM
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
Title: Re: WSV !BURN ID
Post by: thijn on November 15, 2008, 09:28:07 PM
eeh this command is not working?? Why are u using $WSV.vehicle??? its $WSV.vehicle($2) not just $WSV.vehicle ??? ???
Title: Re: WSV !BURN ID
Post by: Amenine on November 16, 2008, 10:43:55 AM
I think u r right its $WSV.vehicle($2)... ;)
Title: Re: WSV !BURN ID
Post by: Amenine on November 16, 2008, 10:44:59 AM
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>
}
Title: Re: WSV !BURN ID
Post by: gamyster on November 22, 2008, 04:09:09 PM
xD i fixed the Problem myself anyways Thanx!!!
Title: Re: WSV !BURN ID
Post by: JoJo_boy on December 01, 2008, 01:34:35 PM
Can you guys Find Me one For GUSv9.0 pleas :)
Title: Re: WSV !BURN ID
Post by: Amenine on December 01, 2008, 03:39:42 PM
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
Title: Re: WSV !BURN ID
Post by: JoJo_boy on December 01, 2008, 08:35:15 PM
Not !burn ? Coz i see Just ( $2 == burn) ??????
Title: Re: WSV !BURN ID
Post by: thijn on December 01, 2008, 10:06:43 PM
Yes its !burn :D
Title: Re: WSV !BURN ID
Post by: Amenine on December 02, 2008, 07:52:35 AM
I corrected it..Enjoy. ;)
Title: Re: WSV !BURN ID
Post by: JoJo_boy on December 02, 2008, 11:34:25 AM
Uh.........dont work ;D ;D
Title: Re: WSV !BURN ID
Post by: thijn on December 02, 2008, 07:32:39 PM
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..
}
}