SA-MP Forums Archive
Why is this /exit not working - 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)
+--- Thread: Why is this /exit not working (/showthread.php?tid=362727)



Why is this /exit not working - gychem - 25.07.2012

Код:
	else if(IsPlayerInRangeOfPoint(playerid,3.0,385.8938,173.8353,1008.3828)) //City Hall
			{
			    if(GetPlayerInterior(playerid) == 101)
			    {
			    	SetPlayerInterior(playerid, 0);
			    	SetPlayerVirtualWorld(playerid, 0);
			    	SetPlayerPos(playerid, 1481.2781,-1774.8430,15.3466);
                	SetPlayerFacingAngle(playerid, 181.8075);
                	SetCameraBehindPlayer(playerid);
				}
			}
All the others work except this one and cords are good.


Re: Why is this /exit not working - Kindred - 25.07.2012

Are you using a custom building? Cause if not, the interior for the "city hall interior most people use" is not 101, it is 3.


Re: Why is this /exit not working - TaLhA XIV - 25.07.2012

else if(IsPlayerInRangeOfPoint(playerid,3.0,385.8938,17 3.8353,1008.382) //City Hall
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, -1);
SetPlayerPos(playerid, 1481.2781,-1774.8430,15.3466);
SetPlayerFacingAngle(playerid, 181.8075);
SetCameraBehindPlayer(playerid);
}
use these


Re: Why is this /exit not working - gychem - 25.07.2012

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Are you using a custom building? Cause if not, the interior for the "city hall interior most people use" is not 101, it is 3.
Yes custom building and thanks, that works


Re: Why is this /exit not working - Lorenzo! - 25.07.2012

Normally it has to work, but do you need to set your interior to ''0'' once you want to exit and be able to get in the normal virtual world.


Re: Why is this /exit not working - SuperViper - 25.07.2012

When you're inside type /interior and see if it says 101.