[Include] [INC]Teleport include. Make teleport in 1 line! - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC]Teleport include. Make teleport in 1 line! (
/showthread.php?tid=95828)
[INC]Teleport include. Make teleport in 1 line! -
AiVAMAN - 05.09.2009
Teleport include. Teleport in 1 Line!
This is my first include, so don't flame much, please.
[code=Using this include:]
1. Add teleinc.inc to your pawno/include directory.
2. Add #include <teleinc> under #include <a_samp> in your script.
What does those functions do?
1. SetPlayerPosEx(playerid, Float

, Float:y, Float:z, Float:angle);
SetCameraBehindPlayer;
SetPlayerInterior;
ResetPlayerWeapons;
2. SetPlayerPosWV(playerid, Float

, Float:y, Float:z, Float:angle);
SetPlayerPosEx;
Sets your pos with vehicle.
[/code]
Using example:
pawn Code:
if(strcmp("/test", cmdtext, true, 10) == 0)
{
GameTextForPlayer(playerid, "Example teleport!", 5000, 4);
SetPlayerPosWV(playerid, 0.0, 0.0, 0.0, 0.0);
return 1;
}
Bugs:
Haven't found any. If you do reply here.
Download:
Failai.lt
Mirrors are NOT allowed
Hope you like it,
-Alive
Re: [INC]Teleport include. Make teleport in 1 line! -
-.- Haha -.- - 05.09.2009
Quote:
Originally Posted by -Alive
Teleport include. Teleport in 1 Line!
This is my first include, so don't flame much, please.
[code=Using this include:]
1. Add teleinc.inc to your pawno/include directory.
2. Add #include <teleinc> under #include <a_samp> in your script.
What does those functions do?
1. SetPlayerPosEx(playerid, Float  , Float:y, Float:z, Float:angle);
SetCameraBehindPlayer;
SetPlayerInterior;
ResetPlayerWeapons;
2. SetPlayerPosWV(playerid, Float  , Float:y, Float:z, Float:angle);
SetPlayerPosEx;
Sets your pos with vehicle.
[/code]
Using example:
pawn Code:
if(strcmp("/test", cmdtext, true, 10) == 0) { GameTextForPlayer(playerid, "Example teleport!", 5000, 4); SetPlayerPosWV(playerid, 0.0, 0.0, 0.0, 0.0); return 1; }
Bugs:
Haven't found any. If you do reply here.
Download:
Failai.lt
Mirrors are NOT allowed
Hope you like it,
-Alive
|
uhh can u explain a little more?

i don't understand it very good....
Re: [INC]Teleport include. Make teleport in 1 line! -
Karlip - 05.09.2009
Meaning that you won't have to get the players state anymore.