If player near objectid, what objectid.
#1

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

Код:
GetObjectPos(item1, x, y, z);
GetObjectPos(item2, x, y, z);
GetObjectPos(item3, x, y, z);

//

if(!IsPlayerNearObject(playerid, item1, 1.0))
{
	    DestroyObject(item1)
}
that's efficient as it'll check for all objectids at the same time and execute back to the player at the same time.
Reply
#2

Use the streamer for this. Create a dynamic sphere and attach it to the object.
Check out the documentation: https://github.com/samp-incognito/sa...Natives-(Areas)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)