21.11.2013, 16:19
Alright, so on my server when i'm doing /ddedit interior ID and sets the interior, so when i'm entering the door, i'm getting to the 24/7, but when i'm exiting i'm getting out in LS, out from another 24/7
else if(IsPlayerInRangeOfPoint(playerid, 1.0, X,Z,Y)) // ENTER pos | this checks if the player is in those cords
{
SetPlayerPos(playerid, X,Z,Y); // This line teleports the player inside the 24/7
SetPlayerInterior(playerid, 1); // Sets the interior to the shops interior.
SetPlayerFacingAngle(playerid, 350.4207); // Not needed but this sets the player facing angle.
SetCameraBehindPlayer(playerid); // Sets the camera behind the player.
}
else if(IsPlayerInRangeOfPoint(playerid, 1.0, X,Z,Y)) // Exit pos | this checks if the player is in those cords
{
SetPlayerPos(playerid, X,Z,Y); // This line teleports the player outside of the place.
SetPlayerInterior(playerid, 0); // Sets the interior back to the world interior.
SetPlayerFacingAngle(playerid, 350.4207); // Not needed but this sets the player facing angle.
SetCameraBehindPlayer(playerid); // Sets the camera behind the player.
}