[HELP] Electric Fence
#8

Quote:
Originally Posted by David (Sabljak)
View Post
This,

also you can use

Code:
stock IsPlayerInTheArea(playerid,Float:minx,Float:miny,Float:maxx,Float:maxy)
{
	new Float:posx, Float:posy, Float:posz;
	GetPlayerPos(playerid, posx,posy,posz);
	if(posx >= minx && posx <= maxx && posy >= miny && posy <= maxy)
	{
	    return true;
	}
	else return false;
}
and detect it with X,Y - X,Y like Zone.

Code:
if(IsPlayerInTheArea(playerid,X,Y,X,Y))
{
//He is in your area. do it here
}
I didn't understand how I should put your cod
Reply


Messages In This Thread
[HELP] Electric Fence - by RogerX - 04.04.2020, 21:21
Re: [HELP] Electric Fence - by Janoz12 - 04.04.2020, 21:51
Re: [HELP] Electric Fence - by v1k1nG - 05.04.2020, 00:56
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 01:07
Re: [HELP] Electric Fence - by Janoz12 - 05.04.2020, 06:08
Re: [HELP] Electric Fence - by David (Sabljak) - 05.04.2020, 08:38
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 10:47
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 10:52
Re: [HELP] Electric Fence - by Janoz12 - 05.04.2020, 14:15
Re: [HELP] Electric Fence - by RogerX - 05.04.2020, 15:44

Forum Jump:


Users browsing this thread: 1 Guest(s)