I don't find a autofix for vehicles
#8

pawn Код:
CMD:autofix(playerid)
{
    if(GetPVarInt(playerid,"Autofix"))
    {
        DeletePVar(playerid,"Autofix");
        SendClientMessage(playerid,-1,"Autofix disabled!");
    }
    else
    {
        SetPVarInt(playerid,"Autofix",true);
        SendClientMessage(playerid,-1,"Autofix enabled!");
    }
    return 1;
}
Into OnVehicleDamageStatusUpdate:

pawn Код:
if(GetVehicleHealth(vehicleid) < 1000) if(GetPVarInt(playerid,"Autofix")) RepairVehicle(vehicleid);
Reply


Messages In This Thread
I don't find a autofix for vehicles - by JEkvall95 - 28.09.2012, 17:43
Re: I don't find a autofix for vehicles - by zDevon - 28.09.2012, 17:47
Re: I don't find a autofix for vehicles - by Xtreme Brotherz - 28.09.2012, 18:44
Re: I don't find a autofix for vehicles - by zDevon - 28.09.2012, 18:47
Re: I don't find a autofix for vehicles - by JEkvall95 - 28.09.2012, 18:55
Re: I don't find a autofix for vehicles - by JEkvall95 - 28.09.2012, 19:04
Re: I don't find a autofix for vehicles - by Xtreme Brotherz - 28.09.2012, 19:07
Re: I don't find a autofix for vehicles - by stabker - 28.09.2012, 22:27
Re: I don't find a autofix for vehicles - by Beljulji - 29.09.2012, 02:31
Re: I don't find a autofix for vehicles - by OnlyOne - 29.09.2012, 02:59

Forum Jump:


Users browsing this thread: 2 Guest(s)