IsPlayerInArea
#1

I caught the runway coordinates with the Gangzone Maker and I'm trying to detect if the plane is between these points, so I need the function IsPlayerInArea, the one which really works.

Does anyone have the function?

And my example is the following:


pawn Код:
public OnPlayerUpdate(playerid)
{

    new modelid;
    if(IsPlayerInAnyVehicle(playerid))
    {
        modelid = GetVehicleModel(GetPlayerVehicleID(playerid));
        if(modelid == 476 || modelid == 511 || modelid == 519 || modelid == 577 || modelid == 592 || modelid == 593) // Some plane models
        {
            if(IsPlayerInArea(playerid, 1373.046875,1259.765625, 1394.53125, 1707.03125)) // Runway area
            {
                    Pista1 = false; // FALSE = its busy
            }
            else
            {
                Pista1 = true; // TRUE = its free
               
            }
        }
                return 1;
}
Reply


Messages In This Thread
IsPlayerInArea - by Feastahashi - 04.07.2013, 02:49
Re: IsPlayerInArea - by MP2 - 04.07.2013, 03:30
Re: IsPlayerInArea - by Feastahashi - 04.07.2013, 18:23
Re: IsPlayerInArea - by RaZzZzoR - 04.07.2013, 18:25
Re: IsPlayerInArea - by Feastahashi - 04.07.2013, 19:09
Re: IsPlayerInArea - by MP2 - 04.07.2013, 19:38
Re: IsPlayerInArea - by Vince - 04.07.2013, 20:16
Re: IsPlayerInArea - by Feastahashi - 05.07.2013, 01:15
Re: IsPlayerInArea - by MP2 - 05.07.2013, 01:56

Forum Jump:


Users browsing this thread: 1 Guest(s)