Need help with 24/7 Interrior -
JamesJohnson - 21.11.2013
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
Re: Need help with 24/7 Interrior -
$Marco$ - 21.11.2013
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.
}
Re: Need help with 24/7 Interrior -
JamesJohnson - 21.11.2013
SetPlayerPos(playerid, X,Z,Y); Should i set the coords at the entrance or inside the 24/7?
Re: Need help with 24/7 Interrior -
TunisianoGamer - 21.11.2013
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,......
Re: Need help with 24/7 Interrior -
$Marco$ - 21.11.2013
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.