None boom cars
#1

i developing RP mode..
and i wanna when someone destroy car, the car just stop to move and dont bombed..
Like, Just the engine turn off.. and the car dont really destroyed and burnd...

Thx ?
Reply
#2

just set the vehicle's Health to 0 or anything less than 20 ... its will make the Car on Fire and it will be BOOMED after that ..

I hope this information was helpfull.

Thank You
-Abhinav
Reply
#3

I don't think that is what he ment.
You can try: If vehicle health is lower than 20: TogglePlayerControllable (playerid, 0) Then let him exit the vehicle with /exit (RemovePlayerFromVehicle). I Think that will work.

For the Vehiclehealth lower than 20 I would make an public
Reply
#4

Use seif_vehicles include. You have a function there which won't allow vehicles to explode
Reply
#5

Quote:
Originally Posted by Sergiy
Use seif_vehicles include. You have a function there which won't allow vehicles to explode
What the function? Thx!

Edit:
This include will be repair the car automaticly after few seconds..
I need the vechile never can be repair until the towcar come..
(Its RP mode...)

Quote:
Originally Posted by Rickk
I don't think that is what he ment.
You can try: If vehicle health is lower than 20: TogglePlayerControllable (playerid, 0) Then let him exit the vehicle with /exit (RemovePlayerFromVehicle). I Think that will work.

For the Vehiclehealth lower than 20 I would make an public
Exacly, Can you help me make that?
Reply
#6

You must wait a minimum of 12 hours before bumping a topic.

Hes just explained how to do it. Have a go at making it and if it doesnt work, show us what you have done and we wil try and fix it for you. At least show us that your willing to try and do it yourself.
Reply
#7

Just edit that function that it won't repair car automaticly and you are done
Reply
#8

But you have to put the command to each vechile in the mode... i cant do it...
i have 300 cars at least..
Reply
#9

OnPlayerUpdate?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)