Author Topic: WSV !BURN ID  (Read 6505 times)

0 Members and 1 Guest are viewing this topic.

Offline gamyster

  • Wiseguy
  • **
  • Posts: 61
    • View Profile
WSV !BURN ID
« 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
Founder of [SAF]Clan

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: WSV !BURN ID
« Reply #1 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>
}
« Last Edit: November 15, 2008, 11:28:30 pm by thijn »

Offline Amenine

  • Street Thug
  • *
  • Posts: 47
  • [UCG]Clan Leader -Scripter/Fighter/XE MoD-
    • View Profile
    • UCG
Re: WSV !BURN ID
« Reply #2 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
« Last Edit: November 15, 2008, 07:28:30 pm by Amenine »

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: WSV !BURN ID
« Reply #3 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 ??? ???

Offline Amenine

  • Street Thug
  • *
  • Posts: 47
  • [UCG]Clan Leader -Scripter/Fighter/XE MoD-
    • View Profile
    • UCG
Re: WSV !BURN ID
« Reply #4 on: November 16, 2008, 12:43:55 pm »
I think u r right its $WSV.vehicle($2)... ;)

Offline Amenine

  • Street Thug
  • *
  • Posts: 47
  • [UCG]Clan Leader -Scripter/Fighter/XE MoD-
    • View Profile
    • UCG
Re: WSV !BURN ID
« Reply #5 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>
 }

Offline gamyster

  • Wiseguy
  • **
  • Posts: 61
    • View Profile
Re: WSV !BURN ID
« Reply #6 on: November 22, 2008, 06:09:09 pm »
xD i fixed the Problem myself anyways Thanx!!!
Founder of [SAF]Clan

Offline JoJo_boy

  • Street Thug
  • *
  • Posts: 12
  • LMAO !!
    • View Profile
Re: WSV !BURN ID
« Reply #7 on: December 01, 2008, 03:34:35 pm »
Can you guys Find Me one For GUSv9.0 pleas :)

Offline Amenine

  • Street Thug
  • *
  • Posts: 47
  • [UCG]Clan Leader -Scripter/Fighter/XE MoD-
    • View Profile
    • UCG
Re: WSV !BURN ID
« Reply #8 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
« Last Edit: December 02, 2008, 09:53:02 am by Amenine »

Offline JoJo_boy

  • Street Thug
  • *
  • Posts: 12
  • LMAO !!
    • View Profile
Re: WSV !BURN ID
« Reply #9 on: December 01, 2008, 10:35:15 pm »
Not !burn ? Coz i see Just ( $2 == burn) ??????
« Last Edit: December 01, 2008, 10:38:26 pm by JoJo_boy »

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: WSV !BURN ID
« Reply #10 on: December 02, 2008, 12:06:43 am »
Yes its !burn :D

Offline Amenine

  • Street Thug
  • *
  • Posts: 47
  • [UCG]Clan Leader -Scripter/Fighter/XE MoD-
    • View Profile
    • UCG
Re: WSV !BURN ID
« Reply #11 on: December 02, 2008, 09:52:35 am »
I corrected it..Enjoy. ;)

Offline JoJo_boy

  • Street Thug
  • *
  • Posts: 12
  • LMAO !!
    • View Profile
Re: WSV !BURN ID
« Reply #12 on: December 02, 2008, 01:34:25 pm »
Uh.........dont work ;D ;D

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: WSV !BURN ID
« Reply #13 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..
}
}