31.10.2011, 01:45
pawn Код:
public SetAllVehicleHealth(Float:newhealth)
{
for(new i = 0; i < MAX_VEHICLES; i++) {
new Float:pos[3];
GetVehiclePos(i, pos[0], pos[1], pos[2]);
if(pos[0] != 0.0 && pos[1]!= 0.0 && pos[2] != 0.0) {
SetVehicleHealth(i, newhealth);
}
}
return true;
}