How would i go about - 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: How would i go about (
/showthread.php?tid=122289)
How would i go about -
ihatetn931 - 21.01.2010
Ok, i've got a custom made interior for my hospital, How would i go about setting it so it's not in the main world, So you can't see it when you're flying. Like set it for a diffrent virtual world or somthing
Re: How would i go about -
Correlli - 21.01.2010
Use GetPlayerVirtualWorld to check the virtual-world for player and if the worldID is correct, then display the objects. There are some object-streamers on the forum for you to use with virtual-world option.
Re: How would i go about -
Jakku - 21.01.2010
Quote:
Originally Posted by ihatetn931
Ok, i've got a custom made interior for my hospital, How would i go about setting it so it's not in the main world, So you can't see it when you're flying. Like set it for a diffrent virtual world or somthing
|
If you want to make it without virtual worlds, put your map as high as you can at the sea
Re: How would i go about -
[HiC]TheKiller - 21.01.2010
pawn Код:
new ObjectsStreamed[MAX_PLAYERS];
for(new i; i<MAX_PLAYERS; i++)
{
if(GetPlayerWorld(i) == /*Worldhere*/ && ObjectsStreamed[i] == 0)
{
//CreatePlayerObjects here ;)
ObjectsStreamed[i] = 1;
}
if(ObjectsStreamed[i] == 1 && GetPlayerWorld(i) != /*Worldhere*/)
{
//DestroyPlayerObjectsHere ;)
ObjectsStreamed[i] = 0;
}
}
Something like that would work.
Re: How would i go about -
ihatetn931 - 21.01.2010
Thank you for your help everyone.