Interior problem
#1

So I made a house, but whenever I enter it, I just fall from the sky, I have tried like all virtual worlds and the coordinates are completely right, whats the problem?

pawn Код:
if(strcmp(cmdtext, "/enter", true)==0)
    {
    if(PlayerToPoint(3, playerid, -425.2294,-3659.9846,12.9834))
        {
            GetPlayerPos(playerid,Pos[playerid][0],Pos[playerid][1],Pos[playerid][2]);
            PosSelected[playerid] = 1;
            SetPlayerPos(playerid,1767.115967,5843.313477,25483.246094);
            SetPlayerVirtualWorld(playerid,2);
            GameTextForPlayer(playerid,"~w~Welcome to the~n~~y~White Shadows Meeting Room",3000,4);
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED,"You're not at an entrance");
            PosSelected[playerid] = 0;
        }
        return 1;
    }
Reply
#2

Create a Register System and Save the money.

Some links to register systems can be found here: http://forum.sa-mp.com/showpost.php?...70&postcount=5
Reply
#3

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
Create a Register System and Save the money.

Some links to register systems can be found here: http://forum.sa-mp.com/showpost.php?...70&postcount=5
Thanks, I figured that out, updated with another problem
Reply
#4

Did you map this place on your own?
Is it in an interior?
Reply
#5

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
Did you map this place on your own?
Is it in an interior?
Yes I mapped it myself, and yes its an interior (I think?)
Reply
#6

Then you need to freeze the player and run a quick timer (1-3sec) which unfreezes him/her again.
Because the map has to be loaded first. (TogglePlayerControllable)
If it is an Interior, do not forget to set the Interior. (SetPlayerInterior)

Jeffry
Reply
#7

In MTA it said the interior is 3, but I have tried virtual world 3 and interior 3 and freezing the player but still nothing
Reply
#8

Quote:
Originally Posted by McCarthy
Посмотреть сообщение
In MTA it said the interior is 3, but I have tried virtual world 3 and interior 3 and freezing the player but still nothing
Can you show me one line of your created objects of this house please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)