16.06.2011, 22:48
(
Последний раз редактировалось Shadoww5; 17.06.2011 в 13:39.
)
PHP код:
forward Check();
public OnGameModeInit()
{
SetTimer("Check", 500, true);
return 1;
}
public Check()
{
for(new c = 0; c < MAX_VEHICLES; c++)
{
new Float:L, engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleHealth(c, L);
if(L <= 200) //ATUALIZADO
{
SetVehicleHealth(c, 200);
GetVehicleParamsEx(c,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(c,0,lights,alarm,doors,bonnet,boot,objective);
}
}
return 1;
}
Toda vez que eu for usar o "SetVehicleParamsEx" eu devo usar antes o "GetVehicleParamsEx" ?