Entering and Exiting
#1

Hello everyone, how do i make it so that when i go overtop of a pickup i added and type /enter, i get telported to a different area. And then when im inside i go to the other pickup i put inside and type /exit and i leave.
Reply
#2

Well if you want to use commands you don't have to use pickups, but you could have them there for show anyway.

In the command you need to check the players interior and playertopoint them, and if both return true let them teleport.
Reply
#3

so could something like this work?

Код:
	else if(PlayerToPoint(20, i,2268.1936,2448.8289,-7.1953))
			{//LVPD Entrance
			  GameTextForPlayer(i, "Las Venturas Law Enforcement Center", 5000, 1);
				SetPlayerInterior(i, 6);
				SetPlayerPos(i,264.6288,77.5742,1001.0391);
			}
		}
Reply
#4

ok i've got a small issue. my teleport works, but whenever i do /enter, i appear where i want but i cannot see anything, it is all blue , almost like the textures are loading. I can see my character though.
Reply
#5

You need to make sure you set the player to the right interior.
Reply
#6

Quote:
Originally Posted by SimonXY
ok i've got a small issue. my teleport works, but whenever i do /enter, i appear where i want but i cannot see anything, it is all blue , almost like the textures are loading. I can see my character though.
it means that u use different interior
Reply
#7

okay, after thinking about it for an hour, that's what i thought thanks alot guys
Reply
#8

np
Reply
#9

btw, how am i supposed to know which interior to use?
Reply
#10

i've tried from like 6 to 18 and still no luck. anyone know if there is some way i can know which one to use?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)