This script enables admins with an admin rank of 5 to comp every player on the server. You can change the adminLevel required for this if you wish. I based this off the original compensate script already part of the framework.
The whole idea is, if you have a server crash or something. You can comp players when its backup etc.
First :
Navigate to mission/core/admin and create a new file called
fn_compAll.sqf
Inside that add the following:
Navigate to mission/core/admin and create a new file called
fn_compReceive.sqf
Inside that add the following:
Next head to > Functions.hpp and add the following in the class admin
Next head to > CfgRemoteExec.hpp and add the following in the file
Next; head over to mission/dialog folder and edit the compensate.hpp file.
Copy this entire code block, and save the file.
Add the following to the mission/stringtable.xml file
Edit the following string for this next one
STR_Admin_Amount
DO NOT JUST COPY THE ABOVE STRING, AS ITS ALREADY IN THE STRINGTABLE
And now your done. Dont forget to re-pbo your mission, and go ingame.
You can view it in the admin menu > comp
The whole idea is, if you have a server crash or something. You can comp players when its backup etc.
First :
Navigate to mission/core/admin and create a new file called
fn_compAll.sqf
Inside that add the following:
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
Navigate to mission/core/admin and create a new file called
fn_compReceive.sqf
Inside that add the following:
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
Next head to > Functions.hpp and add the following in the class admin
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
Next head to > CfgRemoteExec.hpp and add the following in the file
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
Next; head over to mission/dialog folder and edit the compensate.hpp file.
Copy this entire code block, and save the file.
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
Add the following to the mission/stringtable.xml file
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
Edit the following string for this next one
STR_Admin_Amount
S’il vous plaît,
Connexion
ou
S'inscrire pour voir le code !
DO NOT JUST COPY THE ABOVE STRING, AS ITS ALREADY IN THE STRINGTABLE
And now your done. Dont forget to re-pbo your mission, and go ingame.
You can view it in the admin menu > comp
Dernière édition par un modérateur: