24.02.2013, 20:18
Something like:
Just loop through all the plants and check if the player is in range of any of them.
pawn Code:
if(IsPlayerInRangeOfPoint(playerid,20.0,WeedInfo[weed][WeedX],WeedInfo[weed][WeedY],WeedInfo[weed][WeedZ])) return SendClientMessage(playerid,-1,"ERROR: You can't plant more weed here.");