31.07.2012, 02:23
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)
Hope that helped you alot
(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 :) } }