Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

If player near objectid, what objectid.

$
0
0
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

Code:

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.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>