SA-MP Forums Archive
House bug.. - 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: House bug.. (/showthread.php?tid=252015)



House bug.. - Ectazy - 29.04.2011

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...


Re: House bug.. - JaTochNietDan - 29.04.2011

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.


Re: House bug.. - Ectazy - 30.04.2011

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


Re: House bug.. - Madsen - 30.04.2011

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



Re: House bug.. - Steven82 - 30.04.2011

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.


Re: House bug.. - Madsen - 30.04.2011

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


Re: House bug.. - mprofitt - 30.04.2011

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


Re: House bug.. - Ectazy - 01.05.2011

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?


Re: House bug.. - Rachael - 01.05.2011

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

most of you are overlooking this


Re: House bug.. - MadeMan - 01.05.2011

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