Disable A Vehicle
#2

Try this:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new Float:health;
    GetVehicleHealth(vehicleid, health);
    if (health <= 500)
    {
        if (carcrashed[vehicleid] == 0)
        {
            carcrashed[vehicleid] = 1;
            TogglePlayerControllable(playerid, 0);
            GameTextForPlayer(playerid, "~w~This car is~n~~p~Broken", 3500, 1);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Disable A Vehicle - by DJ_Shocker - 27.01.2013, 01:35
Re: Disable A Vehicle - by Roach_ - 27.01.2013, 07:33
Re: Disable A Vehicle - by Threshold - 27.01.2013, 07:47

Forum Jump:


Users browsing this thread: 2 Guest(s)