little help with isplayerinarea and gangzone
#1

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;

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;
}
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
Reply


Messages In This Thread
little help with isplayerinarea and gangzone - by boelie - 10.07.2011, 09:48
Re: little help with isplayerinarea and gangzone - by iJumbo - 10.07.2011, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)