Fish system(fish at the water) -
Mikkel_RE - 30.07.2012
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
Re: Fish system(fish at the water) -
Zarky - 30.07.2012
https://sampforum.blast.hk/showthread.php?tid=182459
Re: Fish system(fish at the water) -
Mikkel_RE - 30.07.2012
You can only fish at the fishing place with that fish system
Re: Fish system(fish at the water) -
Makaveli93 - 30.07.2012
Try using this. You would have to define areas all over the map.
https://sampwiki.blast.hk/wiki/Areacheck
Re: Fish system(fish at the water) -
TaLhA XIV - 30.07.2012
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.
Re: Fish system(fish at the water) -
Ranama - 31.07.2012
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
Re: Fish system(fish at the water) -
[MM]RoXoR[FS] - 31.07.2012
You could use
STREAMER
And use
Code:
CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
IsPlayerInDynamicArea(playerid, areaid);
Re: Fish system(fish at the water) -
Jermi - 31.07.2012
Use this code:
Quote:
if (IsPlayerInRangeOfPoint(playerid,3,x,y,z);
|