Need help with 24/7 Interrior
#1

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
Reply
#2

You have to create the ENTER and EXIT cords in the script file.
For example:
pawn Код:
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.
        }
Reply
#3

SetPlayerPos(playerid, X,Z,Y); Should i set the coords at the entrance or inside the 24/7?
Reply
#4

James if you are using NGRP script make sure to set another VW

for exemple
/ddnext --- /ddedit exterior (DoorID)--- choose the 24/7 interior --- inside the interior type /setvw (yourID) (random number) --- /ddedit interior (DoorID)


and then get back to the RW /setvw (yourID) (0)




random number= 0213,1526,1526,1524486,5598,......
Reply
#5

Quote:
Originally Posted by JamesJohnson
Посмотреть сообщение
SetPlayerPos(playerid, X,Z,Y); Should i set the coords at the entrance or inside the 24/7?
As i wrote the SetPlayerPos is the line that TELEPORTS the player, inside or outside of the desired location.
So yes write the cords inside the 24/7 there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)