إنتقل إلى المحتوى الرئيسي

HidePickupForPlayer

تحذير

أُضيف هذا العنصر (دالة) في الإصدار omp v1.1.0.2612 ولا يعمل في الإصدارات الأقدم!

Description​

Hides a pickup for a specific player.

NameDescription
playeridThe ID of the player.
pickupidThe ID of the pickup to hide for the player.

Returns​

This function always returns true.

Examples​

new g_Pickup;

public OnGameModeInit()
{
g_Pickup = CreatePickup(1239, 1, 1686.6160, 1455.4277, 10.7705, -1);
return 1;
}

public OnPlayerSpawn(playerid)
{
HidePickupForPlayer(playerid, g_Pickup);
return 1;
}