Fish near the water
#2

Check for a coordinates on the fish command!

Example: Command using strcmp
pawn Код:
if(!strcmp("/fish",cmdtext))
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300,11.8438))
        {
            SendClientMessage(playerid,0xFFFFFFFF,"You are not near the Fishing Area!");
        }
        else
        {
            //Your Code when he is at the fishing area.
        }
        return 1;
    }
Command using ZCMD:
pawn Код:
COMMAND:fish(playerid, params[])
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300,11.8438))
        {
            SendClientMessage(playerid,0xFFFFFFFF,"You are not near the Fishing Area!");
        }
        else
        {
            //Your Code when he is at the fishing area.
        }
        return 1;
    }
Reply


Messages In This Thread
Fish near the water - by Mikkel_RE - 27.07.2012, 18:40
Re: Fish near the water - by Ballu Miaa - 27.07.2012, 18:50
Re: Fish near the water - by Ranama - 27.07.2012, 20:55

Forum Jump:


Users browsing this thread: 2 Guest(s)