OnPlayerInteriorChange help
#5

i don't understand....If theres a closing brace problem wouldn't there be errors....It's just not doing what it's supposed to be which is teleporting me from one place to another when exiting through yellow marker


Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
 if(oldinteriorid == 3 && newinteriorid == 0)
{
	if(GetPlayerVirtualWorld(playerid) == 1)
	{
		SetPlayerVirtualWorld(playerid,0);
  	//SetPlayerInterior(playerid,0);
  	SetPlayerPos(playerid,1877.6157,-1740.8281,13.4860);
  	SetPlayerFacingAngle(playerid,187.0764);
  	SetCameraBehindPlayer(playerid);
  	LeftTwoFourSeven[playerid] =1;
  	TimeToMoveTwoFourSeven[playerid] =3;
  	TogglePlayerControllable(playerid, 0);
}
 if(oldinteriorid == 4 && newinteriorid == 0)
{
  if(GetPlayerVirtualWorld(playerid) == 2)
	{
  	SetPlayerVirtualWorld(playerid,0);
  	//SetPlayerInterior(playerid,0);
  	SetPlayerPos(playerid,1933.4030,-1776.1339,13.3828);
  	SetPlayerFacingAngle(playerid,272.7751);
  	SetCameraBehindPlayer(playerid);
  	LeftTwoFourSeven[playerid] =2;
  	TimeToMoveTwoFourSeven[playerid] =3;
  	TogglePlayerControllable(playerid, 0);
  }
	}
	}
	return 1;
}
Reply


Messages In This Thread
OnPlayerInteriorChange help - by ruckfules99 - 24.02.2010, 20:06
Re: OnPlayerInteriorChange help - by killdahobo99 - 24.02.2010, 21:01
Re: OnPlayerInteriorChange help - by Joe Staff - 24.02.2010, 21:04
Re: OnPlayerInteriorChange help - by killdahobo99 - 24.02.2010, 21:08
Re: OnPlayerInteriorChange help - by ruckfules99 - 24.02.2010, 21:10
Re: OnPlayerInteriorChange help - by Joe Staff - 24.02.2010, 21:17
Re: OnPlayerInteriorChange help - by ruckfules99 - 24.02.2010, 21:24
Re: OnPlayerInteriorChange help - by Nero_3D - 24.02.2010, 21:26
Re: OnPlayerInteriorChange help - by ruckfules99 - 24.02.2010, 21:29

Forum Jump:


Users browsing this thread: 1 Guest(s)