23.09.2015, 10:39
(
Последний раз редактировалось Crusade; 23.09.2015 в 11:01.
Причина: I need to change the size of the two images, it's too big.
)
Creating Teleport Commands
Introduction
Here's a tutorial that will teach you how to make teleport commands. I'll do my best to help newbies.
Getting Coordinates for the Teleport Command
On this part, I'll teach you how to get coordinates for your teleport position.
So, open "samp_debug" on your GTA San Andreas file directory.

So, when the game is started, find a place for the coordinates or the teleport position. After you found a place, type "/save", without the codes.

After that, quit the "samp_debug" and go to your GTA San Andreas user files, then go to "SAMP", and double click "savedpositions.txt". There you can find the coordinates that you saved on "samp_debug".

Coding
Let's start coding our command now!
By the way, we need "ZCMD" include by Zeex. We need it to help us make commands faster! You can download "ZCMD" here: https://sampforum.blast.hk/showthread.php?tid=91354
Alright, that's all! You can create teleport commands with those simple steps! Thank you for reading my tutorial! God bless ya'll and have a very nice day!
Credits
Zeex - ZCMD Include
Me - This Tutorial
Introduction
Here's a tutorial that will teach you how to make teleport commands. I'll do my best to help newbies.
Getting Coordinates for the Teleport Command
On this part, I'll teach you how to get coordinates for your teleport position.
So, open "samp_debug" on your GTA San Andreas file directory.

So, when the game is started, find a place for the coordinates or the teleport position. After you found a place, type "/save", without the codes.

After that, quit the "samp_debug" and go to your GTA San Andreas user files, then go to "SAMP", and double click "savedpositions.txt". There you can find the coordinates that you saved on "samp_debug".

Coding
Let's start coding our command now!
By the way, we need "ZCMD" include by Zeex. We need it to help us make commands faster! You can download "ZCMD" here: https://sampforum.blast.hk/showthread.php?tid=91354
pawn Код:
// This are includes! It helps to make our scripts easier and faster! But "a_samp" include is mandatory.
#include <a_samp>
#include <zcmd>
main()
{
}
public OnGameModeInit()
{
AddPlayerClass(0,1811.1185,-1810.0187,13.5419,32.6492,0,0,0,0,0,0); // We need to make a player to use our teleport command. And it is where the player is spawned.
return 1;
}
CMD:tp1(playerid, params[])
{
SetPlayerPos(playerid, 1333.9718,-984.8143,33.8966); // This is the script to teleport you to the coordinates when you type "/tp1", without the quotes.
return 1;
}
Credits
Zeex - ZCMD Include
Me - This Tutorial