SA-MP Forums Archive
Interior probleme - 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: Interior probleme (/showthread.php?tid=632048)



Interior probleme - Odeath - 08.04.2017

I have a problem when I enter to an Interior. for example, if I enter in the Burger Shot of Marina and another player enter in Burger Shot of Temple or any Burger Shot in the map, I can see him even if we arent in the same Burger Shot. Is there any solution for this problem ?


Re: Interior probleme - LEOTorres - 08.04.2017

You can use:

Код:
SetPlayerVirtualWorld(playerid, worldid);
depending on which location they enter, then upon exiting you can reset the virtualworld to default which is 0.


Re: Interior probleme - feartonyb - 08.04.2017

Best solution for that is to set unique VW for players for each business.
Just use your business ID as VW (because Biz ID is a unique value)

Ex:
** Under /enter CMD **
SetPlayerVirtualWorld(playerid, businessid);
** Under /exit CMD **
SetPlayerVirtualWorld(playerid, 0);