25
« on: Jan 05, 2022, 08:34 PM »
I tried it on my dedicated server and it works perfectly, I don't understand what you're doing wrong
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2016 A3Wasteland.com *
// ******************************************************************************************
// @file Name: fn_markerLogPvar.sqf
// @file Author: AgentRev, based on code by Killzone Kid: http://killzonekid.com/arma-scripting-tutorials-whos-placingdeleting-markers/
if (isNil "A3W_markerLog_logArray" || {!(A3W_markerLog_logArray isEqualType [])}) then
{
A3W_markerLog_logArray = [];
};
params ["", ["_value",[],[[]]]];
_logEntry = [serverTime];
_logEntry append _value;
A3W_markerLog_logArray pushBack _logEntry;
A3W_markerLog_logArray deleteRange [0, count A3W_markerLog_logArray - 100]; // 100 entries max.
if (isServer) then
{
_value params
[
["_markerName","",[""]],
["_markerAction","",[""]], // "ADDED" or "DELETED"
["_actionPlayerName","",[""]],
["_actionPlayerUID","",[""]],
["_markerType","",[""]],
["_markerColor","",[""]],
["_markerPos",[0,0,0],[[]],3],
["_markerText","",[""]],
["_markerChannel",-1,[0]] // 0=Global, 1=Side, 2=Command, 3=Group, 4=Vehicle
];
if (_markerAction == "ADDED" && _markerChannel in [0,1]) then
{
deleteMarker _markerName;
};
};