Virtual World Troubles - 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: Virtual World Troubles (
/showthread.php?tid=430724)
Virtual World Troubles -
xXRealLegitXx - 14.04.2013
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
Re: Virtual World Troubles -
Ash. - 14.04.2013
You need to set their interior back to zero when they call /exit.
pawn Код:
SetPlayerInterior(playerid, 0);
Re: Virtual World Troubles -
xXRealLegitXx - 14.04.2013
Quote:
Originally Posted by Ash.
You need to set their interior back to zero when they call /exit.
pawn Код:
SetPlayerInterior(playerid, 0);
|
Thank you, it worked.