25.06.2016, 22:14
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:
Can someone help me? Thx
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; }