English Scripted Restart

I'm the Boss

Admin
2/1/20
473
2
43
1 100
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

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 befor
S’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 like
S’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 add
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
In your CfgRemoteExec.hpp add this line
S’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:
  • Love
Les réactions: Joe Dalton
16/10/20
10
0
100
18:00:54 Fehlgeschlagener Versuch, den serverCommand '#restartserver' vom Server auszuführen.
18:00:59 Fehlgeschlagener Versuch, den serverCommand '#restartserver' vom Serververwaltung.

its not working :C
 

jannikd3x

User
19/12/21
1
0
100
Hi, i get this error.

20:12:00 Error in expression <p 0 do {
private _times = realTimeSippe select 1;
private _Stunde = _times selec>
20:12:00 Error position: <select 1;
private _Stunde = _times selec>
20:12:00 Error Generic error in expression
 
Activité
Pour l'instant, il n'y a personne ici