OnPlayerEnterArea
#2

Quote:
Originally Posted by ssǝן‾ʎ
>.>

iirc the areas.inc with onplayerenterarea never worked for me but you could still search it up if you wanted

heres a isplayerinarea i made a while ago though, if its any use
Код:
forward IsPlayerInArea(playerid, x1, x2, y1, y2);
public IsPlayerInArea(playerid,x1, x2, y1, y2)
{
	new Float:xx, Float:yy, Float:zz; GetPlayerPos(playerid, xx, yy, zz);
	if(xx > x1 && xx < x2 && yy > y1 && yy < y2) return 1;
	else return 0;
}
it returns 1 if true and 0 if false, you could incorporate timers + area id's if say you wanted to make a deathmatch zone or a safe zone
Reply


Messages In This Thread
OnPlayerEnterArea - by V1ceC1ty - 23.07.2009, 13:19
Re: OnPlayerEnterArea - by iLinx - 23.07.2009, 14:50

Forum Jump:


Users browsing this thread: 1 Guest(s)