21.07.2012, 08:15
Hello, boys and girls! I was making fast /enter /exit and all works fine(impossible, huh? ) but, there is one big BUT - on /enter I putted that it doesn't only teleports to interior but also sets interior id. Compiled, everything looked good, but IG I discovered that only one of my interiors is shown. Others are only black or blue area, without any objects. I can hear sounds from that interior, but I don't see a shit. Like this:
I still can /exit from there, the only problem is the blue sky and no objects. I took coords from MTA wiki.
This is the script:
I still can /exit from there, the only problem is the blue sky and no objects. I took coords from MTA wiki.
This is the script:
PHP код:
CMD:enter(playerid, params[])// With + I mean place which interior works and - where it doesn't work.
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1553.5376,-1675.4498,16.1953))//LSPD -
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, 246.7840,64.3196,1003.6406);
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))//FBI -
SetPlayerPos(playerid, 238.8796,139.4095,1004.2648);
SetPlayerInterior(playerid, 3);
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1037.9946,-1339.8110,13.7266))//Donuts Shop -
SetPlayerPos(playerid, 377.1972, -192.5130,1002.5086);
SetPlayerInterior(playerid, 17);
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1569.7756,-1334.0330,16.4844))//Parachute -
SetPlayerPos(playerid, 1546.6072,-1366.2124,326.2109);
SetPlayerInterior(playerid, 0);
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2244.7349,-1664.2806,15.4766))//Binco -
SetPlayerPos(playerid, 207.7380,-109.0200,1005.1328);
SetPlayerInterior(playerid, 15);
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1458.7700,-1140.0200,24.0692))//ZIP -
SetPlayerPos(playerid, 161.3910,-95.2856,1001.8047);
SetPlayerInterior(playerid, 18);
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2167.1455,-1672.5360,15.0757))//Drugs -
SetPlayerPos(playerid, 318.7942,1116.4202,1083.8828);
SetPlayerInterior(playerid, 5);
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1365.1991,-1278.7695,13.5469))//Amunation +
SetPlayerPos(playerid, 286.1490,-40.6444,1001.5156);
SetPlayerInterior(playerid, 1);
}