04.01.2011, 21:20
Como eu faзo pro carro quando chegar a "vida" de quase explodindo ele desligar?
o desligar motor do 0.3c
o desligar motor do 0.3c
if(GetVehicleHealth == 33) // o carro explode com 30 de lataria eu acho ._.
{
//funзгo
}
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if(health < 33)
{
//funзгo
}
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!");
}
}