Stopping car exploding
#1

Hey again,i saw on some servers,when you flip your car and it starts burning,it doesn`t explode,just keeps burning.Thanks!
Reply
#2

So you are looking for a script to a car that doesn't explode when it flipped your car? Might be a Auto-Repair/Auto-Fix Script


Here are the links

Car Auto Fix
Auto-Repair

You might also try looking for some fs given above. I saw and there are plenty of them ****** is your friend.
Reply
#3

Those scripts repair the car to 1000,i need it just to keep it burning but not exploding.
Reply
#4

Those won't keep the vehicle on fire though - they will fully repair it.

A vehicle's engine sets on fire when it's health drops below 250. Therefore, in order to keep the fire burning, you can set it to above 250 then below again on a timer. This will reset the explosion. It's still possible for vehicles to explode though, because of network issues (if the connection drops briefly).
Reply
#5

Quote:
Originally Posted by George0305
Посмотреть сообщение
Those scripts repair the car to 1000,i need it just to keep it burning but not exploding.
I know what you mean and this might occur. So just I did said...

"You might also try looking for some fs given above. I saw and there are plenty of them ****** is your friend."

I tried this before in my freeroam server. When you flip your car it flipped and starts burning but it doesn't explode.

EDIT: Okay I was wrong. Follow M2P post
Reply
#6

See my reply.
Reply
#7

Код:
public OnGameModeInit()
{
SetTimer("OnVehicleUpdate", 1000, true);
return 1;
}

forward OnVehicleUpdate();
public OnVehicleUpdate()
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
new Float: vHealth;
GetVehicleHealth(i, vHealth);
if(vHealth < 250)
{
SetVehicleHealth(i, 300.0);
}
}
return 1;
}
Something like this,but it needs to set the health to 500 for example,and then again on 250,but i don`t know how to make this without stopping.
Reply
#8

Anyone?
Reply
#9

pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    new Float:h;
    GetVehicleHealth(vehicleid,h);
    if(h < 500)
    {
        SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,-1,-1,-1,-1,-1,-1);
    }
    return 1;
}
Reply
#10

Quote:
Originally Posted by HK
Посмотреть сообщение
pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    new Float:h;
    GetVehicleHealth(vehicleid,h);
    if(h < 500)
    {
        SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,-1,-1,-1,-1,-1,-1);
    }
    return 1;
}
Working,thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)