Problem with checking player zone. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with checking player zone. (
/showthread.php?tid=610568)
Problem with checking player zone. -
andrejc999 - 25.06.2016
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
Re: Problem with checking player zone. -
Macluawn - 25.06.2016
What exactly is not working?
Syntax looks okay
ish, but we're not mind readers over here.
Re: Problem with checking player zone. -
andrejc999 - 25.06.2016
Fixed.
Re: Problem with checking player zone. -
andrejc999 - 25.06.2016
....