Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Bump. Still have a problem with that.Dunno how to fix it.
Now I have this:and this:_object = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
};
if (_object isKindOf "AN2_DZ") then {
_object addWeapon "TwinVickers";
_object addMagazine "500Rnd_TwinVickers";
};
if (_object isKindOf "ArmoredSUV_PMC_DZE") then {
_object removeWeapon "M134";
_object removeMagazine "2000Rnd_762x51_M134";
_object addWeapon "PKT";
_object addMagazine "100Rnd_762x54_PK";
};_newobject = createVehicle [_class, [0,0,0], [], 0, "CAN_COLLIDE"];
if (_newobject isKindOf "AN2_DZ") then {
_newobject addWeapon "TwinVickers";
_newobject addMagazine "500Rnd_TwinVickers";
};
if (_newobject isKindOf "ArmoredSUV_PMC_DZE") then {
_newobject removeWeapon "M134";
_newobject removeMagazine "2000Rnd_762x51_M134";
_newobject addWeapon "PKT";
_newobject addMagazine "100Rnd_762x54_PK";
};
is it wrong? am i missed something?
Go to your server_functions.sqf and add this right after the fnc_plyrHit...... Code:
//Fnc for removing weapon by Siothie gaming
fnc_remWepSG = compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fnc_remWepSG.sqf";
adminsveh =
{
call fnc_remWepSG;
_dir = getdir vehicle player;
_pos = getPos vehicle player;
_pos = [(_pos select 0)+8*sin(_dir),(_pos select 1)+8*cos(_dir),0];
PVAH_AdminReq = [0, player, _this select 0, _pos];
publicVariableServer "PVAH_AdminReq";
cutText [format["Spawned until next restart: %1 @%2",_this select 0,_pos], "PLAIN DOWN"];
};
adminsvehhive =
{
call fnc_remWepSG;
_class = _this select 0;
_dir = getdir vehicle player;
_pos = getPos vehicle player;
_pos = [(_pos select 0)+8*sin(_dir),(_pos select 1)+8*cos(_dir),0];
_worldspace = [_dir,_pos];
if(MOD_EPOCH) then
{
_keyColor = ["Green","Red","Blue","Yellow","Black"] call BIS_fnc_selectRandom;
_keyNumber = (floor(random 2500)) + 1;
_keySelected = format[("ItemKey%1%2"),_keyColor,_keyNumber];
_isKeyOK = isClass(configFile >> "CfgWeapons" >> _keySelected);
_config = _keySelected;
_isOk = [player,_config] call BIS_fnc_invAdd;
PVAH_AdminReq = [-3, player, _class, _worldspace,_keySelected];
publicVariableServer "PVAH_AdminReq";
cutText [format["Spawned with a key (saved in server DB): %1 @%2\n%3 added to inventory.",_class,_worldspace,_keySelected], "PLAIN DOWN"];
}
else
{
PVAH_AdminReq = [-1, player, _class, _pos];
publicVariableServer "PVAH_AdminReq";
cutText [format["Spawned with a key (saved in server DB): %1 @%2",_class,_worldspace], "PLAIN DOWN"];
};
};