English AutoSave

  • Auteur de la discussion Auteur de la discussion I'm the Boss
  • Date de début Date de début

I'm the Boss

Admin
2/1/20
657
3
43
1 100
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:
Développer Réduire Copier
/*
    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:
Activité
Pour l'instant, il n'y a personne ici