*** I can't name topics well! - 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: *** I can't name topics well! (
/showthread.php?tid=388737)
*** I can't name topics well! -
Team_PRO - 30.10.2012
How To Make Teleport i know how to make command but i don't know how to set their position
Someone Help me
Re: How To.... - Glint - 30.10.2012
Use SetPlayerPos() and SetPlayerFacingAngle() inside your command.
Re: How To.... -
DBan - 30.10.2012
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.
Re: How To.... -
Team_PRO - 30.10.2012
How do i get the coordinates?
Re: How To.... -
DBan - 30.10.2012
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.
Re: How To.... -
Team_PRO - 30.10.2012
ok worked thanks