IsPlayerAtDealership help ??
#2

pawn Код:
#define MAX_POS 5
new DSPos[MAX_POS][3] =
{
    //{X, Y, Z}
    {3029.8376,-2045.4829,3.4229},
    {2325.4622,-1223.5625,22.2046},
    {2149.4558,-1166.3368,23.3749},
    {2737.8115,-1876.1163,9.4239},
    {564.1442,-1267.4377,16.8385}
};

public IsAtDealership(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        for(new d; d<MAX_POS; d++)
        {
            if(IsPlayerInRangeOfPoint(playerid,25.0,DSPos[d][0],DSPos[d][1],DSPos[d][2]))
            {
                return 1;
            }
Reply


Messages In This Thread
IsPlayerAtDealership help ?? - by xemper - 08.01.2011, 12:48
Re: IsPlayerAtDealership help ?? - by Jefff - 08.01.2011, 13:35
Re: IsPlayerAtDealership help ?? - by xemper - 08.01.2011, 14:57
Re: IsPlayerAtDealership help ?? - by Mr.Stranger - 08.01.2011, 15:16
Re: IsPlayerAtDealership help ?? - by Jefff - 08.01.2011, 15:21
Re: IsPlayerAtDealership help ?? - by xemper - 08.01.2011, 16:27
Re: IsPlayerAtDealership help ?? - by xemper - 08.01.2011, 18:52

Forum Jump:


Users browsing this thread: 2 Guest(s)