SA-MP Forums Archive
Virtual World problem - 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: Virtual World problem (/showthread.php?tid=389936)



Virtual World problem - MrBlake - 04.11.2012

Please, explain me how to make HOUSES with the same interior, but every house with different virtual world.

I tried this:

Код:
enum hInfo
{
............
hWorld,
};
Код:
if(SpawnChange[playerid])
		    {
...............
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
Код:
if(strcmp(cmd, "/buyhouse", true) == 0)
.....................................
SetPlayerVirtualWorld(playerid,HouseInfo[h][hWorld]);
For /enter , /exit and /rentroom too.

But if I make a house in property.cfg, the virtual world value is deleted when the server turn on.


Код:
public LoadProperty()
{
	new arrCoords[30][64];
	new strFromFile2[256];
	new File: file = fopen("property.cfg", io_read);
.........................................
HouseInfo[idx][hWorld] = strval(arrCoords[29]);



Re: Virtual World problem - MrBlake - 04.11.2012

Solved, but need help for the chat. I want you cant see what players from another virtual world say


Re: Virtual World problem - PrawkC - 04.11.2012

In your onplayerchat have it check that you are in the same virtual world as the other players


Re: Virtual World problem - MrBlake - 04.11.2012

Solved.