SA-MP Forums Archive
Linking marker to interior - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Linking marker to interior (/showthread.php?tid=76776)



Linking marker to interior - Jakku - 06.05.2009

Hello!
Now I want to make a system. I put a marker somewhere, and when player enters this marker he will be teleported to some interior. And same inside of interior, put marker and it exits player the place where he entered. I have other markers too so I just want ONE of those will teleport player to interior


Thanks


Re: Linking marker to interior - *ToM* - 06.05.2009

Im not sure if I understood you well but i think here's what you're looking for...

On top of your script under all of these includes and defines add

pawn Код:
new name1;
then under OnGameModeInit add

pawn Код:
name1 = CreatePickup(1239, 1,coords);
Then under OnPlayerPickupPickup add

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == name1)
{
              SetPlayerInterior(playerid, interior_id);
              SetPlayerPos(playerid, position inside the interior coords);

}
    return 1;
}
Same thing to make other icons/markers but different coords