SA-MP Forums Archive
Boundaries Shape - 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: Boundaries Shape (/showthread.php?tid=311371)



Boundaries Shape - spd_sahil - 16.01.2012

Is it Necessary that boundaries have to have a Rectangular Shape ? what if i want a circular boundary


Re: Boundaries Shape - thimo - 16.01.2012

Circel would work fine i guess.. O_o


Re: Boundaries Shape - spd_sahil - 16.01.2012

SetPlayerWorldBounds.. thats what im talking about.. how would i make a circular boundary but ?


Re: Boundaries Shape - thimo - 16.01.2012

Ah... Well i wont use that.... Just try using ISPlayerInRange of point and if he isnt kill him or reset his pos to somewhere...


Re: Boundaries Shape - Niko_boy - 16.01.2012

me too agree , there must be a circular boundries cause as it will be equal from differnt points to centre
MORE ACCURATE


Re: Boundaries Shape - 2KY - 16.01.2012

You can't use SetPlayerWorldBounds for this, as far as I know. I've seen a custom stock "IsPlayerInCircle" in the useful functions topic on here that would be beneficial to your needs.


Re: Boundaries Shape - spd_sahil - 17.01.2012

Hmmm .. isplayerinrangeofpoint will give me a lot of unwanted results.. isplayerincircle.. ill check that out ^^^^ thanks