Map & Script issue
#1

Well I'm deploying fences over an area in my server as I don't want players to get out of that area, but it's still possible to climb over fences if you use a vehicle, so I wanted to ask how I could make players unable to climb that fence-object, maybe making the player to fall right away or something, the model ID is 987 - it's an elecfencebar, I appreciate any helpful reply about it and I use MTA for mapping btw.
Reply
#2

SetPlayerWorldBounds
Reply
#3

Thanks James but that area isn't exact in coordinates, what I mean is it's a big area - a whole city, and the fences aren't ordered in direct lines but they go from side to side to side and block different kind of areas, if I was setting these coords then it'd make players unable to go to different spots I want them to go to, the fences aren't going straight, I need something more exact/specific if ya' got my point - not a circle but something complex.
Reply
#4

You could use IsPointInPolygon by RyDeR` and check for when the player isn't in the polygon. If you find that the player is not in the polygon, teleport him to the nearest point that is in the polygon. However, it'll be quite a lot of hassle to define the points of the polygon. If I were you, I'd make the polygon as simple as possible.
Reply
#5

Ok thank you, I'll work on it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)