Interior 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Interior Help!!! (
/showthread.php?tid=75062)
Interior Help!!! -
arachimi - 28.04.2009
How can I set interior for player in building?
It drop from sky.
help me please.
Re: Interior Help!!! -
MenaceX^ - 28.04.2009
Fix the interior..
Re: Interior Help!!! -
arachimi - 28.04.2009
Quote:
Originally Posted by MenaceX^
Fix the interior..
|
How
Re: Interior Help!!! -
MenaceX^ - 28.04.2009
Check the place's interiorid.
then in the command or where ever you set a player in this position, do
pawn Код:
SetPlayerInterior(playerid,interiorid);
Re: Interior Help!!! -
arachimi - 28.04.2009
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.
Re: Interior Help!!! -
miokie - 28.04.2009
Set the players interior before the position.
Re: Interior Help!!! -
NeRoSiS - 28.04.2009
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!
Re: Interior Help!!! -
MenaceX^ - 28.04.2009
Make a command and start checking the interior, teleport to there then freeze yourself, then start checking interiors' ids.
Re: Interior Help!!! -
arachimi - 28.04.2009
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!
|
Re: Interior Help!!! -
Enzo_Ferrari_V12 - 13.11.2009
and let's say you want to get out, do you set the virtual world to 0? Or what?