05.02.2019, 19:29
It doesn't work:
I'm using here:
Please help me
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;
}
PHP код:
if(IsPlayerBetweenTwoPoints(playerid, -458.4307,-1874.7341, -423.1204,-1845.1359))
{code}