Last Position script? - 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)
+--- Thread: Last Position script? (
/showthread.php?tid=283320)
Last Position script? -
HotPlayer - 14.09.2011
Hello i want
a last position script
if i type /lastpos i will teleport to my last pos
Thanks!
Re: Last Position script? -
Universal - 14.09.2011
Create a variable that will hold all players positions, and then make two commands:
/savepos this would save the pos into the vars you've created
/lastpos this would teleport
Re: Last Position script? -
Kaperstone - 14.09.2011
pawn Код:
new Float:X,Float:Y,Float:Z,Float:Angle;
CMD:savepos(playerid, params[])
{
GetPlayerPos(playerid, X,Y,Z);
GetPlayerFacingAngle(playerid, Angle);
return 1;
}
CMD:lastpos(playerid, params[])
{
SetPlayerPos(playerid, X,Y,Z);
SetPlayerFacingAngle(playerid, Angle);
return 1;
}
Re: Last Position script? -
HotPlayer - 14.09.2011
Thanks!