10.07.2011, 09:48
Hello,
I want to easy combine IsPlayerInArea with GangZoneCreate
GangzoneCreate has (Float:minx, Float:miny, Float:maxx, Float:maxy)
so i made my IsPlayerInArea like this;
Now if i create the gangzone it should be simular to the area but its not..so i failed somewherein the stock
please help me with my math
I want to easy combine IsPlayerInArea with GangZoneCreate
GangzoneCreate has (Float:minx, Float:miny, Float:maxx, Float:maxy)
so i made my IsPlayerInArea like this;
pawn Код:
stock IsPlayerInArea(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (y > minx && y < miny && x > maxx && x < maxy) return 1;
return 0;
}
please help me with my math