05.09.2010, 03:06
IsPlayerOutOfArea
Function:Detects if a player is OUT of an area.
Code:
pawn Код:
stock IsPlayerOutOfArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
new
Float:X,
Float:Y,
Float:Z
;
GetPlayerPos(playerid, X, Y, Z);
if(X >= MaxX && Y >= MaxY && X <= MinX && Y <= MinY) return 1;
return 0;
}