Virtual World problem
#1

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

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

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

Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)