IsPlayerInArea
#2

Try this

pawn Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
    new Float:pX, Float:pY, Float:pZ;
    GetPlayerPos(playerid, pX, pY, pZ);
    if(pX <= max_x && pX >= min_x && pY <= max_y && pY >= min_y) return 1;
    return 0;
}
Reply


Messages In This Thread
IsPlayerInArea - by Crusty - 22.06.2010, 19:14
Re: IsPlayerInArea - by MadeMan - 22.06.2010, 19:23

Forum Jump:


Users browsing this thread: 2 Guest(s)