SA-MP Forums Archive
Repair car - 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: Repair car (/showthread.php?tid=288581)



Repair car - davve95 - 08.10.2011

Hi does someone have a pick up code that's repair
Your car


Re: Repair car - Jafet_Macario - 08.10.2011

https://sampwiki.blast.hk/wiki/RepairVehicle


Re: Repair car - davve95 - 08.10.2011

Ty......


Re: Repair car - davve95 - 08.10.2011

But how do I make a pick up?


Re: Repair car - cruising - 08.10.2011

https://sampwiki.blast.hk/wiki/CreatePickup
https://sampwiki.blast.hk/wiki/Pickup_ID%27s


Re: Repair car - nilanjay - 08.10.2011

Dude just read the tutorials and you will get that.


Re: Repair car - Jafet_Macario - 08.10.2011

pawn Код:
new rPickup;

public OnGameModeInit()
{
    rPickup = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == rPickup && IsPlayerInAnyVehicle(playerid)) RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}