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
use:
elseif (burn == $3) {
if (($4) && ($4 isnum)) {
WSV.setvehiclehealth $4 0
}
else WSV.msg $2 Pleas use !burn <CarID>
}
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
eeh this command is not working?? Why are u using $WSV.vehicle??? its $WSV.vehicle($2) not just $WSV.vehicle ??? ???
I think u r right its $WSV.vehicle($2)... ;)
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>
}
xD i fixed the Problem myself anyways Thanx!!!
Can you guys Find Me one For GUSv9.0 pleas :)
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
Not !burn ? Coz i see Just ( $2 == burn) ??????
Yes its !burn :D
I corrected it..Enjoy. ;)
Uh.........dont work ;D ;D
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..
}
}