Teleport - 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: Teleport (
/showthread.php?tid=124335)
Teleport -
AcId n RaPiD - 30.01.2010
I made a command so that it teleports me to my mapped interior... but when I teleport it takes me back to interior "0" near the City Hall... but I don't teleport to my interior... And here's my code or w/e.
pawn Код:
if(strcmp(cmd, "/gotoc", true) ==0)
{
SetPlayerPos(playerid,1524.2010498047,-1906.0771484375,-4147.4150390625);
SetPlayerInterior(playerid, 18);
return 1;
}
Is there a problem with it that does not let me teleport into my MAPPED interior?
Re: Teleport -
Norn - 30.01.2010
Probably because the coordinates are so long.
Re: Teleport -
AcId n RaPiD - 30.01.2010
I don't think so because those are MTA converted coords. So idk. It teleports me to the interior but then the interior disappears and I teleport near the city hall.
Re: Teleport -
Norn - 30.01.2010
Quote:
Originally Posted by ♥ i love her ♥
I don't think so because those are MTA converted coords. So idk. It teleports me to the interior but then the interior disappears and I teleport near the city hall.
|
Yes, it could work in mta but in sa-mp it's possible the coordinates are not usable.
Re: Teleport -
AcId n RaPiD - 31.01.2010
Anyone? Pls.
Re: Teleport -
Miguel - 31.01.2010
Try:
pawn Код:
if( strcmp( cmd , "/gotoc" , true ) == 0 )
{
SetPlayerPos( playerid , 1524.2010 , -1906.0771 , -4147.4150 );
SetPlayerInterior( playerid , 18 );
return 1;
}
Re: Teleport -
AcId n RaPiD - 31.01.2010
Nop... I see the interior when I type /gotoc but then it teleports me back near the City Hall....
Re: Teleport -
s0nic - 31.01.2010
Try to set the interior first?
At times when your tp'ed to the location before your interior set you will most likely fall and then respawn at a certain point..this one being City Hall.
Re: Teleport -
AcId n RaPiD - 31.01.2010
None of that works, seriously wtf. Someone has to know the problem at least....
Re: Teleport -
Peep - 01.02.2010
You mapped a interior to int 18 ?
How ? you put objects into the int 18 too ?