SA-MP Forums Archive
Teleport to interiors - 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: Teleport to interiors (/showthread.php?tid=107848)



Teleport to interiors - Freddy Z - 11.11.2009

How do i teleport to interiors? for example, i made a checkpoint and i want to make it teleport players to big smoke's crack palace

public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid,1380,-22,100;
return 1;
}


public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid,-49.9669,-269.3635,6.6332, 3.;
return 1;
}


i teleport in air then i fall in a countryside...
}


Re: Teleport to interiors - (.Aztec); - 11.11.2009

You need to find out the coordinates of the interior, and then SetPlayerPos them to the coordinates, and then set their interior using SetPlayerInterior(playerid, interiorid);


Re: Teleport to interiors - Peter_Corneile - 11.11.2009

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetPlayerPos(playerid,1380,-22,1008);
    SetPlayerInterior(playerid,interiorid); //interior id of the teleport place
    return 1;
}



Re: Teleport to interiors - [XST]O_x - 11.11.2009

http://weedarr.wikidot.com/interior
For list of available interiors.


Re: Teleport to interiors - Donny_k - 11.11.2009

You are best setting the interior first so you don't have an issue with falling through the floor (sometimes).


Re: Teleport to interiors - Freddy Z - 11.11.2009

Quote:
Originally Posted by sizeof(Sky));
You need to find out the coordinates of the interior, and then SetPlayerPos them to the coordinates, and then set their interior using SetPlayerInterior(playerid, interiorid);
Quote:
Originally Posted by ►Peter Corneile [ideal-host.co.uk
◄ ]
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetPlayerPos(playerid,1380,-22,1008);
    SetPlayerInterior(playerid,interiorid); //interior id of the teleport place
    return 1;
}
Quote:
Originally Posted by Donny
You are best setting the interior first so you don't have an issue with falling through the floor (sometimes).
Quote:
Originally Posted by ►ϻozilla Fir3foж◄
http://weedarr.wikidot.com/interior
For list of available interiors.
Thanks to all, it worked


Re: Teleport to interiors - dirkblok - 11.11.2009

Quote:
Originally Posted by ►ϻozilla Fir3foж◄
http://weedarr.wikidot.com/interior
For list of available interiors.
wow, thanks for that link man