ihr wollt was loggen also nach lesen wenn jemand was gemacht hat
wir machen es an Beispiel wenn wir wollen wenn ein cop jemanden ein Ticket gibt das wollen wir loggen
Ich schreibe das nur für
battlEye_friendlyLogging = false
in der Config_Master.hpp
____________________________________________________________MPMission________________________________
1.ihr öffnet eure Config_Master.hpp
Besispiel:
Config_Master.hpp
class Life_Settings {
/* Logging and Security Settings*/
/* Security Settings */
spyGlass_toggle = false; //Spyglass On/Off Toggle --> True = On & False = Off
/* Data Logging Settings */
battlEye_friendlyLogging = false; //False [default] - Read the logs from the server.rpt. True - Read the logs from the publicVariable.log. NOTE: Due to how diag_log works it will log to both files either way and the
player_advancedLog = false; //False [default] - No advanced logging. True - Logs house purchase and sale, vehicle purchase, sale, and chop shopping, police arrests, and gang creations. Search for: advanced_log
player_moneyLog = true; //False [default] - No money logging. True - Logs player bank deposits, withdraws, and transfers, gang bank deposits and withdraws, money picked up off of the ground, and player robbery. Searc
player_deathLog = false; //False [default] - No death logging. True - Logs victim and killer, and vehicle or weapon if used, when a player dies. Search for: death_log
Ticket_log = true;
Alles anzeigen
2. fügt am ende der dati fn_ticketGive.sqf Vollgesogenes hinzu:
if (LIFE_SETTINGS(getNumber,"Ticket_log") isEqualTo 1) then {
if (LIFE_SETTINGS(getNumber,"battlEye_friendlyLogging") isEqualTo 1) then {
Ticket_log = format [localize "STR_DL_ML_transferredBank_BEF",_value,_unit getVariable ["realname",name _unit],[BANK] call life_fnc_numberText,[CASH] call life_fnc_numberText];
} else {
Ticket_log = format [localize "STR_DL_AL_Ticket",profileName,[(parseNumber _val)] call life_fnc_numberText,life_ticket_unit getVariable ["realname",name life_ticket_unit]];
};
publicVariableServer "Ticket_log";
};
3.stringtable.xml fügt da folgendes hinzu:
fügt über <Key ID="STR_DL_AL_Arrested_BEF">
Diesen code ein:
<Key ID="STR_DL_AL_Arrested_BEF">
<Original>arrested %1</Original>
<Czech>zadržen %1</Czech>
<French>a arrêté %1</French>
<Spanish>arrestó a %1</Spanish>
<Italian></Italian>
<Polish></Polish>
<Portuguese>prendeu %1</Portuguese>
<Russian>арестовано %1</Russian>
<German>hat %1 verhaftet</German>
</Key>
Alles anzeigen
Besispiel:
<Package name="Data_Logging">
<Key ID="STR_DL_AL_Ticket">
<Original>%1 gave a ticket of $%2 to %3</Original>
<Czech>%1 dal lístek na $% %2 3</Czech>
<Spanish>%1 le dio un tiquete de $%2 a %3</Spanish>
<Russian></Russian>
<German>%1 hat %3 einen Strafzettel über $%2 ausgestellt.</German>
<French>%1 a mis une contravention de $%2 à %3.</French>
<Italian>%1 ha dato una multa di $%2 a %3</Italian>
<Portuguese>%1 deu uma multa de R$%2 para %3</Portuguese>
<Polish>%1 Wystawił mandat w wysokości %2 dla %3</Polish>
</Key>
<Key ID="STR_DL_AL_Arrested_BEF">
<Original>arrested %1</Original>
<Czech>zadržen %1</Czech>
<French>a arrêté %1</French>
<Spanish>arrestó a %1</Spanish>
<Italian></Italian>
<Polish></Polish>
<Portuguese>prendeu %1</Portuguese>
<Russian>арестовано %1</Russian>
<German>hat %1 verhaftet</German>
</Key>
Alles anzeigen
________________________________________Life Server_____________________________________________
4.geht in die init.sqf
Tragt unter dem
"advanced_log" addPublicVariableEventHandler {diag_log (_this select 1)};
Folgendes ein:
"Ticket_log" addPublicVariableEventHandler {diag_log (_this select 1)};
Beispiel:
/* Event handler for logs */
"money_log" addPublicVariableEventHandler {diag_log (_this select 1)};
"advanced_log" addPublicVariableEventHandler {diag_log (_this select 1)};
"Ticket_log" addPublicVariableEventHandler {diag_log (_this select 1)};
5. Server starten und testen
ich hoffe ich konnte euch helfen mfg
riesensika
PS.es gibt auch andere Methoden das zu machen aber ich finde die am besten dauert zwar etwas länger als andere aber ok