#5

Yes, and for that you use IsPlayerInRangeOfPoint.

pawn Код:
CMD:gate(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] == 8055)
    {
        if(IsPlayerInRangeOfPoint(playerid, 15.0, -1209.48816, -1071.85449, 123.64065)) // Is Player within 15 meters of this gate?
        {
            MoveObject(impoundgate,-1209.48816, -1071.85449, 123.64065,1.5); // if so, move the gate.
        }
        if(IsPlayerInRangeOfPoint(playerid, 15.0, /*X,Y,Z Cords for another gate*/)) // Continue with other gates.
        {
            //Move another gate here.
        }
    }
    else return SendClientMessage(playerid, COLOR_RED, "You are not the owner of this server.");
    return 1;
}
Reply


Messages In This Thread
Gate - by lramos15 - 02.06.2013, 22:14
Re: Gate - by DarkShade705 - 02.06.2013, 22:48
Re: Gate - by Richie© - 02.06.2013, 23:18
Re: Gate - by lramos15 - 02.06.2013, 23:49
Re: Gate - by Richie© - 03.06.2013, 00:01
Re: Gate - by lramos15 - 03.06.2013, 00:20
Re: Gate - by Richie© - 03.06.2013, 00:27

Forum Jump:


Users browsing this thread: 1 Guest(s)