[Help] Blacklist

istealth

Well-Known Member
hello iam trying to do a vehicle blacklist which is working but i also want it to display it in globalchat.

blacklist.sqf
Code:
private["_inVehicle","_isVehicle"];
while {true} do {
_inVehicle = (vehicle player != player);
_isVehicle = vehicle player;
 
if (isServer) then {
        _axet = Creategroup sideLogic;
        themhacks = _axet createUnit ["Survivor2_DZ",[-2500,0,0], [], 0, "NONE"];
        publicVariable "themhacks";
};
func_whohacks = {
      private ["_message"];
        _message = (_this select 0);
        [nil, nil, rSPAWN, [themhacks,_message], { (_this select 0) globalChat (_this select 1) }] call RE;
};
 
if (_inVehicle && (vehicle player) iskindof "Su34") then {
    _isVehicle lock false;
    sleep .1;
    player action ["eject", _isVehicle];
    message = format["%1 was trying to enter a blacklisted vehicle", name player];
    [message] call func_whohacks;
};
sleep 1;
};

this does work it ejects me but then it kicks me i cant get it to display in globalchat now this code did work on the 1.7.4.4 but since i upgraded my server to 1.7.5.1 i guess it broke it.

here is my log file
Code:
Value Restriction #22 "remExField" = [,,"spawn",[,"i did it for the lulz was trying to enter a blacklisted vehicle"],{ (_this select 0) globalChat (_this select 1) }]
08.02.2013 23:04:43: i did it for the lulz (10.0.0.32:2316) f951d448eebd205c7b9e51fa5013a97b - Value Restriction #33 "remExField" = [,,"spawn",[,"i did it for the lulz was trying to enter a blacklisted vehicle"],{ (_this select 0) globalChat (_this select 1) }]
08.02.2013 23:04:43: i did it for the lulz (10.0.0.32:2316) f951d448eebd205c7b9e51fa5013a97b - Value Restriction #34 "remExField" = [,,"spawn",[,"i did it for the lulz was trying to enter a blacklisted vehicle"],{ (_this select 0) globalChat (_this select 1) }]
08.02.2013 23:04:43: i did it for the lulz (10.0.0.32:2316) f951d448eebd205c7b9e51fa5013a97b - Value Restriction #35 "remExField" = [,,"spawn",[,"i did it for the lulz was trying to enter a blacklisted vehicle"],{ (_this select 0) globalChat (_this select 1) }]
08.02.2013 23:04:43: i did it for the lulz (10.0.0.32:2316) f951d448eebd205c7b9e51fa5013a97b - Value Restriction #52 "remExField" = [,,"spawn",[,"i did it for the lulz was trying to enter a blacklisted vehicle"],{ (_this select 0) globalChat (_this select 1) }]

my publicvariable.txt
Code:
1 "" !="drn_AskServerDynamicWeatherEventArgs" !="dayzLogin" !="dayzLogin2" !="dayzLoginRecord" !="dayzCharDisco" !="dayzPlayerSave" !="usecBleed" !="dayzHit" !="usecTransfuse" !="usecBandage" !="dayzPlayerMorph" !="usecPainK" !="usecEpi" !="dayzPublishObj" !="dayzRoadFlare" !="dayzDiscoAdd" !="dayzGutBody" !="dayzHideBody" !="dayzDeleteObj" !="dayzUpdateVehicle" !="dayzSetFix" !="dayzHumanity" !="dayzDiscoRem" !="usecMorphine" !="dayzSetFuel" !="dayzFlies" !="changeCharacter" !="dayzSwitch" !="dayzFire" !="norrnRaDrag" !="norrnR180" !="norrnRalie" !="norrnRALW" !="norrnRACarUp" !="norrnRAPicUp" !="norrnRnoAnim" !="remExField" !="BIS_MPF_logic" !="remExFP" !="dayzDeath" !="player" !="drn_DynamicWeatherEventArgs" !="dayzSetDate" !="rsay" !="rland" !="rsetdir" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack1\"]" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack2\"]" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack3\"]" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack4\"]" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack5\"]" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack6\"]" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack7\"]" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack8\"]" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack9\"]" !="\"remExField\" = [<NULL-object>,<NULL-object>,\"playmove\",\"ZombieStandingAttack10\"]"
5 "teleported"
1 "nil"
1 "true"
1" false"
5 "remExFP"
//1 "remExField"
5 "BIS_MPF_logic"
1 "JIPrequest"
1 "JIPexec"
//1 "dayzDeath"
//1 "player"
1 "alive"
5 "dayzSetDate"
5 "rsay"
5 "rland"
5 "rsetdir"
5 "local_sefFuel"
1 "spawn"
1 "BIS_Effects"
5 "hiveupdateresu"
5 "eh_localCleanup"
5 "vehicle_handleInteract"
5 "server_characterSync"
5 "fnc_buildWeightedArray"
5 "server_hiveWrite"
5 "server_hiveReadWrite"
5 "spawn_heliCrash"
5 "server_getDiff"
5 "server_getDiff2"
5 "dayz_objectUID"
5 "dayz_objectUID2"
5 "dayz_recordLogin"
5 "monkymonitor"
5 "mmonitor"
5 "monky"
5 "rpcCodeVarName"
5 "rpcDirectCall"
5 "broadcastRpcCallAll"
5 "broadcastRpcCallIfLocal"
5 "callRpcProcedure"
5 "registerBroadcastRpc"
//1 "norrnRACarUp"
//1 "norrnRAPicUp"
//1 ""
 
this is the publicvariableval.txt
Code:
//1 "" //+2
1 "draw"
1 "hint" !"hintC" !"hintS"
1 "create"
1 "add" !"ladder"
1 "remove"
1 "delete"
1 "set"
//1 "play" !"playmove" !"player" !"dayzPlayerSave" //+3
1 "clear"
1 "disable"
1 "copy"
1 "switch" !"switchmove"
1 "text"
1 "init"
1 "hide"
1 "group"
1 "icon"
1 "marker"
1 "server"
1 "compile"
1 "loadFile"
//1 "say" //+4
1 "call"
1 "move" !"switchmove" !"playmove"
1 "chat"
1 "fade"
1 "action"
1 "exec"
1 "mission"
1 "kb" !"FoodCanFrankBeans"
1 "side"
1 "show"
1 "task"
1 "allow"
1 "enable"
1 "spawn"
1 "for"
1 "this"
1 "format"
1 "skip"
1 "enable"
1 "fail"
1 "force"
5 "parse"
5 "terminate"
1 "start"
5 "eventhandler"
5 "setTask"
5 "hintC"
5 "hintS"
5 "loading"
5 "callVar"
5 "rspawn"
5 "removeAll"
5 "\"spawn\""
5 "\"call\""
5 "call compile"
1 "jiprequest" !"<NULL-object>,,\"JIPrequest\""
1 "jipexec" //1 "rjipexec"
1 "remExField"
1 "remExFP"
5 "setDate"
5 "setAccTime"
5 "remoteControl"
1 "toString"
1 "toArray"
1 "ctrlset"
5 "rsay"
5 "rland"
5 "_YakB"
//1 "request" //+5
 
Back
Top