Vehicle auto repairing problem
#1

Hello everyone ..

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;
}
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 ..
Reply


Messages In This Thread
Vehicle auto repairing problem - by Yaszine - 16.07.2011, 17:34
Re: Vehicle auto repairing problem - by MoroDan - 16.07.2011, 17:50
Re : Re: Vehicle auto repairing problem - by Yaszine - 16.07.2011, 18:37
Re : Vehicle auto repairing problem - by Yaszine - 30.07.2011, 15:43
Re: Vehicle auto repairing problem - by [MWR]Blood - 30.07.2011, 15:46

Forum Jump:


Users browsing this thread: 1 Guest(s)