Quote:
Originally Posted by Kindred
pawn Код:
CMD:enter(playerid, params[]) { if(IsPlayerInRangeOfPoint(playerid, blablabla)) // checks if in range of the /enter point { SetPlayerPos(playerid, NewPosX, NewPosY, NewPosZ); //Sets there new position RemoveBuildingForPlayer(playerid, .....); return 1; } else if(IsPlayerInRangeOfPoint(playerid, blablabla)) // Checks if near the exit door { SetPlayerPos(playerid, OldPosX, OldPosY, OldPosZ); } return 1; }
Like this? BTW, if you are trying to restore the building after it is removed, it is not possible.
|
The problem with this is that probably when somebody'll approach the exterior side of the building, it will be removed as well. I need something that calculates only the range of the interior (I have recorded the top X & Y points - the building is a L shaped one, therefore two pair of coordonates:
170.14, -152.19
145.39, -159.22
&
171.84, -153.91
162.93, -178.30
)