Vice City Multiplayer

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

Title: WSV !BURN ID
Post by: gamyster on November 15, 2008, 10: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, 12:52:12 pm
use:
Code: [Select]
  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, 07:19:14 pm
I think this would be this.. ;D

Code: [Select]
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, 11: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, 12:43:55 pm
I think u r right its $WSV.vehicle($2)... ;)
Title: Re: WSV !BURN ID
Post by: Amenine on November 16, 2008, 12:44:59 pm
Than right code will be this..

Code: [Select]
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, 06:09:09 pm
xD i fixed the Problem myself anyways Thanx!!!
Title: Re: WSV !BURN ID
Post by: JoJo_boy on December 01, 2008, 03: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, 05:39:42 pm
Here you go....
Note:Untested

Code: [Select]
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]

Code: [Select]
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, 10:35:15 pm
Not !burn ? Coz i see Just ( $2 == burn) ??????
Title: Re: WSV !BURN ID
Post by: thijn on December 02, 2008, 12:06:43 am
Yes its !burn :D
Title: Re: WSV !BURN ID
Post by: Amenine on December 02, 2008, 09:52:35 am
I corrected it..Enjoy. ;)
Title: Re: WSV !BURN ID
Post by: JoJo_boy on December 02, 2008, 01:34:25 pm
Uh.........dont work ;D ;D
Title: Re: WSV !BURN ID
Post by: thijn on December 02, 2008, 09:32:39 pm
Yes, That script is not good, Use this one:
Code: [Select]
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..
}
}