SA-MP Forums Archive
Custom Interior /enter help - 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: Custom Interior /enter help (/showthread.php?tid=350823)



Custom Interior /enter help - Mike97300 - 13.06.2012

Well, the /enter as I see it, works like this

Код:
CMD:enter(playerid, params[])
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1833.6599,-1842.4498,13.5781))
        {
            SetPlayerPos(playerid, -30.9769,-90.6926,1003.5469);//inside 24/7
            SetPlayerInterior(playerid, 18);
        }
    }
At least mine does, but custom interiors don't have an interior id, so....How do you make it so you can go inside of them?


Re: Custom Interior /enter help - Kindred - 13.06.2012

First off, return 1 after the first end bracket if you didn't already.

Second, if it's a custom interior, they don't have interior id's, so you can set it to anything (I believe).


Re: Custom Interior /enter help - Mike97300 - 13.06.2012

Okay, I know how to make objects and all but, like for example, I want to make it so you can go inside of the interior "SF Police HQ" but I can't find it in MTA and even if I did, how would I get in there so I could find the co-ordinates?


Re: Custom Interior /enter help - Djumza - 13.06.2012

Well you don't use "SetPlayerInterior" ...

pawn Код:
//=======================================BANK ENTER/EXIT====================================//
        if(IsPlayerInRangeOfPoint(playerid, 2.0, -1581.2850,865.9330,7.6473)) //Bank enter
        {
        SetPlayerPos(playerid,2315.952880,-1.618174,26.742187);
            SetCameraBehindPlayer(playerid);
            SendClientMessage(playerid,COLOR_WHITE,"[SF Bank]: Welcome!");
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2.0, 2315.952880,-1.618174,26.742187)) //Bank exit
        {      
                SetPlayerPos(playerid,-1580.4641,862.9164,7.4268);
            SetCameraBehindPlayer(playerid);
            SendClientMessage(playerid,COLOR_WHITE,"[SF Bank]: Goodbye!");
        }
EDIT: I forgot;
Here's my enter in Bank... Interior id = 0.


Re: Custom Interior /enter help - Mike97300 - 13.06.2012

I see, but how do you get the co-ordinates for where you enter inside if you make it in MTA?


Re: Custom Interior /enter help - Djumza - 13.06.2012

http://weedarr.wikidot.com/interior

Does this help you ?


Re: Custom Interior /enter help - Mike97300 - 13.06.2012

No, not really, so lets say I create a custom interior in MTA SA, then if I put the interior to 18 for example, obviously the objects will not be there, so how do I get that interior?


Re: Custom Interior /enter help - Djumza - 13.06.2012

Oh now i get it... And sadly i don't have answer for your question !