Thread: Door Bug
View Single Post
Old 15/06/2018, 06:53 AM   #4
GTLS
Gangsta
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 868
Reputation: 92
Default Re: Door Bug

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.
__________________

I don't help for rep. I help cuz I was helped in the past.


Some thing for ya. Click em
Basic House System

Simple Speedo

Retired from SAMP Scene. Might open SAMP Forums once in a while.
GTLS is offline   Reply With Quote