Entering and Exiting - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Entering and Exiting (
/showthread.php?tid=79921)
Entering and Exiting -
SimonXY - 31.05.2009
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.
Re: Entering and Exiting -
Weirdosport - 31.05.2009
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.
Re: Entering and Exiting -
SimonXY - 31.05.2009
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);
}
}
Re: Entering and Exiting -
SimonXY - 31.05.2009
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.
Re: Entering and Exiting -
Weirdosport - 31.05.2009
You need to make sure you set the player to the right interior.
Re: Entering and Exiting -
HuRRiCaNe - 31.05.2009
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
Re: Entering and Exiting -
SimonXY - 31.05.2009
okay, after thinking about it for an hour, that's what i thought
thanks alot guys
Re: Entering and Exiting -
HuRRiCaNe - 31.05.2009
np
Re: Entering and Exiting -
SimonXY - 31.05.2009
btw, how am i supposed to know which interior to use?
Re: Entering and Exiting -
SimonXY - 01.06.2009
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?