SA-MP Forums Archive
Random wirtual world for house. - 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: Random wirtual world for house. (/showthread.php?tid=566650)



Random wirtual world for house. - TiXz0r - 07.03.2015

Hello.


im making house system, and i have problem.

I dont know how to make this.


When creating house, server make file with, enter cordinates,exit cordtinates,interior,money.. and virtual world.

I want to make like this:

1. house: virtual world = 100
2. house: virutal world = 101
3. house: virutal world = 102
4. house ........
5. house .......

here is where setting wirutal world
HouseInfo[id][EnterVW] = ;


Re: Random wirtual world for house. - ATGOggy - 07.03.2015

Just set the id of the house as house's virtual world

Like SetPlayerVirtualWorld(playerid, houseid);

That's how I did it in my script.


Re: Random wirtual world for house. - TiXz0r - 07.03.2015

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
Just set the id of the house as house's virtual world

Like SetPlayerVirtualWorld(playerid, houseid);

That's how I did it in my script.
thanks.

rep+