Repair car
#1

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

https://sampwiki.blast.hk/wiki/RepairVehicle
Reply
#3

Ty......
Reply
#4

But how do I make a pick up?
Reply
#5

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

Dude just read the tutorials and you will get that.
Reply
#7

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)