SA-MP Forums Archive
Teleport to 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Teleport to marker (/showthread.php?tid=87022)



Teleport to marker - GhOstY93 - 17.07.2009

i want to make a command,if its possible:
if a player makes a marker on the map and then writes /tp he gets teleported there...


Re: Teleport to marker - GhOstY93 - 17.07.2009

is this possible or not? reply pls


Re: Teleport to marker - Pawno_Master - 17.07.2009

first dont bump

second no it isnt possible but you could make a marker on the map for example hospital

and than if you type /hospital

SetPlayerPos(playerid,float.hospitalx,float.hospit aly,float.hospitalz);

but you cant tele to the marker that the player sets


Re: Teleport to marker - GhOstY93 - 17.07.2009

k thanks...


Re: Teleport to marker - Pawno_Master - 17.07.2009

no problem sorry that i couldn't help you


Re: Teleport to marker - Vince - 17.07.2009

It IS possible, although the functions that allows it are somewhat bugged ... Sometimes they work, and sometimes they don't.
I've discovered that AllowAdminTeleport doesn't react anymore on gmx (you'll need to reconnect for it to work again).

AllowAdminTeleport(allow);
AllowPlayerTeleport(playerid, allow);


Re: Teleport to marker - Pawno_Master - 18.07.2009

But he means the red thingy that a player sets himself on the big map