Teleports - 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: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Teleports (
/showthread.php?tid=96004)
Teleports -
XxJoexX - 05.09.2009
how do you make a teleport?
Re: Teleports -
_Vortex - 05.09.2009
Quote:
|
Originally Posted by XxJoexX
how do you make a teleport?
|
pawn Код:
if(strcmp(cmd, "/command", true) == 0) {
//Action such as SetPlayerPos..
return 1;
}
Re: Teleports -
Doppeyy - 05.09.2009
Код:
if(strcmp(cmd, "/teleport", true) == 0) {
SetPlayerPos(playerid,X,Y,Z);
SendClientMessage(playerid,color,"You have been teleported");
return 1;
}
just fill in the coordanites

and your done.
/Artix