Virtual World Troubles
#1

So recently I added a command to check if a player is near a certain point and depending on that point set them in different interiors.

My first test was burger shot:

Код:
CMD:enter(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid, 5.0, -1911.7417,828.6296,35.1732)) // Burger Shot
	{
	SetPlayerInterior(playerid, 10);
	SetPlayerPos(playerid, 363.0568,-74.9951,1001.5078);
	}  // Burger Shot
	return 1;
}
CMD:exit(playerid)
{
	if(IsPlayerInRangeOfPoint(playerid, 5.0, 363.0568,-74.9951,1001.5078))
	SetPlayerVirtualWorld(playerid, 0);
	SetPlayerPos(playerid, -1911.7417,828.6296,35.1732);
	return 1;
}
This would make sure that the player was in a range of a certain marker, and then warp them to burger shot.

Commands worked just as planned, except for one thing.

When I go outside the burger shot, my screen looks like this:


Instead of this:


I need a way to like restream all of the objects around the user if this is possible, and SetPlayerVirtualWorld 0 doesn't help.

Please help

-Jason
Reply
#2

pawn Код:
CMD:enter(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, -1911.7417,828.6296,35.1732)) // Burger Shot
    {
    SetPlayerInterior(playerid, 10);
    SetPlayerPos(playerid, 363.0568,-74.9951,1001.5078);
    }  // Burger Shot
    return 1;
}
CMD:exit(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 363.0568,-74.9951,1001.5078))
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, -1911.7417,828.6296,35.1732);
    SetPlayerInterior(playerid, 0);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)