跳到主要內容

OnPickupStreamOut

注意

此回呼函式於 omp v1.1.0.2612 版本中新增,在更早的版本中無法使用!

Description​

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

NameDescription
pickupidThe ID of the pickup, returned by CreatePickup
playeridThe ID of the player that pickup leaves the visual range.

Returns​

It is always called first in gamemode.

Examples​

new g_PickupHealth;

public OnGameModeInit()
{
g_PickupHealth = CreatePickup(1240, 2, 2009.8474, 1218.0459, 10.8175);
return 1;
}

public OnPickupStreamOut(pickupid, playerid)
{
if (pickupid == g_PickupHealth)
{
printf("g_PickupHealth is streamed out 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.