Need Help - Houses with same interior !
#1

Hi everyone ! I have a problem with the houses.
I create in propety.cfg six houses with the same interior / spawn coordonates but with diferents virtual worlds. And when I enter on a house at /exit it's teleporting me at other house with the same interior. What I can to do ?
Reply
#2

Use unique ID or https://sampwiki.blast.hk/wiki/GetPlayerVirtualWorld
Reply
#3

But how I can use unique ID ?
Reply
#4

Probably use SetPlayerInterior AND SetPlayerVirtualWorld
Reply
#5

At /enter command is used SetPlayerInterior and SetPlayerVirtualWorld(playerid, i)
and at /exit command is used SetPlayerInterior(playerid, 0) and SetPlayerVirtualworld(playerid, 0)

But i don't have problems with other players in the house, because i use differents virtual worlds, but my problem is :

I ENTER IN A HOUSE WITH INTERIOR 2 FOR EXAMPLE AND AT /EXIT IT'S TELEPORTING ME TO THE PICKUP OF THE LAST HOUSE CREATED IN THE SCRIPTFILES WITH INTERIOR 2.
Who want help me with this problem, my messenger id is myster_blake
Reply
#6

Ye, I got the same problem but not with houses but with 24/7 stores with same interior. Looking for some help how to solve it.
Reply
#7

As I said you can make a unique house ID.
f.e:
pawn Code:
new ThisIsUnique[MAX_PLAYERS];

//Somewhere in your enter command
if(IsPlayerInRangeOfPoint(playerid,3,xxx,yyy,zzz))
{
    ThisIsUnique[playerid] = 3;
    .....................
//End

//Somewhere in your exit command
if(IsPlayerInRangeOfPoint(playerid,3,xxx,yyy,zzz) && ThisIsUnique[playerid] = 3)
{
    ThisIsUnique[playerid] = 0;
    .....................
Reply
#8

Fixed !

Close, please !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)