Set Interiors of Faction (Raven's Roleplay)
#1

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
Reply
#2

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

it's clearly a SetPlayerVirtualWorld error
Reply
#4

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

Can you show us the code you're working with?
Reply
#6

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);
Reply
#7

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

Anyone can help?
Reply
#9

Quote:

SafeSetPlayerInterior(playerid,5);

Change that to the int.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)