i guess it need not be, that much complicated
; When player is in the vehicle
elseif ($3 == repair) {
if ($vcmp.vehicle($1, $2) == 0) vcmp.msg $1 $2 You need to be in a vehicle
else {
vcmp.setvehiclehealth $1 $vcmp.vehicle($1, $2) 1000.0000
vcmp.msg $1 $2 Your vehilce has been repaired
}
}
; When the player is not in the vehicle
elseif ($3 == repair) {
if (!$4) vcmp.msg $1 $2 Syntax : /c $3 <CarID>
else {
vcmp.setvehiclehealth $1 $4 1000.0000
vcmp.msg $1 $2 CarID $chr(40) $4 ) has been repaired
}
}
; When player is in the vehicle
elseif ($3 == repair) {
if ($vcmp.vehicle($1, $2) == 0) vcmp.msg $1 $2 You need to be in a vehicle
else {
vcmp.setvehiclehealth $1 $vcmp.vehicle($1, $2) 1000.0000
vcmp.msg $1 $2 Your vehilce has been repaired
}
}
; When the player is not in the vehicle
elseif ($3 == repair) {
if (!$4) vcmp.msg $1 $2 Syntax : /c $3 <CarID>
else {
vcmp.setvehiclehealth $1 $4 1000.0000
vcmp.msg $1 $2 CarID $chr(40) $4 ) has been repaired
}
}