PDA

View Full Version : Repair car


davve95
08/10/2011, 11:08 AM
Hi does someone have a pick up code that's repair
Your car

Jafet_Macario
08/10/2011, 11:11 AM
http://wiki.sa-mp.com/wiki/RepairVehicle

davve95
08/10/2011, 11:16 AM
Ty...... :)

davve95
08/10/2011, 03:01 PM
But how do I make a pick up?

cruising
08/10/2011, 03:05 PM
http://wiki.sa-mp.com/wiki/CreatePickup
http://wiki.sa-mp.com/wiki/Pickup_ID%27s

nilanjay
08/10/2011, 04:27 PM
Dude just read the tutorials and you will get that.

Jafet_Macario
08/10/2011, 04:41 PM
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;
}