[Tutorial] How To Make Teleport Cmd's - 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] How To Make Teleport Cmd's (
/showthread.php?tid=360673)
How To Make Teleport Cmd's -
Tuntun - 18.07.2012
Hello
I Want Show How To Create Teleport Cmd's...
Some New Guy Don't Know How To Create Teleport Cmd's So I am Create A Tutorial
1)Go to place of where you want to be teleport with cmd's..
2)Type /save,and go to you are Gta Users Files And You Can see there a File Name: SAMP so get in this file..
than you can see Savedpositions...
3)get in Savedpositions.
4)Copy The Middle 6 Words
Explain:If You Are Code:AddPlayerClass(0,136.6095,667.3829,5.8040,220 .6396,0,0,0,0,0,0); //
So You Need Only Copy The Code Like This: 136.6095,667.3829,5.8040
Than You Need Type:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/THERE IS TEXT DA CMD", true))
{
SetPlayerPos(playerid, 136.6095,667.3829,5.8040 );
SendClientMessage(playerid, 0x00FF00AA, "You have teleported to YOU ARE PLACE NAME.");
return 1;
}
return 1;
}
#include <a_samp> in top...
It Is For New Guy Who Don't Know How Create Teleport Cmd's
Thanks!
Re: How To Make Teleport Cmd's -
[GF]Logic - 18.07.2012
Nothing interesting if you searched for things like this you would find many of them because it's so easy that a kid can do it sorry but really nothing hard here
Re: How To Make Teleport Cmd's -
Tuntun - 18.07.2012
I Said It Is For new..guy who don't know.. and kid's don't know what is teleport...
Re: How To Make Teleport Cmd's -
JustinAn - 18.07.2012
Try to put more detail into it, you just say, put this code here. And done? Explain more next time please.
If you're having trouble, refer here:
https://sampforum.blast.hk/showthread.php?tid=65567
Re: How To Make Teleport Cmd's -
Tuntun - 18.07.2012
Ok...
see there:
public OnPlayerCommandText(playerid, cmdtext[]) =This is for the Player can use cmd's..
{
if(!strcmp(cmdtext, "/THERE IS TEXT DA CMD", true))=This is for The Cmd's Which Cmd's You Want To Teleport...
{
SetPlayerPos(playerid, 136.6095,667.3829,5.8040 );=SetPlayerPos mean You Stand The Pos Where You Save For Teleport Code..
SendClientMessage(playerid, 0x00FF00AA, "You have teleported to YOU ARE PLACE NAME.");=This is Text.. You Can Change Colour The Text And The Text...
return 1;
}
return 1;
}
Re: How To Make Teleport Cmd's -
Elysian` - 18.07.2012
Re: How To Make Teleport Cmd's -
newbienoob - 19.07.2012
https://sampforum.blast.hk/showthread.php?tid=316019
https://sampforum.blast.hk/showthread.php?tid=147685
https://sampforum.blast.hk/showthread.php?tid=125590
https://sampforum.blast.hk/showthread.php?tid=195753
https://sampforum.blast.hk/showthread.php?tid=358558
https://sampforum.blast.hk/showthread.php?tid=230341
Re: How To Make Teleport Cmd's -
JustinAn - 19.07.2012
Quote:
Originally Posted by Tuntun
Ok...
see there:
public OnPlayerCommandText(playerid, cmdtext[]) =This is for the Player can use cmd's..
{
if(!strcmp(cmdtext, "/THERE IS TEXT DA CMD", true))=This is for The Cmd's Which Cmd's You Want To Teleport...
{
SetPlayerPos(playerid, 136.6095,667.3829,5.8040 );=SetPlayerPos mean You Stand The Pos Where You Save For Teleport Code..
SendClientMessage(playerid, 0x00FF00AA, "You have teleported to YOU ARE PLACE NAME.");=This is Text.. You Can Change Colour The Text And The Text...
return 1;
}
return 1;
}
|
You just added it in, you never did it after you posted. You only added it when you read my post...
Re: How To Make Teleport Cmd's -
[A]ndrei - 19.07.2012
Quote:
Originally Posted by Windows32
|
hahahah ya just goto ******* and type "samp How to Script A Dm Teleport"
and open one just add a cmd SetPlayerPos(playerid, coords);
and then
SendClientMessage(playerid, 0xFFFFFFFF "HEHEHEHEHEHEHHEEHHEHEHEHEHEHEHEHEEHHEEH");
EASYYYYYYYYY
Re: How To Make Teleport Cmd's -
Tuntun - 19.07.2012
What You Mean With Give Me Some Link's
I Am Always serious no stupid and no Troll...