16.07.2011, 17:34
Hello everyone ..
I had a problem while repairing the burnt vehicle with an AutoRepairing system [ Credits forgotten ]
So, here you are:
That works so bad usual, exactly when the vehicle is flipped upside down .. because it sends too many messages and sounds .. So I need when a player's vehicle is auto repaired it sends to him just 1 message and one sound at a time .. I don't think so that is possible within the car which is flipped upside down
Sorry for my bad English ..
I had a problem while repairing the burnt vehicle with an AutoRepairing system [ Credits forgotten ]
So, here you are:
pawn Код:
public OnPlayerUpdate(playerid)
{
if(Autorep[playerid] == 1 )
{
new Float:health;
new veh;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(IsPlayerInAnyVehicle(playerid) && health < 350)
{
RepairVehicle(veh);
PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
SendClientMessage(playerid, WHITE,"AutoRepairing .. Use /autorep to disable it.");
return 1;
}
}
return 1;
}
Sorry for my bad English ..