SA-MP Forums Archive
Autorepair ....Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Autorepair ....Help (/showthread.php?tid=433778)



Autorepair ....Help - HaiderABbas - 28.04.2013

how do i add auto car repair in some places ? not full game only in some stunt places


Re: Autorepair ....Help - saiberfun - 28.04.2013

by using the search function and reading the section titles properly


Re: Autorepair ....Help - HaiderABbas - 29.04.2013

ahhaa :/ i tired this thing earlier i get nothing if any good scripter replies could be cool


Re: Autorepair ....Help - saiberfun - 29.04.2013

Quote:
Originally Posted by HaiderABbas
Посмотреть сообщение
ahhaa :/ i tired this thing earlier i get nothing if any good scripter replies could be cool
Why not think about, why it happens to you and fix it?


Re: Autorepair ....Help - iGetty - 29.04.2013

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, x, y, z))
{
    RepairVehicle(GetPlayerVehicleID(playerid));
    SetVehicleHealt(GetPlayerVehicleID(playerid), 1000.0);
    return 1;
}
Add that to a timer and then make it check every X seconds. That way it'll automatically repair when in range of that place.


Re: Autorepair ....Help - HaiderABbas - 30.04.2013

thank u so much


Re: Autorepair ....Help - HaiderABbas - 30.04.2013

but it only fixes .....when car is on fire BTW +1


Re: Autorepair ....Help - Potassium - 30.04.2013

http://forum.sa-mp.com/forumdisplay.php?f=12


Re: Autorepair ....Help - HaiderABbas - 30.04.2013

there is no post............like this..................so can u help do it ......i need autO repair all over my stunts


Re: Autorepair ....Help - FFX - 30.04.2013

Quote:
Originally Posted by HaiderABbas
Посмотреть сообщение
there is no post............like this..................so can u help do it ......i need autO repair all over my stunts
Get the coordinates of your stunting locations and use them on the code that is mentioned before.