IsPlayerInZone or near by zone
#1

Hi guys,

On my server I have gang zones,and I have function IsPlayerInZone,and it check is player in certain zone.Now,i want to make function which will check Is Player In Zone or near by zone(20m for example)

Function IsPlayerInZone

Код:
IsPlayerInZone(playerid, zoneid)
{
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x, y, z);
	return (x > GZ[zoneid][mX] && x < GZ[zoneid][vX] && y > GZ[zoneid][mY] && y < GZ[zoneid][vY]);
}
Quote:

mx = minX
mY = minY
vX = maxX
vY = maxY

It will work only if player is IN zone,so I want to make new function so that I can check is player in zone or near by it zone..I hope you can understand me.
Reply


Messages In This Thread
IsPlayerInZone or near by zone - by GospodinX - 17.12.2018, 15:23
Re: IsPlayerInZone or near by zone - by Hunud - 17.12.2018, 16:10
Re: IsPlayerInZone or near by zone - by GospodinX - 17.12.2018, 16:49
Re: IsPlayerInZone or near by zone - by RoboN1X - 17.12.2018, 17:36
Re: IsPlayerInZone or near by zone - by Infin1ty - 17.12.2018, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)