31.05.2011, 18:22
PHP код:
public OnVehicleDamageStatusUpdate(vehicleid,playerid)
{
new Float:Vida;
GetVehicleHealth(vehicleid, Vida);
if(Vida <= 250)
{
TogglePlayerControllable(playerid, false);
GameTextForPlayer(playerid, "~w~Seu veiculo ~r~quebrou", 5000, 5);
}
return 1;
}