SA-MP Forums Archive
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)
+--- Thread: Teleport... (/showthread.php?tid=302170)



Teleport... - Gooday - 07.12.2011

Hi!

How i can make a teleport when someone enter in the checpoint is teleported at...

Ceckpoint ID: 1318

Location: -178.3623,1110.9683,19.7422

Internal ID: I would like to have the Jefferson Motel Internal

How i could make a checpoint for enter and exit?

+REP!


Re: Teleport... - WLSF - 07.12.2011

https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
Use this, when a player enter checkpoint this function run... And you only need to set the position...


AW: Teleport... - BigETI - 07.12.2011

Checkpoint callbacks
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
https://sampwiki.blast.hk/wiki/OnPlayerEnterRaceCheckpoint

Usefull natives:
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerInterior

Interior ID and position:
https://sampwiki.blast.hk/wiki/Interiors


Re: Teleport... - Gooday - 07.12.2011

Could Some1 post a example with my coords?


Re: Teleport... - WLSF - 07.12.2011

Are you joking ?
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetPlayerPos(playerid, X, Y, Z);
    return true;
}