30.07.2012, 23:34
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
#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 :) } }
CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1); IsPlayerInDynamicArea(playerid, areaid);
if (IsPlayerInRangeOfPoint(playerid,3,x,y,z); |