Help me vehicle system, command fix and repair
#1

Hello!
Help me set damage vehicle and vehicle can't explode unless it flip

instead it will explode and can't engine and wont restart until it is repaired, it will can't engine until vehicle is fixed or repaired
Reply
#2

Do you want an Auto Repair script?
pawn Код:
//on top of your script
forward FixAllCars();
new FixTimer;

// OnGameModeInit
FixTimer = SetTimer("FixAllCars", 1000, true);

//OnGameModeExit
KillTimer(FixTimer);

//------------------
public FixAllCars()
{
        for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
        // loop all possible player
        {
                if(IsPlayerConnected(playerid) && IsPlayerInAnyVehicle(playerid))
                //if the player is connected AND in a car
                {
                        new vehicleid = GetPlayerVehicleID(playerid);// gettin the vehicle id
                        SetVehicleHealth(vehicleid,1000.0);// set the vehicle health
                }
        }
}
Reply
#3

can you help me damage vehicle?
Reply
#4

What do you exactly mean by 'damage vehicle'?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)