18.04.2014, 14:50
Hi all.
Ok, so I've IsPlayerInZone stock but doesn't work 'cause /war show me a message "You aren't on gangzone".
Function:
Sorry for my bad english, i'm from another country.
Ok, so I've IsPlayerInZone stock but doesn't work 'cause /war show me a message "You aren't on gangzone".
Function:
Код:
forward IsPlayerInZone(playerid, zoneid); stock IsPlayerInZone(playerid, zoneid) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); return (x > TeritoriuData[zoneid][tPozX1] && x < TeritoriuData[zoneid][tPozY1] && y > TeritoriuData[zoneid][tPozX2] && y < TeritoriuData[zoneid][tPozY2]); }