[Help] Best method to make repair pickup(?)
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
I have no problem with pickup type 14. It works flawlessly. However, be aware that you need to use CreatePickup, not AddStaticPickup.

Though, if you're dynamically creating them, I recommend using the streamer functions.
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
    if(Streamer_GetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_MODEL_ID) == 3096)
    {
        RepairVehicle(GetPlayerVehicleID(playerid));
    }
    return 1;
}
This will repair the vehicle if the player drives through a pickup with model 3096, which is the repair pickup.
That is working on objects/sea? because I can't see him... anyway I just need the effect of the pickup.
I did it:
CreateDynamicPickup(3096, 14, X, Y, Z, -1, -1, -1, 100.0);

and your code in OnPlayerPickupDynamicPickUp, but I can't see nothing/cant get the repair.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)