08.06.2015, 15:42
Quote:
Alright so I made this little drawing (bear in mind im on a phone)
Orange with red indicates a building, red indicates stairs, yellow is a door pickup and green is you, arrow is the direction youre facing ![]() (its crap, i know) Lets say you make the door at that yellow dot, and want people to exit at the green dot(you), you have to face the door, getxyinfront of player BUT with a distance of minus two(or 1,3 r w/e) and set that to the exit position. So after you've got the position, make it like this Код:
GetPlayerPos(playerid, x, y, z); GetXYInfrontOfPlayer(playerid, x, y, -2); DoorInfo[doorid][ExitPosx] = x; |