SA-MP Forums Archive
Set Interiors of Faction (Raven's Roleplay) - 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: Set Interiors of Faction (Raven's Roleplay) (/showthread.php?tid=393328)



Set Interiors of Faction (Raven's Roleplay) - DexterBR - 17.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: Set Interiors of Faction (Raven's Roleplay) - Kreyg - 18.11.2012

Are you setting the PlayerInfo[playerid][pInteriorNr] or are you using SetPlayerInterior(playerid, INT);?


Respuesta: Set Interiors of Faction (Raven's Roleplay) - [CG]Milito - 18.11.2012

it's clearly a SetPlayerVirtualWorld error


Re: Set Interiors of Faction (Raven's Roleplay) - DexterBR - 18.11.2012

I want change interior of some factions, putting int's of casinos


Re: Set Interiors of Faction (Raven's Roleplay) - Kreyg - 18.11.2012

Can you show us the code you're working with?


Re: Set Interiors of Faction (Raven's Roleplay) - DexterBR - 18.11.2012

I just change 'teleport' locations, but doesnt work.
These are the locations that interiors coordinates appear. I just change it

Код:
else if (IsPlayerInRangeOfPoint(playerid, 1,1298.7075,-798.5981,84.1406))
		{
			//La Famiglia Sinatra  gang hq
			if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
			{
				SafeSetPlayerPos(playerid, 1254.3436,-789.3809,1084.0078);
				GameTextForPlayer(playerid, "~w~La Famiglia Sinatra HQ",5000,1);
				SafeSetPlayerInterior(playerid,5);
				SetPlayerFacingAngle(playerid, 181);
				PlayerInfo[playerid][pInteriorNr] = 31;
			}
			else if(hqlock[luclock] == 0)
			{
			    SafeSetPlayerPos(playerid, 1254.3436,-789.3809,1084.0078);
				GameTextForPlayer(playerid, "~w~La Famiglia Sinatra HQ",5000,1);
				SafeSetPlayerInterior(playerid,5);
				SetPlayerFacingAngle(playerid, 181);
				PlayerInfo[playerid][pInteriorNr] = 31;
			}
			else
			{
			    GameTextForPlayer(playerid, "~r~Locked",5000,1);
			}
		}
Код:
				if (IsPlayerInRangeOfPoint(playerid, 3,1298.7075,-798.5981,84.1406))
				{
				    SafeSetPlayerInterior(playerid,5);
					GameTextForPlayer(playerid, "~r~Breached the door", 5000, 1);
					SafeSetPlayerPos(playerid, 1254.3436,-789.3809,1084.0078);



Re: Set Interiors of Faction (Raven's Roleplay) - DexterBR - 18.11.2012

Quote:
Originally Posted by Kreyg
Посмотреть сообщение
Can you show us the code you're working with?
Already been posted


Re: Set Interiors of Faction (Raven's Roleplay) - DexterBR - 20.11.2012

Anyone can help?


Re: Set Interiors of Faction (Raven's Roleplay) - dino_d_carter - 19.12.2012

Quote:

SafeSetPlayerInterior(playerid,5);

Change that to the int.


Re: Set Interiors of Faction (Raven's Roleplay) - DiGiTaL_AnGeL - 09.02.2013

You don't have to change only the int, change the position too.