19.02.2015, 20:53
Create a command called /enter and /exit.
With /enter:
Check if the player is in range of the outside point of the building
Using IsPlayerInRangeOfPoint.
Then if he is, use SetPlayerPos to set the player's position to the inside coordinates.
Do the same with /exit, check if they are at the inside coordinates, if so, SetPlayerPos to the outside coordinates.
With /enter:
Check if the player is in range of the outside point of the building
Quote:
1547.1053,-1271.2018,17.4063,137.6826 |
Then if he is, use SetPlayerPos to set the player's position to the inside coordinates.
Quote:
1545.7811,-1269.5010,17.4063 |