跳到主要內容

GetPlayerPickupModel

注意

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

Description​

Gets the model ID of a player-pickup.

NameDescription
playeridThe ID of the player.
pickupidThe ID of the player-pickup to get the model ID of.

Returns​

Returns the model ID of the player-pickup.

Examples​

new PlayerPickup[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
PlayerPickup[playerid] = CreatePlayerPickup(playerid, 1239, 1, 2010.0979, 1222.0642, 10.8206, -1);

new model = GetPlayerPickupModel(playerid, PlayerPickup[playerid]);
// model = 1239
return 1;
}