WorldBounds question... - 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: WorldBounds question... (
/showthread.php?tid=336445)
WorldBounds question... -
[MNC]Azz - 22.04.2012
So I know what SetPlayerWorldBounds does...
My question is can it do the opposite?
Like: instead of keeping the player in the bounds it will kick him out of the bounds box...
So that the player cannot enter that area...
If its possible, can you tell me how?
If not..... well Ill have to find another way...
Re: WorldBounds question... -
[MNC]Azz - 22.04.2012
Ok.... then is there a way to keep a person from entering.... lets say this box?
xmin = 467.115, xmax = 163.4902, ymin = 2639.2, ymax = 2370.609
Re: WorldBounds question... -
RollTi - 22.04.2012
use something like IsPlayerInArea
or a function that related prevents player entering in that area
Re: WorldBounds question... -
[MNC]Azz - 22.04.2012
Theres no such thing as IsPlayerInArea... unless its an include...
but you did give me an idea! IsPlayerInRangeOfPoint
The problem now is... how do i find the range?