Falling through interior on /enter
#1

I keep falling through the interior on this /enter code,

Код:
if(strcmp(cmdtext, "/enter", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3 , 2755.57, -1276.32, 56.59))
   {
      SetPlayerInterior(1, playerid);
      SetPlayerPos(playerid, -2159.122802,641.517517,1052.381713);
      return 1;
   }
}

if(strcmp(cmdtext, "/exit", true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 3, -2159.122802,641.517517,1052.381713))
   {
      SetPlayerInterior(0, playerid);
      SetPlayerPos(playerid, 2755.57, -1276.32, 56.59);
      return 1;
   }
}
I get into the interior and see the pickup for /exit but then fall through the interior and end up falling from the sky.
Reply
#2

Check Coordinates or Interior is right?
Reply
#3

z+0.5 normally does the trick
Reply
#4

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
z+0.5 normally does the trick
It kinda did. I get to a black room and I quickly freeze to prevent myself from falling, its all black, I check my vw and it says 0 so it's like it's not sending me to VW1 even though I've told it too.
Reply
#5

Try freezing the player with IsPlayerControllable and then add a timer to that so the interior can load.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)