SA-MP Forums Archive
[HELP]How to set player inside a 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)
+--- Thread: [HELP]How to set player inside a interior? (/showthread.php?tid=578318)



[HELP]How to set player inside a interior? - JBee - 18.06.2015

case 1, 2:
{
SetPlayerVirtualWorld(playerid, 12);
SetPlayerPos (playerid, 328.493988,1480.589966,1084.449951);
SetPlayerInterior (playerid, 15);
SetPlayerCameraPos(playerid, 2419.3413,-1682.3987,13.7442);
SetPlayerCameraLookAt(playerid, 2422.1960,-1682.1135,13.799;
GameTextForPlayer(playerid, "~g~Grove Street Families", 5000, 5);
ApplyAnimation(playerid, "SPRAYCAN", "spraycan_fire", 4.1, 1, 1, 1, 1, 1, 1);
SetPlayerColor(playerid, 0x00FF0096);
gTeam[playerid] = TEAM_GS;
}
}


Re: [HELP]How to set player inside a interior? - J0sh... - 18.06.2015

You did....


Re: [HELP]How to set player inside a interior? - AndySedeyn - 18.06.2015

The coordinates you have specified probably don't match the location of the interior. Every interior has a location in the SA map plus an ID.

Refer to the following websites to find the coordinates and the interior ID of each interior:
http://weedarr.wikidot.com/interior
https://sampwiki.blast.hk/wiki/InteriorIDs