Fish system(fish at the water)
#1

hello, im trying to make a fish system that you can fish anywere at the water, but i dont know how to make it register that you are at the water
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=182459
Reply
#3

You can only fish at the fishing place with that fish system
Reply
#4

Try using this. You would have to define areas all over the map.

https://sampwiki.blast.hk/wiki/Areacheck
Reply
#5

It is quiet hard to set IsPLayerIsInRangeOfPoint at every point.Just make two or three places where people can fish.
Like add IsPlayerInRangeOfPoint(playerid,range,x,y,z);
under the command.And if your want some one to make your script use the script thread.
Reply
#6

You can use zones, and then check if the player is in the zone, something like:
(I've never used any of this before but i think you can do something like this)

Code:
#define MAX_FISHINGZONES 50 //replace 50 with how many fishing zones you want as max
new FishingZones[MAX_FISHINGZONES]{//don't realy know how you define this but as i can remeber it's something like this
createzone(bla, bla, bla, bla, float, float, float),//i don't know that command either but I hope you get the point
createzone(bla, bla, bla, bla, float, float, float),
createzone(bla, bla, bla, bla, float, float, float),
createzone(bla, bla, bla, bla, float, float, float),
createzone(bla, bla, bla, bla, float, float, float),
}//and when you have placed them all here you are done with that, on the /fish command you add like
for(new i = 0; i<MAX_FISHINGZONES; i++){
IsPlayerInZone(playerid, FishingZones[i]){
//do the command here :)
}
}
Hope that helped you alot
Reply
#7

You could use STREAMER
And use
Code:
CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
IsPlayerInDynamicArea(playerid, areaid);
Reply
#8

Use this code:
Quote:

if (IsPlayerInRangeOfPoint(playerid,3,x,y,z);

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)