SA-MP Forums Archive
Checkpoints that teleport - 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: Checkpoints that teleport (/showthread.php?tid=165454)



Checkpoints that teleport - Smokey619 - 04.08.2010

does any one know of a in game checkpoint creator that you can set a checkpoint and once you get in it it teles you to the place that you want it to tele you? for example the san fierro airport. i want to put some checkpoints on the bottom platforms and once you get in the checkpoint it teles you up to the airport.


Re: Checkpoints that teleport - Kitten - 04.08.2010

if u have the checkpoint already

Код:
public OnPlayerEnterCheckpoint(playerid)
{
        SetPlayerPos(playerid,X,Y,Z); // This sets the player position
	return 1;
}
if u didnt have set a checkpoint

Код:
public OnPlayerConnect(playerid)
{
       SetPlayerCheckpoint(playerid,Float:x,Float:y,Float:z,Float:size);
       return 1;
}
Код:
playerid	The ID of the player to set the checkpoint of
Float:x	The X coordinate to place the checkpoint at
Float:y	The Y coordinate to place the checkpoint at
Float:z	The Z coordinate to place the checkpoint at
Float:size	The size of the checkpoint



Re: Checkpoints that teleport - Kayla.S - 05.08.2010

You should use a checkpoint streamer. Since you're wanting multiple checkpoints. SA-MP can only handle one checkpoint. Just search for a streamer as there's loads of them.