16.06.2011, 21:40
PHP код:
forward Check();
public OnGameModeInit()
{
SetTimer("Check", 500, true);
return 1;
}
public Check()
{
for(new c = 0; c < MAX_VEHICLES; c++)
{
new Float:L;
GetVehicleHealth(c, L);
if(L <= 200) return SetVehicleHealth(c, 200);
}
return 1;
}