Fish near the water
#1

Hello i want to make my fish system that you can fish near the water, but i dont really know how to make it
Reply
#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
#3

I also think that you should be able to make zones, (i don't know much about ths becuse i've never used zones)
And then you put IsPlayerInZone or what function it is.
and you make one zone for every water place on the map.

Hope you understand what i mean.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)