Remove objects after SetVirtualWorld
#6

i saw your post last 2 years ago.

Код:
Objects are created in all worlds and interiors. There is no virtualworld parameter for that (only for pickups, afaik). 
You can try to using CreatePlayerObject to create the map when the player is in a certain virtual world and destroy them again once he leaves that specific virtual world.
Now i know. So I need to move and replace all CreateDynamicObject also with the vehicle to

Код:
new pObject[MAX_PLAYERS];
 
public OnPlayerConnect(playerid)
{
    pObject[playerid] = CreatePlayerObject(playerid, 2587, 2001.195679, 1547.113892, 14.283400, 0, 0, 96);
 
    // Or alternatively, using the DrawDistance parameter to show it from as far away as possible:
    pObject[playerid] = CreatePlayerObject(playerid, 2587, 2001.195679, 1547.113892, 14.283400, 0, 0, 96, 300.0);
    return 1;
}
 
public OnPlayerDisconnect(playerid, reason)
{
    DestroyPlayerObject(playerid, pObject[playerid]);
    return 1;
}
Reply


Messages In This Thread
Remove objects after SetVirtualWorld - by kbalor - 12.07.2012, 17:18
Re : Remove objects after SetVirtualWorld - by vernz - 12.07.2012, 23:16
Re: Re : Remove objects after SetVirtualWorld - by kbalor - 13.07.2012, 08:22
Re: Remove objects after SetVirtualWorld - by Vince - 13.07.2012, 08:24
Re: Remove objects after SetVirtualWorld - by kbalor - 13.07.2012, 08:41
Re: Remove objects after SetVirtualWorld - by kbalor - 13.07.2012, 09:07
Re: Remove objects after SetVirtualWorld - by Vince - 13.07.2012, 09:15
Re: Remove objects after SetVirtualWorld - by kbalor - 13.07.2012, 09:23

Forum Jump:


Users browsing this thread: 1 Guest(s)