Problem with OnPlayerPickUpDynamicPickup
#2

I wrote an include for this very problem.

https://pastebin.com/BCkeqTmd

It uses the SA-MP pickup system however, not the streamer. You just need to change the functions and callbacks to the streamer ones.

Example code:
pawn Код:
new myPickup;

public OnGameModeInit()
{
    myPickup = ELP_CreatePickup(...);
    return 1;
}

public OnEnterLeavePickup(playerid, pickupid, enterleave)
{
    if(pickupid == myPickup)
    {
        if(enterleave)
        {
            // Player entered pickup - show textdraw
        }
        else
        {
            // Player left pickup - destroy textdraw
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problem with OnPlayerPickUpDynamicPickup - by None1337 - 07.09.2017, 17:41
Re: Problem with OnPlayerPickUpDynamicPickup - by MP2 - 08.09.2017, 00:36

Forum Jump:


Users browsing this thread: 3 Guest(s)