Last Position script?
#1

Hello i want
a last position script
if i type /lastpos i will teleport to my last pos
Thanks!
Reply
#2

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
Reply
#3

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;
}
Reply
#4

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)