SA-MP Forums Archive
RemoveBuilding for a VirtualWord.. - 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: RemoveBuilding for a VirtualWord.. (/showthread.php?tid=606782)



RemoveBuilding for a VirtualWord.. - Ult1mate - 08.05.2016

Hi to everyone !
RemoveBuildingForPlayer how to change VirtualWorld ?
Thanks


Re: RemoveBuilding for a VirtualWord.. - Sew_Sumi - 09.05.2016

You'll have to remove the object, then use a streamer to put it back in the virtual world that you want to have it.


Re: RemoveBuilding for a VirtualWord.. - Ult1mate - 09.05.2016

RemoveBuildingForPlayer for need to create a (streamer) native example, can i do this ?
PHP код:
native RemoveBuildingDynamicForPlayer(playeridmodelidFloat:fXFloat:fYFloat:fZFloat:fRadiusworldid = -1interiorid = -1playerid = -1); 



Re: RemoveBuilding for a VirtualWord.. - Sew_Sumi - 09.05.2016

As I said, you RemoveObject, then CreateDynamicObject.

You wouldn't need this to be in the streamer itself.


Re: RemoveBuilding for a VirtualWord.. - ProRakNet - 09.05.2016

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
As I said, you RemoveObject, then CreateDynamicObject.

You wouldn't need this to be in the streamer itself.
but first(World ID: 0) default virtual world undeleted RemoveBuilding showing players. Other virtual world(World ID: 1/2/3/4/5 etc.) should be RemoveBuilding deleted players. Complicated. :/


Re: RemoveBuilding for a VirtualWord.. - Ult1mate - 09.05.2016

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
As I said, you RemoveObject, then CreateDynamicObject.

You wouldn't need this to be in the streamer itself.
i think understand, thank you very much.


Re: RemoveBuilding for a VirtualWord.. - Sew_Sumi - 09.05.2016

Forgot that RemoveBuildingForPlayer was only on OnPlayerConnect.

But yea, remove the objects through the OnPlayerConnect, then use the streamer to add in the same object, only in your "main" world, then make the secondary VW with your custom mapping in.

But you get the picture, and it'll be interesting to see how your progress is with this.