*** I can't name topics well!
#1

How To Make Teleport i know how to make command but i don't know how to set their position

Someone Help me
Reply
#2

Use SetPlayerPos() and SetPlayerFacingAngle() inside your command.
Reply
#3

Use GetPlayerPos (https://sampwiki.blast.hk/wiki/Function:GetPlayerPos) and SetPlayerPos(https://sampwiki.blast.hk/wiki/SetPlayerPos) if you want to have a /goto command for example.

If you want to teleport to a place, you will need to /save the position in-game and use the coordinates with SetPlayerPos.
Reply
#4

How do i get the coordinates?
Reply
#5

Quote:
Originally Posted by Team_PRO
Посмотреть сообщение
How do i get the coordinates?
Like I said above, if you are trying to get the coordinates of a player to teleport to, use GetPlayerPos. If you are trying to teleport the player to a place, then you can get the coordinates by going to that location in-game and typing /save, which will save the coordinates into savedpositions.txt located in My Documents/GTA San Andreas User Files/SAMP.
Reply
#6

ok worked thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)