SA-MP Forums Archive
I Need some 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)
+--- Thread: I Need some help (/showthread.php?tid=349490)



I Need some help - Compton. - 09.06.2012

Iam Creating FreeRoam Stunt Server

But how can i change the V-World of the Objects ?

I Mean if Player in DM, Zone He cant see the Stunt Maps
or if player is in the Stunts Map virtual world... he cant see the DM map

any Help ?


Re: I Need some help - iggy1 - 09.06.2012

Either use a streamer (easiest way) or use CreatePlayerObject (harder way).

CreatePlayerObject will create the object in whatever world the player is in.

If you use the streamer plugin there is a virtualworld parameter on the CreateDynamicObject function.


Re: I Need some help - Compton. - 09.06.2012

Can you Give me a code for any Object just to show me how it work ?


Re: I Need some help - iggy1 - 09.06.2012

Use the plugin. https://sampforum.blast.hk/showthread.php?tid=102865

Can't be bothered trying to explain, would probably just confuse you more.


Re: I Need some help - [KHK]Khalid - 09.06.2012

https://sampforum.blast.hk/showthread.php?tid=102865

after that you can create objects in certain virtual worlds easily

pawn Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);

// the worldid here is set to -1 which means it will be shown in all virtual worlds. So you can easily change it to your vw id



Re: I Need some help - Compton. - 09.06.2012

Sory Iam asking again

so i add this Line

[pwn] CreateDynamicObject(modelid, Float, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0);[/pwn]

[pwn]worldid = -1,[/pwn]and just change the V-World I want ?


Re: I Need some help - iggy1 - 09.06.2012

Yes. -1 will create the object in all worlds.


Re: I Need some help - Compton. - 09.06.2012

Thanks