In this topic, I will show you how to restart your Server without any need of extra Programm.
Don't forget to change the ServerCommandPassword in this line of the fn_restart.sqf
Don't forget to change the ServerCommandPassword in this line of the fn_restart.sqf
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
First create 2 new files and add them to the config.cpp under the tag "TON"S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
fn_getRealTime.sqf
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
fn_restart.sqf
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
call both files in your init.sqf of your life_server beforS’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
Should look likeS’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
Create a new config in your mission and call it Config_Restart.hpp
This file needs to be included in your Config_Master.hpp
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
In your description.ext under class CfgNotifications addS’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
In your CfgRemoteExec.hpp add this lineS’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
Thats it for this !Hope I dont miss anything
Dernière édition par un modérateur: