03.02.2014, 01:11
Isto deve resolver o seu problema
.
Coloque
:
Espero ter ajudado
.

Coloque

pawn Код:
//No OnGameModeInit/OnFilterScriptInit:
SetTimer("VeiculosQuebrados", 1000, true);
//E, no Final do GM/FS:
forward VeiculosQuebrados();
public VeiculosQuebrados()
{
for(new x = 1; x <= MAX_VEHICLES; x++)
{
new Float:Lataria;
new bool:Funciona;
GetVehicleHealth(x, Lataria);
if(Lataria > 400.0) Funciona = true;
else Funciona = false;
new Partes[7];
GetVehicleParamsEx(x, Partes[0], Partes[1], Partes[2], Partes[3], Partes[4], Partes[5], Partes[6]);
Partes[0] = Funciona;
SetVehicleParamsEx(x, Partes[0], Partes[1], Partes[2], Partes[3], Partes[4], Partes[5], Partes[6]);
}
return 1;
}
Espero ter ajudado
