Planting drugs. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Planting drugs. (
/showthread.php?tid=358860)
Planting drugs. -
Kyle - 11.07.2012
Hi, Could you advice me on the factors and how should drug planting be allowed to plant.
I want to be able to use a function to see if the 'land' they are on is valid.
I don't want them to be able to plant in the middle of the streets etc.
Maybe in the countryside, mount chilliad, shady creeks etc. Places like that but without using isplayinarea.
Thank you.
Kyle
Re: Planting drugs. -
Kyle - 12.07.2012
Anyone have any suggestions?
Re: Planting drugs. -
newbienoob - 12.07.2012
IsPlayerInRangeOfPoint?
Re: Planting drugs. -
Kyle - 12.07.2012
Quote:
Originally Posted by newbienoob
IsPlayerInRangeOfPoint?
|
*sighs*
Re: Planting drugs. -
God'Z War - 12.07.2012
Better You Use PickUps
Re: Planting drugs. -
clarencecuzz - 12.07.2012
If you were to use pickups, he would have to spawn them EVERYWHERE. To be honest, I don't think this is even possible without having to go through thousands and thousands of lines, which means you would have to see if a player is on an object, which there are about 10,000 valid objects like land masses etc. I wouldn't go through all that trouble, so I'm just going to say, "No, it isn't possible unless you want to die before you finish scripting it."
Re: Planting drugs. -
Kyle - 12.07.2012
I was thinking about being able to use the current z height, is there any specific areas which don't have road so it's able to check via the z height etc.