SA-MP Forums Archive
Teleport from marker - 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 from marker (/showthread.php?tid=434160)



Teleport from marker - Simm - 01.05.2013

How to make a teleport player to a Position when standing on a yellow marker? Help me!


Re: Teleport from marker - davve95 - 01.05.2013

https://sampwiki.blast.hk/wiki/CreatePickup

https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup

https://sampwiki.blast.hk/wiki/SetPlayerPos


Re: Teleport from marker - Maikkk - 01.05.2013

click


Re: Teleport from marker - Simm - 01.05.2013

I made a marker like a yellow arrow I want to make it like this.
When player come stay on it, it automatically teleport the player to a interior or a place.
I think it is done like this
If(IsPlayerinPos(playerid, //XYZ position of yellow marker outside building))
SetPlayerPos(Playerid, //XYZ of the interior, I mean xyz of teleporting place )


Re: Teleport from marker - Simm - 01.05.2013

Someone please tell me if this is done like this^ or not


Re: Teleport from marker - Goldilox - 01.05.2013

Yes, seems right to me.


Re: Teleport from marker - Simm - 03.05.2013

where do i need to give it? under onfliterscriptint or ongamemodeint ?


Re: Teleport from marker - MP2 - 03.05.2013

https://sampforum.blast.hk/showthread.php?tid=289660


Re: Teleport from marker - Pottus - 03.05.2013

I don't think you can go wrong with MP2's include it's well written.