[HELP]Interior help!
#1

When i enter in a house interior (some of my house interior have the same interiors) in another player enter his house we end up in the same house how do i fix that?
Reply
#2

Thats because the Virtual World is the same for you and for theother player. You can use something like this:
Код:
SetPlayerVirtualWorld(playerid, playerid + 500);
This will set the player's world to its id plus 500. I mean if one player is with ID 45 the virtual world should be ID 545.
Reply
#3

set a different virtual world for each player when entering an interior.
when you exit you should set it back tot he same virtual world so they can see each other on the streets
Reply
#4

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
set a different virtual world for each player
I assume you meant, set a different virtual world for each house.
Reply
#5

not really but that is another approach provided you allow other players into your house.
Reply
#6

@SickAttack When the player is using the command /enter for houses or sth like this you can do what I made in my previous post.
Reply
#7

Quote:
Originally Posted by JBee
Посмотреть сообщение
When i enter in a house interior (some of my house interior have the same interiors) in another player enter his house we end up in the same house how do i fix that?
Quote:
Originally Posted by bgedition
Посмотреть сообщение
Thats because the Virtual World is the same for you and for theother player. You can use something like this:
Код:
SetPlayerVirtualWorld(playerid, playerid + 500);
This will set the player's world to its id plus 500. I mean if one player is with ID 45 the virtual world should be ID 545.
Quote:
Originally Posted by Jonny5
Посмотреть сообщение
set a different virtual world for each player when entering an interior.
when you exit you should set it back tot he same virtual world so they can see each other on the streets
Quote:
Originally Posted by SickAttack
Посмотреть сообщение
I assume you meant, set a different virtual world for each house.
Thank you all!
Reply
#8

Quote:
Originally Posted by bgedition
Посмотреть сообщение
@SickAttack When the player is using the command /enter for houses or sth like this you can do what I made in my previous post.
No, no, no, no. You want other players that are in the same house to be able to see other players in that house too, right? So, basically what you do is assign a unique (concequetive) virtual world to a house and when a player enters a house, set their virtual world to it, making players visible to other players in the same house.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)