[Tutorial] making simple "/teleport" command with ZCMD
#1

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.
Reply
#2

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

Please explain it more like how to get coordinates
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)