This tutorial will allow you to add an automatic backup of each player's information at a regular interval
___1 - Autosave Installation
Go to your mission folder then to the core folder then to the init.sqf file
At the end of the file add the following code:
Code:
/*
Author: Maxence for The Programmer Forum
Description: Autosave the player informations
*/
[] spawn {
_saveInterval = 10; // In minutes
while {true} do {
hint "Automatic backup of your information performed !";
[] call SOCK_fnc_updateRequest;
sleep (_saveInterval * 60);
};
};
Change the value of the first line by the time that elapses between each information backup in minutes
Dernière édition par un modérateur: