Teleport
#1

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

Probably because the coordinates are so long.
Reply
#3

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.
Reply
#4

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.
Reply
#5

Anyone? Pls.
Reply
#6

Try:
pawn Код:
if( strcmp( cmd , "/gotoc" , true ) == 0 )
{
  SetPlayerPos( playerid , 1524.2010 , -1906.0771 , -4147.4150 );
  SetPlayerInterior( playerid , 18 );
  return 1;
}
Reply
#7

Nop... I see the interior when I type /gotoc but then it teleports me back near the City Hall....
Reply
#8

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.
Reply
#9

None of that works, seriously wtf. Someone has to know the problem at least....
Reply
#10

You mapped a interior to int 18 ?
How ? you put objects into the int 18 too ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)