IsPlayerBetweenTwoPoints problem - 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: IsPlayerBetweenTwoPoints problem (
/showthread.php?tid=663579)
IsPlayerBetweenTwoPoints problem -
Kraeror - 05.02.2019
It doesn't work:
PHP код:
stock IsPlayerBetweenTwoPoints(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:xx, Float:yy, Float:zz;
GetPlayerPos(playerid, xx, yy, zz);
if (xx > minx && xx < maxx && yy > miny && yy < maxy) return 1;
return 0;
}
I'm using here:
PHP код:
if(IsPlayerBetweenTwoPoints(playerid, -458.4307,-1874.7341, -423.1204,-1845.1359))
{code}
Please help me
Re: IsPlayerBetweenTwoPoints problem -
Kraeror - 05.02.2019
solved!