04.01.2011, 22:10
Bom, jб que o autor do tуpico demora pra responder, fiz um simples. Poem na public OnPlayerUpdate e vк se funciona, testei nгo.
pawn Код:
if (GetPlayerVehicleSeat(playerid) == 0)
{
new Float:health, engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if (health < 250)
{
SetVehicleHealth(GetPlayerVehicleID(playerid), 300.0);
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), false, lights, alarm, doors, bonnet, boot, objective);
SendClientMessage(playerid, 0xFF0000AA, "Seu carro pifou!");
}
}