So:
stock IsPlayerInArea(playerid,Float:minX,Float:minY,Float:maxX,Float:maxY)
{
new Float:pX,Float:pY,Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
if(pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) return 1;
else return 0;
}
if(!IsPlayerInArea(playerid,X,Y,xX,xY))
{
SetPlayerHealth(playerid,0);
return 1;
}
mfg. ![]()
