Passa al contenuto principale

BeginObjectSelecting

Avviso

La funzione è stata aggiunta nella versione omp v1.1.0.2612 e non funziona nelle versioni precedenti!

Description​

Display the cursor and allow the player to select an object. OnPlayerSelectObject is called when the player selects an object.

NameDescription
playeridThe ID of the player that should be able to select the object

Returns​

This function does not return any specific values.

Examples​

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/select", true))
{
BeginObjectSelecting(playerid);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Please select the object you'd like to edit!");
return 1;
}
return 0;
}