Exiting interiors
#4

Try this:
Код:
for(new i=0; i < MAX_DOORS; i++)
	{
	    if(!IsPlayerInRangeOfPoint(playerid, 2.0, DoorInfo[i][dInteriorX], DoorInfo[i][dInteriorY], DoorInfo[i][dInteriorZ]) && DoorInfo[i][dInteriorInt] == GetPlayerInterior(playerid) && DoorInfo[i][dInteriorVir] == GetPlayerVirtualWorld(playerid)) continue;
	    SetPlayerInterior(playerid, DoorInfo[i][dExteriorInt]);
	    SetPlayerVirtualWorld(playerid, DoorInfo[i][dExteriorVir]);
	    SetPlayerPos(playerid, DoorInfo[i][dExteriorX], DoorInfo[i][dExteriorY], DoorInfo[i][dExteriorZ]);
      printf("ExteriorX: %f, ExteriorY: %f, ExteriorZ: %f", DoorInfo[i][dExteriorX], DoorInfo[i][dExteriorY], DoorInfo[i][dExteriorZ])
	    SetPlayerFacingAngle(playerid, DoorInfo[i][dExteriorAngle]);
	    SetCameraBehindPlayer(playerid);
	}
Go in-game, use the /exit command and check what the server console is printing you.
Reply


Messages In This Thread
Exiting interiors - by SquirrelLSRP - 28.07.2015, 20:18
Re: Exiting interiors - by Dan. - 28.07.2015, 20:22
Re: Exiting interiors - by SquirrelLSRP - 28.07.2015, 20:26
Re: Exiting interiors - by Dan. - 28.07.2015, 20:31
Re: Exiting interiors - by SquirrelLSRP - 29.07.2015, 01:20
Re: Exiting interiors - by Abagail - 29.07.2015, 01:29
Re: Exiting interiors - by SquirrelLSRP - 29.07.2015, 01:40
Re: Exiting interiors - by SoFahim - 29.07.2015, 04:40

Forum Jump:


Users browsing this thread: 1 Guest(s)