Checkpoint Help.
#1

I've made a checkpoint for the 24/7 store in Las venturas and i keep falling from the sky.
Here is the code..
Код:
    if(checkpointid == cstore)
    {
        SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
        SetPlayerVirtualWorld(playerid, 17);
 	}
I've got the Position and interior id of this website.
Reply
#2

Can anyone help?
Reply
#3

You should change the interior ID, not the virtual world ID. They differ.

pawn Код:
if(checkpointid == cstore)
{
    SetPlayerInterior(playerid, 17);
    SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
}
Reply
#4

Thank You. Thats solved my problem.
+Rep
Reply
#5

Now when i exit the store i see nothing.
Reply
#6

When a player exits the store, set the player's interior back to 0.
Reply
#7

Thank you.
Reply
#8

1.Interior is the the same as Vitrual world,so change it to Interior
2.Just ad this under when player leaves...
pawn Код:
SetPlayerInterior(playerid, 0);
You cant see anything because you still have the same interior of the place you have entered
Reply
#9

Quote:

1.Interior is the the same as Vitrual world,so change it to Interior
2.Just ad this under when player leaves...
pawn Code:
SetPlayerInterior(playerid, 0);
You cant see anything because you still have the same interior of the place you have entered

Interior and Virtual world are completly different things.
Interior is the buildings interior you are "suppose" to be in.
Virtual World is the world you are in, for example if 2 players are in the same Virtual world they can see each other.
But if they are in different Virtual Worlds they cant see each other.

Код:
When the player exits make sure to set the interior back to 0 and set the VirtualWorld back to 0
Reply
#10

Already sorted this, but thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)