Zum Hauptinhalt springen

DestroyPlayerPickup

warnung

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

Description

Destroys a player-pickup created with CreatePlayerPickup.

NameDescription
playeridThe ID of the player.
pickupidThe ID of the player-pickup to destroy (returned by CreatePlayerPickup).

Returns

This function does not return any specific values.

Examples

new PlayerPickupArmour[MAX_PLAYERS]; // Create a variable to store the player-pickup ID in

public OnPlayerConnect(playerid)
{
PlayerPickupArmour[playerid] = CreatePlayerPickup(playerid, 1242, 2, 2010.0979, 1222.0642, 10.8206, -1);
// Create an armour pickup and store the ID in 'PlayerPickupArmour[playerid]'
return 1;
}

// Some time later...
DestroyPlayerPickup(playerid, PlayerPickupArmour[playerid]);