[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
#2

Reply
#3

Oh and one note.
You don't need to use #pragma unused params.
and don't ask for rep. Now enough leaving this page now.
Reply
#4

-removed-
Reply
#5

Another tutorial about creating a fucking command?
Stop posting tutorials that aren't usefull to anyone..
10/10.
Reply
#6

Another S***** Unusefull Tutorial.
Reply
#7

Quote:
Originally Posted by darkazi
Посмотреть сообщение
+rep for your nC image
Reply
#8

Quote:
Originally Posted by darkazi
Посмотреть сообщение
I rep+ for this
Reply
#9

Quote:
Originally Posted by darkazi
Посмотреть сообщение
sign
Reply
#10

Quote:
Originally Posted by darkazi
Посмотреть сообщение
Some people just waste my time, I really should have continued to create my Panel.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)