08.09.2017, 00:36
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:
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;
}