SA-MP Forums Archive
Door Bug - 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: Door Bug (/showthread.php?tid=655184)



Door Bug - wilking - 15.06.2018

Tell me why the member in a door then out again was transferred to the new vw

Where does this error come from?

Model

Mysql


Re: Door Bug - TadePoleMG - 15.06.2018

pls explain


Re: Door Bug - wilking - 15.06.2018

i go in a door
then , i leave it and unseen everybody

Help me please ...


Re: Door Bug - GTLS - 15.06.2018

Upon exit the door, you have to set player's virtual world to outside world. When you enter a door, your virtual world is set to something else like Door ID or something. This is done so that 2 doors can have multiple interiors but players inside will be technically together. Virtual Worlds are Server Sided interior IDs. Use

Code:
SetPlayerVirtualWorld()
to set their VW to outside world.(probably 0). You can use a flag variable to store player's old VW aswell. When he enters a door, his old VW will be stored inside that flag variable, and upon exit, you set player's VW to the value of that flag variable. This is useful if players enters a door inside another door.