SA-MP Forums Archive
[Tutorial] making simple "/teleport" command with ZCMD - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] making simple "/teleport" command with ZCMD (/showthread.php?tid=522735)



making simple "/teleport" command with ZCMD - iMartin - 28.06.2014

Hello guys this in my first tutorial and today i will show you how to make simple /teleport command using zcmd.

Ok let's start

1.We need to add ZCMD include

HTML Code:
#include <zcmd>
2.You need to find place for where you want to send you the teleport(find place in-game and do /save outside of car)

2.go to My Documents--> GTA San Andreas User Files --> SAMP --> savedpositions and find your save point

3. Let's add the command

HTML Code:
//first add this at the end of your game mode

CMD:teleport(playerid, params[]) //this is define of the teleport 
{
	SetPlayerPos(playerid,2120.0361,-2274.0479,20.6719); //this should be the teleport position (position where you want to be send when you type teleport)
	return 1;
	}
NOTE: This is simple way to make teleport command hope i helped you.


Re: making simple "/teleport" command with ZCMD - LivingLikeYouDo - 05.07.2014

You can use wikipedia for a better explanation. Don't post useless tutorials.


Re: making simple "/teleport" command with ZCMD - Team_PRO - 05.07.2014

Please explain it more like how to get coordinates


Re: making simple "/teleport" command with ZCMD - Max5 - 05.07.2014

Well, for your first tutorial its good, just keep it up.



P.S I hate foiling others, just give them a good feeling so that they can become better in the future.