SaveandLoad()
{
if(self.SnL==0)
{
self iPrintln("Save and Load [^2ON^7]");
self iPrintln("Press [{+actionslot 3}] To Save and Load Position!");
self thread doSaveandLoad();
self.SnL=1;
}
else
{
self iPrintln("Save and Load [^1OFF^7]");
self.SnL=0;
self notify("SaveandLoad");
}
}
doSaveandLoad()
{
self endon("disconnect");
self endon("death");
self endon("SaveandLoad");
Load=0;
for(;

{
if(self actionslotthreebuttonpressed()&& Load==0 && self.SnL==1)
{
self.O=self.origin;
self.A=self.angles;
self iPrintln("Position ^2Saved");
Load=1;
wait 2;
}
if(self actionslotthreebuttonpressed()&& Load==1 && self.SnL==1)
{
self setPlayerAngles(self.A);
self setOrigin(self.O);
self iPrintln("Position ^2Loaded");
Load=0;
wait 2;
}
wait .05;
}
}