Custom Interior /enter help
#1

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?
Reply
#2

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).
Reply
#3

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?
Reply
#4

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.
Reply
#5

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

http://weedarr.wikidot.com/interior

Does this help you ?
Reply
#7

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?
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)