How can i make 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: How can i make teleports (
/showthread.php?tid=76976)
How can i make teleports -
Battlaman - 08.05.2009
Hello,
I want to make teleports but how can ik make it?
i have this
Quote:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/teleport", true) == 0)
{
SetPlayerPos(playerid, 2026.7900, 1354.5444, 10.8203, 84.5707);
return 1;
}
return 0;
}
|
But what is what in the cordinaat?
(yeah i now fucking bad english )
Re: How can i make teleports -
Rks25 - 08.05.2009
SetPlayerPos(playerid, 2026.7900, 1354.5444, 10.8203);
x y z
That last one 84.5707 is the facting angle. Use SetPlayerFacingAngle(playerid,Float:Angle); for that.
Re: How can i make teleports -
Shellegg - 08.05.2009
easy..
Re: How can i make teleports -
Battlaman - 08.05.2009
Ty, great