29.04.2011, 19:08
House bug..
29.04.2011, 19:19
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.
30.04.2011, 19:44
I tried but no wider. If you can tell in more detail.
30.04.2011, 22:31
(
Последний раз редактировалось Madsen; 30.04.2011 в 23:49.
)
just add this to your command:
pawn Код:
SetPlayerVirtualWorld(playerid, x); //just put in a number instead of the "x"
30.04.2011, 22:40
30.04.2011, 22:41
yeah i was also going to write x but that might confuse him :S
30.04.2011, 23:02
I am sure you house has an ID in your script. Set the VW to that ID when you enter the house.
01.05.2011, 09:14
When a player is part of the house:
where should I write?
Код:
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; }
01.05.2011, 09:22
Local chat needs to be re-written / modified to check the players virtual world
most of you are overlooking this
most of you are overlooking this
01.05.2011, 09:45
If you're using ProxDetector for local chat then you should add a virtual world check there.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)