پرش به مطلب اصلی

IsPickupHiddenForPlayer

هشدار

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Checks if a pickup is hidden for a specific player.

NameDescription
playeridThe ID of the player.
pickupidThe ID of the pickup.

Returns

This function returns true if the pickup is hidden for the player, or false if it is not.

Examples

new g_Pickup;

public OnGameModeInit()
{
g_Pickup = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);
return 1;
}

public OnPlayerSpawn(playerid)
{
HidePickupForPlayer(playerid, g_Pickup);

if (IsPickupHiddenForPlayer(playerid, g_Pickup))
{
// Do something
}
return 1;
}