Problem with checking player zone.
#1

So guys I made an afk system and I want to add a zone in which player can be without getting kicked but it's not working for some reason..

Here is the code:

Код:
stock UAfkZoni(playerid) //If player is in the afk zone.
{
	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x, y, z);
	if((x >= -1577.8689 && x <= -1553.8507) && (y >= 1508.7367 && y <= 1528.3945)) return 1;
	return 0;
}
Can someone help me? Thx
Reply
#2

What exactly is not working?
Syntax looks okayish, but we're not mind readers over here.
Reply
#3

Fixed.
Reply
#4

....
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)