House bug..
#1

Me and my friend, have a house with the same interior, and I see what he writes, he also see:

I'm


My Friend


Please help...
Reply
#2

I'm guessing you're using Virtual Worlds to seperate the two houses, so quite simply add a virtual world check to the local chat part of the script too.
Reply
#3

I tried but no wider. If you can tell in more detail.
Reply
#4

just add this to your command:
pawn Код:
SetPlayerVirtualWorld(playerid, x); //just put in a number instead of the "x"
Reply
#5

Quote:
Originally Posted by Madsen
Посмотреть сообщение
just add this to your command:
pawn Код:
SetPlayerVirtualWorld(playerid, 0);
Edit: What i meant is...use different virtual worlds every interior.
Reply
#6

yeah i was also going to write x but that might confuse him :S
Reply
#7

I am sure you house has an ID in your script. Set the VW to that ID when you enter the house.
Reply
#8

When a player is part of the house:
Код:
if(pickupid > pickups[0][houses]-1 && pickupid < pickups[1][houses]+1) //Houses
	{
	    new name[MAX_PLAYER_NAME];
		GetPlayerName(playerid,name,sizeof(name));

		if(!strcmp(name,houseDB[pickupid][owner_name],true)) //Is the player a home owner
			{
					SendClientMessage(playerid,BLUE,"Welcome to your home");
					SendClientMessage(playerid,BLUE,"");
					SendClientMessage(playerid,BLUE,"");
					SendClientMessage(playerid,GREEN,"");
					SendClientMessage(playerid,COLOR_LIME,"");
					SendClientMessage(playerid,COLOR_LIME,"");
					SendClientMessage(playerid,COLOR_RED,"");
		            SendClientMessage(playerid,COLOR_BLUE,"");
		            SendClientMessage(playerid,GREEN,"");
					new inter = houseDB[pickupid][setting];
					SetPlayerInterior(playerid,houseSETTINGS[inter][interior]);
					SetPlayerPos(playerid,houseSETTINGS[inter][enter_pos][0],houseSETTINGS[inter][enter_pos][1],houseSETTINGS[inter][enter_pos][2]);
					SetPlayerVirtualWorld(playerid,pickupid);
					Weed(playerid, pickupid);
					return 1;

			}
where should I write?
Reply
#9

Local chat needs to be re-written / modified to check the players virtual world

most of you are overlooking this
Reply
#10

If you're using ProxDetector for local chat then you should add a virtual world check there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)