SA-MP Forums Archive
Checkpoint Help. - 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: Checkpoint Help. (/showthread.php?tid=497311)



Checkpoint Help. - ShaneOvSina - 26.02.2014

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.
Код:
http://weedarr.wikidot.com/interior



Re: Checkpoint Help. - ShaneOvSina - 26.02.2014

Can anyone help?


Re: Checkpoint Help. - Konstantinos - 26.02.2014

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);
}



Re: Checkpoint Help. - ShaneOvSina - 26.02.2014

Thank You. Thats solved my problem.
+Rep


Re: Checkpoint Help. - ShaneOvSina - 26.02.2014

Now when i exit the store i see nothing.


Re: Checkpoint Help. - Konstantinos - 26.02.2014

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


Re: Checkpoint Help. - ShaneOvSina - 26.02.2014

Thank you.


Re: Checkpoint Help. - Nurgle4 - 26.02.2014

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


Re: Checkpoint Help. - Blademaster680 - 26.02.2014

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



Re: Checkpoint Help. - ShaneOvSina - 26.02.2014

Already sorted this, but thanks