Preskoči na vsebino

GetPlayerPickupVirtualWorld

opozorilo

Dodano v različici omp v1.1.0.2612. Ta element v starejših različicah ne deluje. Vrsta: funkcija.

Description​

Gets the virtual world ID of a player-pickup.

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

Returns​

Returns the virtual world 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, 20);

new worldid = GetPlayerPickupVirtualWorld(playerid, PlayerPickup[playerid]);
// worldid = 20
return 1;
}