முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

OnPlayerPickupStreamIn

எச்சரிக்கை

கால்பேக் என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

This callback is called when a player-pickup enters the visual range of the player.

NameDescription
pickupidThe ID of the player-pickup, returned by CreatePlayerPickup
playeridThe ID of the player that player-pickup enters the visual range.

Returns​

It is always called first in gamemode.

Examples​

new g_PlayerPickupHealth[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
g_PlayerPickupHealth[playerid] = CreatePlayerPickup(playerid, 1240, 2, 2009.8474, 1218.0459, 10.8175);
return 1;
}

public OnPlayerPickupStreamIn(pickupid, playerid)
{
if (pickupid == g_PlayerPickupHealth[playerid])
{
printf("g_PlayerPickupHealth is streamed in for player id %d", playerid);
}
return 1;
}

The following callbacks might be useful, as they're related to this callback in one way or another.

The following functions might be useful, as they're related to this callback in one way or another.