Filterscript activate only on specific vw.
#6

Yes, you can like Sithis said. Here's an example:

PHP код:
After you set your map, and your coords at that map you must put that
map objects in the virtual world that you choose 
for your map in that commandhere '/entermap'.
So if you have some objects like (examples):
CreateDynamicObject1697, -984.5000000, -659.2000100260.031.76700000.00.0, .worldid 10 );
CreateDynamicObject1697, -988.9660000, -659.2000100260.031.76100000.00.0, .worldid 10 );
CreateDynamicObject1697, -980.0332000, -659.1992200260.031.76100000.00.0, .worldid 10 );
CreateDynamicObject1697, -975.5673800, -659.1992200260.031.76100000.00.0, .worldid 10 );
CreateDynamicObject1697, -971.1015600, -659.1992200260.031.76100000.00.0, .worldid 10 );
that .worldid is the tag of the world ID from the "CreateDynamicObject" function, you just have to
add to your end of the object the world like you see in the code above
, or you can simply put the
world without the tag 
".worldid"ExCreateDynamicObject1697, -984.5000000, -659.2000100260.031.76700000.00.010 );
CMD:entermapplayeridparams[ ] ) // you must make a command from your map, like you want (this is an example).
{
    
SetPlayerVirtualWorldplayerid10 // you must set the world ID, it not requires the interior ID if you don't set it in the object code, but if you set the interior ID different from the original value you must set it in the comand with "SetPlayerInterior( playerid, Int ID );"
    
SetPlayerPosplayeridxy); // x, y, z = your spawn coords at that map.
    
return 1;

[!] To do this for the entire map, you have to add to the end of all objects from
that map the world ID, with or without the tag (.worldid).
[!] Also, you must know that if you are using static objects like "CreateObject" you have a limit of 1000 objects total. If you exceed that limit your objects will not be shown on your server. So, it's more than okay if you'll use "CreateDynamicObject" instead the "CreateObject", because the dynamic objects don't have limits.
Reply


Messages In This Thread
Filterscript activate only on specific vw. - by Zeus666 - 13.04.2018, 12:49
Re: Filterscript activate only on specific vw. - by Sithis - 13.04.2018, 12:57
Re: Filterscript activate only on specific vw. - by Zeus666 - 13.04.2018, 13:18
Re: Filterscript activate only on specific vw. - by Sithis - 13.04.2018, 13:31
Re: Filterscript activate only on specific vw. - by Mugala - 13.04.2018, 14:50
Re: Filterscript activate only on specific vw. - by FaLLenGirL - 24.04.2018, 11:33

Forum Jump:


Users browsing this thread: 1 Guest(s)