SA-MP Forums Archive
Need help with sort of borders - 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: Need help with sort of borders (/showthread.php?tid=473613)



Need help with sort of borders - TonyII - 03.11.2013

Hey, this is pretty hard for me to explain but I'll try my best. I want something to be like a border for example if the player stands on the border they get frozen. I don't mean IsPlayerInRangeOfPoint but a straight line that they cannot pass.


Re: Need help with sort of borders - TonyII - 04.11.2013

Bump


AW: Need help with sort of borders - Skimmer - 04.11.2013

I don't understand what you mean, but maybe about Animation check?

https://sampwiki.blast.hk/wiki/GetAnimationName


Re: Need help with sort of borders - TonyII - 04.11.2013

I mean like for example, I can do IsPlayerInRangeOfPoint(playerid,10,X,Y,Z) to check if player is in a range of 10. But instead of a range of 10 I want a straight line so they cannot pass the line.


Re: Need help with sort of borders - Tagathron - 04.11.2013

Tony,you can create an array of points,and then check if player is in range of any of them.
Just put a small value to the range,and then it will seem like it's a line.


Re: Need help with sort of borders - Ada32 - 04.11.2013

or.. you can use something like this -> https://sampforum.blast.hk/showthread.php?tid=427810


AW: Need help with sort of borders - Skimmer - 04.11.2013

Like this?




Re: AW: Need help with sort of borders - Tagathron - 04.11.2013

Quote:
Originally Posted by Skimmer
Посмотреть сообщение
Like this?

Yeah.He could set up a timer,so it checks if someone is on the line.

P.S. Tony don't BUMP. It's against the rules.


Re: AW: Need help with sort of borders - TonyII - 04.11.2013

Quote:
Originally Posted by Tagathron
Посмотреть сообщение
Tony,you can create an array of points,and then check if player is in range of any of them.
Just put a small value to the range,and then it will seem like it's a line.
Thats what came up to my mind first but it would've been alot of work. Thanks anyway.

Quote:
Originally Posted by Ada32
Посмотреть сообщение
or.. you can use something like this -> https://sampforum.blast.hk/showthread.php?tid=427810
I'm going to try that, thanks.

Quote:
Originally Posted by Skimmer
Посмотреть сообщение
Like this?

Thats exactly what I was trying to tell but was having quite trouble with it. Thanks.

Quote:
Originally Posted by Tagathron
Посмотреть сообщение
Yeah.He could set up a timer,so it checks if someone is on the line.

P.S. Tony don't BUMP. It's against the rules.
It passed 24 hours so it's not against the rules