SA-MP Forums Archive
Visual World, Please help - 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: Visual World, Please help (/showthread.php?tid=171726)



[help]! virtual World ! - fie - 27.08.2010

Hey, i just want to know how do i make a virtual world.

i mean so when you type something like /war it will remove all the stunt objects and place the war objects there and
when you type /stunt again it will remove the war objects and put the stunts back.

But also i want it a visual world so people can stunt and people can war but they cannot see each other.

Thanks.


Re: Visual World, Please help - WillyP - 27.08.2010

dont you mean virtual world?


Re: Visual World, Please help - Mauzen - 27.08.2010

You will need an object streamer, that supports creating objects in specific virtual worlds. Sa-mp cant do this alone.
Then just create all the stunt objects in one world, and the war objects in another one.
To change them, you then just need to set the players virtual world.


Re: Visual World, Please help - Nonameman - 27.08.2010

Virtual Worlds just make other players invisible if they are in other VWs, but if you use an object streamer, you can set the objects's VW too.

Offtopic: Mauzen was quicker


Re: Visual World, Please help - Mean - 27.08.2010

When you are making objects, you put his virtual world in format, like SetPlayerCheckpoint(bla, bla, virtualworld);
Understand?
and also
Код:
	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		SetPlayerVirtualWorld(playerid, 1); // Change this 1, it's virtual world
		return 1;
	}