Yes
I tried to do it and it deleted the checkpoint so the ppl had to start over :z
Server unexpectedly crashed. RTB me please.
.zip this up and no need to thank me, i was bored and had nothing to do
function ServerCmdSavePosition(%cl) {
%filepath = "config/server/playerpositions/" @ %cl.bl_id @ ".txt";
if(%cl.checkpointbrick) {
%CheckpointPosition = %cl.checkpointbrick.getposition();
%file = new fileObject();
%file.OpenForWrite(%filepath);
%file.WriteLine(%checkpointPosition);
%file.close();
%file.delete();
messageClient(%cl , ' ' , "\c2 Checkpoint saved.");
}
else {
messageclient(%cl , ' ' , "\c2 You don't have a checkpoint to save the Checkpoint of.");
}
}
function ServerCmdLoadPosition(%cl) {
%filepath = "config/server/playerpositions/" @ %cl.bl_id @ ".txt";
if(isFile(%filepath)) {
%file = new fileObject();
%file.OpenForRead(%filepath);
%position = %file.ReadLine();
%cl.player.SetTransform(%position);
%file.close();
%file.delete();
MessageClient(%cl , ' ' , "\c2 Checkpoint loaded.");
}
else {
messageClient(%cl , ' ' , "\c2 You have not got a Checkpoint saved.");
}
}
edit and do whatever the forget you like with it, my english in the dialog isn't great but you can change it if you want.