SA-MP Forums Archive
How set interiors ids - 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: How set interiors ids (/showthread.php?tid=395557)



How set interiors ids - DexterBR - 26.11.2012

How can i set factions's interiors ?
I've tried put using interiors IDs, replacing all entrances on the GM, but when i try enter by the door, character is teleported to sky, and fall ...
There is something about virtual world, another mistake, or thing that i had forgot?
Thanks for support guys


Re: How set interiors ids - DaRoderick - 26.11.2012

SetPlayerInterior(playerid,*interior-ID here*)


Re: How set interiors ids - jueix - 26.11.2012

you could do thing's like this

pawn Код:
SetPlayerPos(playerid, X,Y,Z); //positon in here
SetPlayerInterior(playerid, Interiourid); //Int in here
SetPlayerVirtualWorld(playerid, VWID); //vw in here
interior ids getable here http://weedarr.wikidot.com/interior


AW: How set interiors ids - Blackazur - 26.11.2012

Like that, example: SetPlayerInterior(playerid,0);


Re: How set interiors ids - DexterBR - 26.11.2012

I replace all olds IDS for the news (Using https://sampwiki.blast.hk/wiki/InteriorIDs), but doesnt work ...
Character still is teleported to sky, and falling into oblivion


AW: How set interiors ids - Blackazur - 26.11.2012

That must work, when you set the correct Universe ID.


Re: How set interiors ids - SmithyComp - 26.11.2012

Do you mean an in-game command, for example dynamic doors?


If so, teleport to the place you wish to go to and /ddedit or whatever /ddedit interior (door id) and it'll set it like that.


Re: How set interiors ids - DexterBR - 26.11.2012

I replace all entrances for Jay's diner (457.304748,-88.428497,999.554687) to Saint Marks Bistro (-750.80,491.00,1371.70).

Код:
{
				                BizzInfo[houseid][bExitX] = 460.265411;
						BizzInfo[houseid][bExitY] = -88.611503;
						BizzInfo[houseid][bExitZ] = 1371.70;

						BizzInfo[houseid][bBuyPrice] = 300000;
						BizzInfo[houseid][bLevelNeeded] = 5;
						BizzInfo[houseid][bInterior] = 4;
						BizzInfo[houseid][bInteriorNr] = 38;

						strmid(BizzInfo[houseid][bMessage],"Restaurant",0,strlen("Restaurant"),255);
					}
to

Код:
{
				                BizzInfo[houseid][bExitX] = -750.80;
						BizzInfo[houseid][bExitY] = 491.00;
						BizzInfo[houseid][bExitZ] = 999.554687;

						BizzInfo[houseid][bBuyPrice] = 300000;
						BizzInfo[houseid][bLevelNeeded] = 5;
						BizzInfo[houseid][bInterior] = 1;
						BizzInfo[houseid][bInteriorNr] = 38;

						strmid(BizzInfo[houseid][bMessage],"Restaurant",0,strlen("Restaurant"),255);
					}



Re: How set interiors ids - DexterBR - 26.11.2012

The server works with another database.

There're three Restaurants in server, and i tried replace too, but characters stills falling.

Example:

Код:
Owned=0
Owner=The State
Message=Restaurant
ExtortionBy=No-One
Entrance_X=1015.725585
Entrance_Y=-1508.778442
Entrance_Z=13.535696
Exit_X=460.265411
Exit_Y=-88.611503
Exit_Z=999.554687
LevelNeeded=5
Price=300000
EntranceCost=0
Till=0
Locked=0
Interior=4
Products=495
MaxProducts=500
ProductPrice=100
VirtualWorld=24
InteriorNr=38
Setted=1
I change Exit_X , Exit_Y and Exit_Z and interior, to 1.

What else should i change?


Re: How set interiors ids - DexterBR - 26.11.2012

Sry guys, i got it, just replacing.

Thanks everybody