How to check if a player is near an object, and if he is, it gets the object id? How to do that? Right now I've got
that's efficient as it'll check for all objectids at the same time and execute back to the player at the same time.
Code:
GetObjectPos(item1, x, y, z);
GetObjectPos(item2, x, y, z);
GetObjectPos(item3, x, y, z);
//
if(!IsPlayerNearObject(playerid, item1, 1.0))
{
DestroyObject(item1)
}