08.10.2011, 11:08
Hi does someone have a pick up code that's repair
Your car
Your car
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;
}