Actions inside a Gang-Zones
#4

No it's not, and would that function even work?
Cuz you need to set both minx, miny, maxx and maxy...

pawn Код:
public IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3])
        return 1;
    return 0;
}
Use a timer to check if a player is inside that area
Reply


Messages In This Thread
Actions inside a Gang-Zones - by GeKo - 08.02.2009, 13:43
Re: Actions inside a Gang-Zones - by SmartyPants - 08.02.2009, 16:20
Re: Actions inside a Gang-Zones - by GeKo - 08.02.2009, 19:34
Re: Actions inside a Gang-Zones - by LarzI - 08.02.2009, 19:36
Re: Actions inside a Gang-Zones - by GeKo - 08.02.2009, 19:43
Re: Actions inside a Gang-Zones - by SmartyPants - 08.02.2009, 22:30

Forum Jump:


Users browsing this thread: 1 Guest(s)