Is player in range of "OBJECT"?? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Is player in range of "OBJECT"?? (
/showthread.php?tid=147563)
Is player in range of "OBJECT"?? -
Faith - 13.05.2010
Is it possible to check if you are in range of a created object that has been named?
If so, how?
Re: Is player in range of "OBJECT"?? -
PotH3Ad - 13.05.2010
pawn Код:
new Float:X, Float:Y, Float:Z;
GetObjectPos(object, X, Y, Z);
if(IsPlayerInRangeOfPoint(playerid, 20.0, X, Y, Z))
{
//...
}
Re: Is player in range of "OBJECT"?? -
Faith - 13.05.2010
oh lol.
Should of known that
Thanks