Interior Help!!!
#1

How can I set interior for player in building?

It drop from sky.

help me please.
Reply
#2

Fix the interior..
Reply
#3

Quote:
Originally Posted by MenaceX^
Fix the interior..
How
Reply
#4

Check the place's interiorid.
then in the command or where ever you set a player in this position, do
pawn Код:
SetPlayerInterior(playerid,interiorid);
Reply
#5

Quote:
Originally Posted by MenaceX^
Check the place's interiorid.
then in the command or where ever you set a player in this position, do
pawn Код:
SetPlayerInterior(playerid,interiorid);
Hmm!!

I mean how cna I check the place's interiorid for not drop from sky.

Thank sir.
Reply
#6

Set the players interior before the position.
Reply
#7

Firstly, get your interior and co-ordinates from some where like the following https://sampwiki.blast.hk/wiki/InteriorIDs

For this example I will be using the first one on that web page, 24/7 1.

As you can see it gives you a universe (Interior) ID and 3 co-ordinates.

You will use the interior ID in the following.
pawn Код:
SetPlayerInterior(playerid, 17);
Then you'll use the co-ordinates in the following format.
SetPlayerPos(playerid, X, Y, Z);

So from the example I am using I will do this.
pawn Код:
SetPlayerPos(playerid,-25.884499,-185.868988,1003.549988);
Then you put those together to make a command like the following, which teleports you to the interior.
pawn Код:
if(strcmp(cmdtext,"/247",true)==0)
    {
    SetPlayerInterior(playerid, 17);
    SetPlayerPos(playerid,-25.884499,-185.868988,1003.549988);
    return 1;
    }
Remember to always put the interior before the position

Hope I helped!
Reply
#8

Make a command and start checking the interior, teleport to there then freeze yourself, then start checking interiors' ids.
Reply
#9

Oh!!!

Help a lot.

Thank you very much.
Quote:
Originally Posted by NeRoSiS
Firstly, get your interior and co-ordinates from some where like the following https://sampwiki.blast.hk/wiki/InteriorIDs

For this example I will be using the first one on that web page, 24/7 1.

As you can see it gives you a universe (Interior) ID and 3 co-ordinates.

You will use the interior ID in the following.
pawn Код:
SetPlayerInterior(playerid, 17);
Then you'll use the co-ordinates in the following format.
SetPlayerPos(playerid, X, Y, Z);

So from the example I am using I will do this.
pawn Код:
SetPlayerPos(playerid,-25.884499,-185.868988,1003.549988);
Then you put those together to make a command like the following, which teleports you to the interior.
pawn Код:
if(strcmp(cmdtext,"/247",true)==0)
    {
    SetPlayerInterior(playerid, 17);
    SetPlayerPos(playerid,-25.884499,-185.868988,1003.549988);
    return 1;
    }
Remember to always put the interior before the position

Hope I helped!
Reply
#10

and let's say you want to get out, do you set the virtual world to 0? Or what?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)