Interior is failing
#1

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:

PHP код:
CMD:enter(playeridparams[])// With + I mean place which interior works and - where it doesn't work.
{
if(
IsPlayerInRangeOfPoint(playerid3.01553.5376,-1675.4498,16.1953))//LSPD -
SetPlayerInterior(playerid6);
SetPlayerPos(playerid246.7840,64.3196,1003.6406);
if(
IsPlayerInRangeOfPoint(playerid3.01778.0828,-1664.6692,14.4355))//FBI -
SetPlayerPos(playerid238.8796,139.4095,1004.2648);
SetPlayerInterior(playerid3);
if(
IsPlayerInRangeOfPoint(playerid3.01037.9946,-1339.8110,13.7266))//Donuts Shop -
SetPlayerPos(playerid377.1972, -192.5130,1002.5086);
SetPlayerInterior(playerid17);
if(
IsPlayerInRangeOfPoint(playerid3.01569.7756,-1334.0330,16.4844))//Parachute -
SetPlayerPos(playerid1546.6072,-1366.2124,326.2109);
SetPlayerInterior(playerid0);
if(
IsPlayerInRangeOfPoint(playerid3.02244.7349,-1664.2806,15.4766))//Binco -
SetPlayerPos(playerid207.7380,-109.0200,1005.1328);
SetPlayerInterior(playerid15);
if(
IsPlayerInRangeOfPoint(playerid3.01458.7700,-1140.0200,24.0692))//ZIP -
SetPlayerPos(playerid161.3910,-95.2856,1001.8047);
SetPlayerInterior(playerid18);
if(
IsPlayerInRangeOfPoint(playerid3.02167.1455,-1672.5360,15.0757))//Drugs -
SetPlayerPos(playerid318.7942,1116.4202,1083.8828);
SetPlayerInterior(playerid5);
if(
IsPlayerInRangeOfPoint(playerid3.01365.1991,-1278.7695,13.5469))//Amunation +
SetPlayerPos(playerid286.1490,-40.6444,1001.5156);
SetPlayerInterior(playerid1);

Reply
#2

All the interiors are like this?
Reply
#3

I putted + and - for things that work and things that doesn't work.
Reply
#4

Here are the right itnerior id's
http://weedarr.wikidot.com/interior/
Reply
#5

Yeah, I compared to the link what you gave and it's similar to IDs what I have there. :P Any other ideas?
Reply
#6

Quote:
Originally Posted by Frosty_LV
Посмотреть сообщение
Yeah, I compared to the link what you gave and it's similar to IDs what I have there. :P Any other ideas?
use the interiors and x,y,z from there.

btw its long[hauler]
Reply
#7

pawn Код:
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);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))//FBI -
    {
        SetPlayerPos(playerid, 238.8796,139.4095,1004.2648);
        SetPlayerInterior(playerid, 3);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1037.9946,-1339.8110,13.7266))//Donuts Shop -
    {
        SetPlayerPos(playerid, 377.1972, -192.5130,1002.5086);
        SetPlayerInterior(playerid, 17);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1569.7756,-1334.0330,16.4844))//Parachute -
    {
        SetPlayerPos(playerid, 1546.6072,-1366.2124,326.2109);
        SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2244.7349,-1664.2806,15.4766))//Binco -
    {
        SetPlayerPos(playerid, 207.7380,-109.0200,1005.1328);
        SetPlayerInterior(playerid, 15);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1458.7700,-1140.0200,24.0692))//ZIP -
    {
        SetPlayerPos(playerid, 161.3910,-95.2856,1001.8047);
        SetPlayerInterior(playerid, 18);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2167.1455,-1672.5360,15.0757))//Drugs -
    {
        SetPlayerPos(playerid, 318.7942,1116.4202,1083.8828);
        SetPlayerInterior(playerid, 5);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1365.1991,-1278.7695,13.5469))//Amunation +
    {
        SetPlayerPos(playerid, 286.1490,-40.6444,1001.5156);
        SetPlayerInterior(playerid, 1);
    }
    return 1;
}
Reply
#8

I guess u find any other way, i faced the same problem in my TDM game mode
Reply
#9

Quote:
Originally Posted by Andi_Evandy
Посмотреть сообщение
pawn Код:
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);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1778.0828,-1664.6692,14.4355))//FBI -
    {
        SetPlayerPos(playerid, 238.8796,139.4095,1004.2648);
        SetPlayerInterior(playerid, 3);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1037.9946,-1339.8110,13.7266))//Donuts Shop -
    {
        SetPlayerPos(playerid, 377.1972, -192.5130,1002.5086);
        SetPlayerInterior(playerid, 17);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1569.7756,-1334.0330,16.4844))//Parachute -
    {
        SetPlayerPos(playerid, 1546.6072,-1366.2124,326.2109);
        SetPlayerInterior(playerid, 0);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2244.7349,-1664.2806,15.4766))//Binco -
    {
        SetPlayerPos(playerid, 207.7380,-109.0200,1005.1328);
        SetPlayerInterior(playerid, 15);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1458.7700,-1140.0200,24.0692))//ZIP -
    {
        SetPlayerPos(playerid, 161.3910,-95.2856,1001.8047);
        SetPlayerInterior(playerid, 18);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2167.1455,-1672.5360,15.0757))//Drugs -
    {
        SetPlayerPos(playerid, 318.7942,1116.4202,1083.8828);
        SetPlayerInterior(playerid, 5);
    }
    else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1365.1991,-1278.7695,13.5469))//Amunation +
    {
        SetPlayerPos(playerid, 286.1490,-40.6444,1001.5156);
        SetPlayerInterior(playerid, 1);
    }
    return 1;
}
Idk why, but this works :O Man you saved my life +Rep for you, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)