SA-MP Forums Archive
interior - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: interior (/showthread.php?tid=65937)



interior - amrour - 17.02.2009

well i wanna check out sfpd interior, how to make a command to teleport in there or something?


Re: interior - Kanji_Suzuki - 17.02.2009

Quote:
Originally Posted by Lenny.
well i wanna check out sfpd interior, how to make a command to teleport in there or something?
if your useing the GF mode find the /enter command and add

Код:
else if (PlayerToPoint(8.0, playerid,//Out side of pd code))
			{
			  GameTextForPlayer(playerid, "~w~Welcome to the Police Offices", 5000, 1);
			  SetPlayerInterior(playerid,6);
				SetPlayerPos(playerid,246.7840,63.9003,1003.6406);// inside pd
			}
then find /exit command

Код:
else if (PlayerToPoint(8.0, playerid,246.7840,63.9003,1003.6406))// in pd
			{
			  SetPlayerInterior(playerid,0);
				SetPlayerPos(playerid,//out side pd code);
			}
or just a tp
Код:
if (strcmp("/gotopd", cmdtext, true) == 0)
			{
			  GameTextForPlayer(playerid, "~w~Welcome to the Police Offices", 5000, 1);
			  SetPlayerInterior(playerid,6);
				SetPlayerPos(playerid,246.7840,63.9003,1003.6406);// inside pd
                      return 1;
                      }



Re: interior - amrour - 17.02.2009

im not using gf, also im not trying to make myself enter from in front of door, i just want teleport there so i see how it looks like, cos i don't know.


Re: interior - Kanji_Suzuki - 17.02.2009

ok i updated my post ^^