Johnw7392
-
Posts
24 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by Johnw7392
-
-
Simple Peace Of Code But Alot Of Help
Reason For :
Catch People Who Duplicate
Install :
Open AH.sqf
Find :
_log2 = format['Blood: %1 Humanity: %2',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0])];
Replace With :
_log2 = format['Blood: %1 | Humanity: %2 | Money: %3 | Bank: %4',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),(_unit getVariable['headShots',0]),(_unit getVariable['bank',0])];
I am using Zupa's SC 3.0 storage on my server with infistar. I'm pretty sure I won't be able to see the amount in a persons shed, so can I just use this code to see how many coins a player has on them?
"_log2 = format['Blood: %1 | Humanity: %2 | Money: %3',(_unit getVariable['USEC_BloodQty',12000]),(_unit getVariable['humanity',0]),(_unit getVariable['cashMoney',0])];"
-
I am using the SC 3.0 on my Overpoch server and am wanting to use SC rearm/refuel by axe cop so I do need this in my ZSC compiles right?
How would I put this into my ZSC Compiles? Do I replace what is currently in there or just paste this underneath?
Current SC_fnc_removeCoins
private ["_player","_amount","_wealth","_newwealth", "_result"];_player = _this select 0;_amount = _this select 1;_result = false;_wealth = _player getVariable["cashMoney",0];if(_amount > 0)then{if (_wealth < _amount) then {_result = false;} else {_newwealth = _wealth - _amount;_player setVariable["cashMoney",_newwealth, true];_player setVariable ["moneychanged",1,true];_result = true;PVDZE_plr_Save = [_player,(magazines _player),true,true] ;publicVariableServer "PVDZE_plr_Save";};}else{_result = true;};_resultCurrent SC_fnc_addCoins
private ["_player","_amount","_wealth","_newwealth", "_result"];_player = _this select 0;_amount = _this select 1;_result = false;_wealth = _player getVariable["cashMoney",0];_player setVariable["cashMoney",_wealth + _amount, true];PVDZE_plr_Save = [_player,(magazines _player),true,true] ;publicVariableServer "PVDZE_plr_Save";_player setVariable ["moneychanged",1,true];_newwealth = _player getVariable["cashMoney",0];if (_newwealth >= _wealth) then { _result = true; };_result -
I got as far as being able to right click on the gun and click "Commit Suicide" but end up getting kicked for Script Restriction #76. Any idea how to fix this...
-
-
While playing on OCAU02 today I saw two others guys get kicked for Script Restriction #64, once they got back in they said it kicked them when they tried to change their controls. So I tried doing the same and sure enough kicked for Script Restriction #64. Also while playing on the same server I tried to place a marker down to mark my position and got kicked for Script Restriction #64.
-
I was playing on Stratis yesterday and noticed alot of traders. When looking at the map you could see the dot for the traders once you got to the trader there was like 3-4 in one room. Another, was in a burger stand in the large town North-East of the Airbase. Images below. Inside the hut it looked like 3 traders all in the same spot. I shot in the air and one went prone and the other 2 stayed.
Location of Burger Hut:
Glitched Traders:
-
I had this same issue when trying to sell a Hemmitt to a trader.
-
Not sure if this is classified as a bug or not. But, I was playing on Stratis yesterday went to look at the map and noticed alot of markers. I'm not sure if the clean-up is messed up on them or what but there were serveral "Shipping Container" and "Epicenter" markers on the map the entire duration of my gameplay.
-
It's not a big issue or maybe not even a glitch at all. Just wanted to relay to devs that I happend to find motor oil in a fridge twice yesterday.
-
I'm still getting kicked for "PublicVariable Restriction #0". I have deleted all files even the sync folder and let them reinstall and still can't connect. Can anybody help.
-
I got a whitelist key about 2 weeks ago and got setup with bit sync and got athe addons. Place themm all in the right places got on arma to play then when I try to join the server after picking a slot and clicking join I get kicked for "publicvariable restriction #0". Can anybody help me to get in game properly.
-
As long as you have the safe zone script in and working then yes simply point to a new image that you want to use. To use a "billboard" look around line 20 it should say "USE_SIGNS = false;" change this to"USE_SIGNS = true;" then look for lines 47 and 48 and un-comment those. Then on line 48 find "custom\SafeZones\sign.paa" and change this to the directory of the image you wish to use. I have included my safezone.sqf exactly how I use it. All you have to do to use your own image if change the red text below to the directory of your image choice in your mission pbo.
/*
*updated on 28.08.2014Instructions:1. Copy paste this pastebin code into a file called SafeZone.sqf - save the file.2. Now extract your mpmission pbo and put the SafeZone.sqf into the extracted folder.3. Open the init.sqf of the mpmission.4. At the bottom of the file add[] execVM 'SafeZone.sqf';5. Save the init.sqf, repack your mpmission, upload it to your gameserver and restart your server*/USE_CANBUILD = true; // if you don't want to define your own positionsUSE_TraderCity = true; // if you don't want to define your own positions (Epoch 1.0.5)USE_POSITIONS = false; // to use own positions and radiusUSE_AI_REMOVER = true; // use this to remove Missionbots (AI) within 100m of a player if the player is in a SafeZoneUSE_AntiSteal = true; // use this to block opening gear if another player is within 3m!USE_SPEEDLIMIT = true; // very secret function, nobody is supposed to find out what it does.SPEEDLIMIT = 20; // Only used if USE_SPEEDLIMIT is true.USE_SIGNS = true; // use this to build signs around the SafeZoneLOG_EnterLeave = true; // This will log to your .rpt when a player enters or leaves a SafeZone! (only works with infiSTAR.de Admintools / AntiHack)/* You can use USE_CANBUILD or/and (works together) the custom positions below (USE_POSITIONS) [position or zone,radius] */_infiSZ =[[[6325.6772,7807.7412],200,true],[[4063.4226,11664.19],200,true],[[11447.472,11364.504],200,true],[[1606.6443,7803.5156],150,true],[[12944.227,12766.889],150,true],[[5068.6636,9723.4248],100,true]];if (isServer) exitWith{if (USE_SIGNS) then{{_center = _x select 0;_radius = _x select 1;_lSign = _x select 2;if (_lSign) then{for '_i' from 0 to 360 step (270 / _radius)*2 do{_location = [(_center select 0) + ((cos _i) * _radius), (_center select 1) + ((sin _i) * _radius),0];_dir = ((_center select 0) - (_location select 0)) atan2 ((_center select 1) - (_location select 1));_object = createVehicle ['Sign_sphere100cm_EP1', _location, [], 0, 'CAN_COLLIDE'];_object = createVehicle ['SignM_FARP_Winchester_EP1', _location, [], 0, 'CAN_COLLIDE'];_object setVehicleInit 'this setObjectTexture [0,''custom\SafeZones\sign.paa'];';_object setDir _dir;};};} forEach _infiSZ;};};waitUntil { !isNil 'dayz_animalCheck' };if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; };[_infiSZ] spawn {_infiSZ = _this select 0;_startSafeZone ={if (isNil 'outNow') then{_msg = 'You entered a Safe Zone!';hint _msg;taskHint [_msg, [0,1,0,1], 'taskDone'];inNow = nil;outNow = true;if (LOG_EnterLeave) then{PVDZE_send = [player,'SafeZoneState',[1]];publicVariableServer 'PVDZE_send';};};player_fired2 = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_fired.sqf';player_fired = {_this call player_fired2;deleteVehicle (nearestObject [_this select 0,_this select 4]);cutText ['You can not fire in a SafeZone!','WHITE IN'];};fnc_usec_damageHandler = {};player removeAllEventHandlers 'handleDamage';player addEventHandler ['handleDamage', {false}];player allowDamage false;_veh = vehicle player;if (player != _veh) then{_szs = _veh getVariable ['inSafeZone',0];if (_szs == 0) then{_veh removeAllEventHandlers 'Fired';_veh addEventHandler ['Fired', {_this call player_fired;}];{_x removeAllEventHandlers 'Fired';_x addEventHandler ['Fired', {_this call player_fired;}];} forEach (crew _veh);_veh setVariable ['inSafeZone', 1, true];_veh removeAllEventHandlers 'HandleDamage';_veh addEventHandler ['HandleDamage', {false}];_veh allowDamage false;};};_notInSafeZone =['MAAWS','RPG7V','M136','RPG18','STINGER','MeleeHatchet_DZE','MeleeHatchet','MeleeCrowbar','MeleeMachete','MeleeFishingPole','MeleeSledge','MeleeBaseBallBatNails','MeleeBaseBallBatBarbed','MeleeBaseBallBat'];_cwep = currentWeapon player;if (_cwep in _notInSafeZone) then{_swep = '';{if ((getNumber (configFile >> 'CfgWeapons' >> _x >> 'Type')) == 2) exitWith{_swep = _x;};} forEach (weapons player);if (_swep == '') then{player playActionNow 'PutDown';_iPos = getPosATL player;_radius = 1;_removed = ([player,_cwep,1] call BIS_fnc_invRemove);if (_removed == 1) then{_item = createVehicle ['WeaponHolder', _iPos, [], _radius, 'CAN_COLLIDE'];_item addWeaponCargoGlobal [_cwep,1];};}else{player selectweapon _swep;};};};_endSafeZone ={if (isNil 'inNow') then{if (str fnc_usec_damageHandler == '{}') then{_msg = 'You left the Safe Zone!';hint _msg;taskHint [_msg, [1,0,0.1,1], 'taskFailed'];};inNow = true;outNow = nil;if (LOG_EnterLeave) then{PVDZE_send = [player,'SafeZoneState',[0]];publicVariableServer 'PVDZE_send';};};player_fired = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_fired.sqf';player_zombieCheck = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\player_zombieCheck.sqf';fnc_usec_unconscious = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_unconscious.sqf';object_monitorGear = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\object_monitorGear.sqf';_veh = vehicle player;if (player != _veh) then{_szs = _veh getVariable ['inSafeZone',0];if (_szs == 1) then{_veh setVariable ['inSafeZone', 0, true];_veh removeAllEventHandlers 'HandleDamage';_veh addeventhandler ['HandleDamage',{ _this call vehicle_handleDamage } ];_veh allowDamage true;};};_end = false;if (isNil 'gmadmin') then{_end = true;}else{if (gmadmin == 0) then{_end = true;};};if (_end) then{player allowDamage true;fnc_usec_damageHandler = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\fn_damageHandler.sqf';player removeAllEventHandlers 'HandleDamage';player addeventhandler ['HandleDamage',{_this call fnc_usec_damageHandler;} ];};};while {1 == 1} do{if (isNil 'inSafeZone') then { inSafeZone = false; } else { if (typename inSafeZone != 'BOOL') then { inSafeZone = false; }; };_state = false;if (isNil 'USE_POSITIONS') then { USE_POSITIONS = false; } else { if (typename USE_POSITIONS != 'BOOL') then { USE_POSITIONS = false; }; };if (USE_POSITIONS) then{{_z = _x select 0;_r = _x select 1;if ((vehicle player) distance _z < _r) then {_state = true;};} forEach _infiSZ;};if (isNil 'USE_CANBUILD') then { USE_CANBUILD = true; } else { if (typename USE_CANBUILD != 'BOOL') then { USE_CANBUILD = true; }; };if (USE_CANBUILD) then{if (isNil 'canbuild') then { canbuild = true; } else { if (typename canbuild != 'BOOL') then { canbuild = true; }; };if (!canbuild) then {_state = true;};};if (isNil 'USE_TraderCity') then { USE_TraderCity = true; } else { if (typename USE_TraderCity != 'BOOL') then { USE_TraderCity = true; }; };if (USE_TraderCity) then{if (isNil 'isInTraderCity') then { isInTraderCity = false; } else { if (typename isInTraderCity != 'BOOL') then { isInTraderCity = false; }; };if (isInTraderCity) then {_state = true;};};if (_state) then{inSafeZone = true;call _startSafeZone;{if (!isNull _x) then{if !(isPlayer _x) then{deletevehicle _x;};};} forEach ((vehicle player) nearEntities ['zZombie_Base',15]);if (isNil 'USE_AI_REMOVER') then { USE_AI_REMOVER = false; } else { if (typename USE_AI_REMOVER != 'BOOL') then { USE_AI_REMOVER = false; }; };if (USE_AI_REMOVER) then{{if ((!isNull group _x) && (getPlayerUID _x == '')) then{deleteVehicle _x;};} forEach (player nearEntities ['Man',100]);};}else{inSafeZone = false;};uiSleep 2;if (!inSafeZone) then{call _endSafeZone;};};};if ((USE_AntiSteal) || (USE_SPEEDLIMIT)) then{[] spawn {_USE_AntiSteal = USE_AntiSteal;_USE_SPEEDLIMIT = USE_SPEEDLIMIT;_speedlimit = SPEEDLIMIT;while {1 == 1} do{if (inSafezone) then{if (_USE_AntiSteal) then{_cnt = {isPlayer _x && _x != player} count (player nearEntities [['CAManBase'], 3]);if ((_cnt > 0) && (!isNull (findDisplay 106))) then{(findDisplay 106) closedisplay 0;closeDialog 0;_log = format['%1 You are not allowed to open Gear while near another player!',name player];cutText [_log,'PLAIN'];hint _log;};};if (_USE_SPEEDLIMIT) then{_obj = vehicle player;if !(_obj isKindOf 'Plane') then{_speed = abs speed _obj;if ((_obj != player) && (_speed > _speedlimit)) then{_vel = velocity _obj;_x = 0.8;if (_speed > 50) then {_x = 0.1;};_velNew = [(_vel select 0) * _x, (_vel select 1) * _x,(_vel select 2) * _x];_obj SetVelocity _velNew;};};};}else{uiSleep 2;};uiSleep 0.1;};};};
-
I'm not sure of ur server host, but I got infistar antihack with my server host and I can spawn in 350z and cop cars.
-
This is working like a charm on my Epoch Chernarus 1.0.4.2/112555
-
I am aswell still setting up my server and I am the only person on it when this happens, and it usually happens after spawning a box with supplies or spawning in a vehicle.
-
I am having this same issues on my server using the infistar antihack. It usually happens within 2-10 minutes of me entering the server.
-
I am having issues on my server, after I log in and start to play within 2 minutes I get a "No Message Received" and it doesnt go away forcing me to disconnect and log back in just for it to happen again. I have dayz epoch chernarus and am using infistar's antihack with DZAI, DZMS, and build snapping. I'm not sure what files would be needed for anyone to help determine what the issue is, so please let me know what files to post so I could get this resolved. Thank You.
-
I downloaded these admin tools and tried implementing them on my epoch server. But I have no scroll wheel option when in game.
[Tutorial] See Players Money & Bank Balance - Using Infistar
in Gold Coin based Single Currency & Banking System
Posted
Nevermind to my last post asking if that would work out. I went ahead and tried it and worked out great.