Linking marker to interior
#1

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
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)