Calculate the difference between the position - 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)
+--- Thread: Calculate the difference between the position (
/showthread.php?tid=611090)
Calculate the difference between the position -
SetPlayerNameTag - 02.07.2016
I have problem to make the Distance check.
I wanted to do something like:
Calculate the difference between the position of player's old pos and player's new pos then compare them and paying by margin
Re: Calculate the difference between the position -
xJayce - 02.07.2016
GetPlayerDistanceFromPoint.
PHP код:
GetPlayerDistanceFromPoint(playerid, Float:pointx, Float:pointy, Float:pointz);
Re: Calculate the difference between the position -
SetPlayerNameTag - 02.07.2016
Quote:
Originally Posted by xJayce
|
im using GetPlayerDistanceBetweenPoints is that cool?
Re: Calculate the difference between the position -
xJayce - 02.07.2016
Yeah it's ok but I prefer using SA-MP natives because they're much faster than PAWN code.