[Tutorial] How to make Teleport Command
#1

How to create a teleport command

Introduction
This is a simple tutorial to create a teleport command.
Many of them think that this is a noobish tutorial and every one knows.
But to those guys i say GTFO because there are many other guys who dont know and some creates mta works but dont know this stuff.
For mappers,this is very important because if they need to release their map on YGTDM and if owners want to know where is the place where the mapper had created objects,a teleport command could solve.

Requirements
Zcmd include[For making more easier].
Zcmd: http://www.solidfiles.com/d/879d1213...6d464e90c8cf9/
Tutorial
* Connect to server.
* Go to place where you need to be teleported.
* Type /save.
Now close samp.
* Go to My Documents->Gta Sanandreas Userfiles->SAMP->open savedpositions.txt
Then you can see a new line starting with AddPlayerClass.
When you use /save,you get skin,X pos,Y pos,Z pos.
AddPlayerClass is like this:
Код:
AddPlayerClass(skinid,X Pos,Y pos,Z pos,0,0,0,0);
Now you must copy the X pos,Y pos and Z pos.

Then open pawno.
Click new and clear all text.
Then include a_samp and zcmd,Like this:
Before including,zcmd must be on pawno->include folder.
Код:
#include <a_samp>
#include <zcmd>
Now lets create cmd.
Below includes,you must add this:
Код:
CMD:mytele(playerid,params)
{
#pragma unused params
     SetPlayerPos(playerid,X pos,Y pos,Z pos);
     return 1;
}
I dont have any coordinates now,so i gave X pos Y pos Z pos.
Any one please send me any coordinates,so i will create an example also.

If you have difficulties in creating this,PM or post.

NoTE:Please REP! Me if it helps you!
Reply


Messages In This Thread
How to make Teleport Command - by DeadLy™ - 17.08.2012, 08:09
Re : How to make Teleport Command - by darkazi - 17.08.2012, 10:10
Re: How to make Teleport Command - by JaKe Elite - 17.08.2012, 10:14
Re: How to make Teleport Command - by Lordzy - 19.08.2012, 07:52
Re: How to make Teleport Command - by im - 19.08.2012, 08:06
Re: How to make Teleport Command - by Devilxz97 - 19.08.2012, 09:56
Re: Re : How to make Teleport Command - by JohnnyIV - 06.06.2013, 08:34
Re: Re : How to make Teleport Command - by badwolf2105 - 07.06.2013, 04:17
Re: Re : How to make Teleport Command - by CoaPsyFactor - 19.01.2015, 09:45
Re: Re : How to make Teleport Command - by zT KiNgKoNg - 19.01.2015, 10:09

Forum Jump:


Users browsing this thread: 2 Guest(s)