SA-MP Forums Archive
Help with Virtualworld for houses. - 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: Help with Virtualworld for houses. (/showthread.php?tid=164436)



Help with Virtualworld for houses. - Vibrate17 - 31.07.2010

Hy everyone. Who can help me learn to use virtualworld to make more houses with same interior. Thank you all.


Re: Help with Virtualworld for houses. - Vince - 31.07.2010

Depends on the house system. If the houses have an actual id, you can set players virtual world to that id.
When they want to exit again, you can retrieve the house id by using GetPlayerVirtualWorld to set them to the right exit.


Re: Help with Virtualworld for houses. - Vibrate17 - 01.08.2010

I don't know if the houses have an actual id. I didn't know nothing about virtual world and how i can use this system. Please, someone can help me?

PS : Sorry for my bad english.


Re: Help with Virtualworld for houses. - Vibrate17 - 02.08.2010

I read some topics about virtualworld, but I can't found the answer of my problem. So can help me someone? Sorry for double post.


Re: Help with Virtualworld for houses. - Johndaonee - 02.08.2010

On the /enter there might be a line like this -
for(new i = 0; i < sizeof(Houses); i++)

then when he enters just add SetPlayerVirtualWorld(playerid,i);
and when he exits, set the virtualworld back to 0 by setting his vir world to i means that his virtual world will be the houses ID