Hello together there is already an admin tool?
Printable View
Hello together there is already an admin tool?
hi all How to increase [Debug Monitor] in server add show time restart server Who has a solution please
Ben help plz :
and that player lost all his gearQuote:
10:57:42 "notifier>>>before: [[],[],["hungry",[0.541,0.294,0.031,1]],["thirsty",[0.541,0.031,0.031,1]],[],["sick",[0.541,0.294,0.031,1]],<null>,<null>,["cold",[0.525,0.541,0.031,1]]]"10:57:42 "notifier>>>after: [[],[],[],["thirsty",[0.541,0.031,0.031,1]],[],["sick",[0.541,0.294,0.031,1]],<null>,<null>,["cold",[0.525,0.541,0.031,1]]]"
10:57:43 Saved [Houses] data file 0 items.
10:57:52 Saved [Storage] data file [2766] items.
10:57:52 Saved [Storage] data file [6] items.
10:57:52 Saved [Storage] data file [90] items.
10:57:52 Saved [Storage] data file [484] items.
10:57:52 Saved [Storage] data file [0] items.
10:57:52 Saved [Storage] data file [1237] items.
10:57:52 Saved [Storage] data file [1594] items.
10:57:52 Saved [Storage] data file [0] items.
10:57:52 Saved [Houses] data file 0 items.
10:57:52 Saved [Storage] data file [0] items.
10:57:53 Saved [Houses] data file 0 items.
10:57:57 "CONNECTION: _id: 37 _uid: 76561197962753775 _name: R-#1"
10:57:57 "SPAWN: updateServerCameraForNewCLient for existing player"
- - - Updated - - -
DB hav null and when relog his gear gone
- - - Updated - - -
or server with 35 player make it bug ???
How can I add a debug monitor or status bar to the server ?????????????
how I can let use this script only from certain player to thanks for your help
DZ_spawnpass3params = [30.0,70.0,25.0,70.0,0.5,2.0];
DZ_spawnpointsfile = "spawnpoints_players.bin";
idleTime = 5;
// --- clientNew ------------------------------------------------------------------------------------------------------------------------
"clientNew" addPublicVariableEventHandler
{
_array = _this select 1;
_id = _array select 2;
diag_log format ["CLIENT %1 request to spawn %2",_id,_this];
_id spawnForClient {statusChat ['testing 1 2 3','']};
_savedChar = (getClientUID _id) call fnc_dbFindInProfile;
if (_savedChar select 0) exitWith {
diag_log format ["CLIENT %1 spawn request rejected as already alive character",_id];
};
_charType = _array select 0;
_charInv = _array select 1;
_pos = findCachedSpawnPoint [ DZ_spawnpointsfile, DZ_spawnpass3params ];
// _pos = [7201.3716, 3013.104,0]; // Cherno
// _pos = [7056.26,2776.66,21.3347];
// approximate position of camera needs to be set ASAP (network optimization)
diag_log format["SPAWN: updateServerCameraForNewCLient for new player"];
_id updateServerCameraForNewClient _pos;
//players
thebossid = 76561198202916283;
_uid = getPlayerUID player;
if (_uid == thebossid) then {
charType = _array select 0;
_charInv = _array select 1;
//_pos = findCachedSpawnPoint [ DZ_spawnpointsfile, DZ_spawnpass3params ];
_pos = [3590.96,8492.23,0];
//load data
_top = getArray(configFile >> "cfgCharacterCreation" >> "top");
_bottom = getArray(configFile >> "cfgCharacterCreation" >> "bottom");
_shoe = getArray(configFile >> "cfgCharacterCreation" >> "shoe");
_myTop = _top select (_charInv select 0);
_myBottom = _bottom select (_charInv select 1);
_myShoe = _shoe select (_charInv select 2);
_mySkin = DZ_SkinsArray select _charType;
_uid = getClientUID _id;
_res1 = _uid call fnc_dbCreateCharInProfile;
diag_log format["SERVER: Creating %1 at %2 for clientId %3 (DB result %4)",_mySkin,_pos,_id,_res1];
_agent = createAgent [_mySkin, _pos, [], 0, "NONE"];
//_v = _agent createInInventory "tool_flashlight";
//_v = _agent createInInventory "tool_transmitter";
//_v = _agent createInInventory "consumable_battery9V";_v setVariable ["power",30000];
//_v = _agent createInInventory "Consumable_Chemlight_White";
_v = _agent createInInventory "bagmountain_blue";
_v = _agent createInInventory "EN5C_HighCapacityVest_Olive";
_v = _agent createInInventory "balaclavamask_green";
_v = _agent createInInventory "CargoPants_Green";
_v = _agent createInInventory "Raincoat_Green";
_v = _agent createInInventory "CombatBoots_Black";
_v = _agent createInInventory "Container_BarrelGreen";
_v = _agent createInInventory "GorkaHelmet_complete_Green";
_v = _agent createInInventory "MotoHelmet_Blue";
_v = _agent createInInventory "FirefighterAxe_green";
_v = _agent createInInventory "M4A1";
_v = _agent createInInventory "Att_Handguard_M4MP";
_v = _agent createInInventory "Att_Buttstock_M4MP";
_v = _agent createInInventory "EN5C_M4_T3NRDSOptic";
_v = _agent createInInventory "flashgrenade";
_v = _agent createInInventory "GrenadeRDG5";
_v = _agent createInInventory "EN5C_M4_Suppressor";
_v = _agent createInInventory "M_STANAG_30Rnd_Coupled";
_v = _agent createInInventory "M_STANAG_30Rnd_Coupled";
_v = _agent createInInventory "EN5C_M67Grenade";
_v = _agent createInInventory "EN5C_Radio";
_v = _agent createInInventory "StaticRadio";
_v = _agent createInInventory "tool_heatpack";
_v = _agent createInInventory "EN5C_Cannabis";_v setVariable ["quantity",100];
_v = _agent createInInventory "EN5C_CannabisSeeds";
_v = _agent createInInventory "EN5C_FirstAidKit";
_v = _agent createInInventory "EN5C_CableReel";
_v = _agent createInInventory "EN5C_MiniDress_PinkChecker";
_v = _agent createInInventory "EN5C_PowerGenerator";
_v = _agent createInInventory "Ushanka_Black";
_v = _agent createInInventory "EN5C_DallasMask";
_v = _agent createInInventory "EN5C_Pot";
_v = _agent createInInventory "EN5C_SmallGuts";
_v = _agent createInInventory "EN5C_ImprovisedRope";
{null = _agent createInInventory _x} forEach [_myTop,_myBottom,_myShoe];
_agent call init_newPlayer;
call init_newBody;
diag_log format["SERVER: Created %1 for clientId %2",_agent,_id];
//----- simple scheduler part -----
diag_log format ["SCHEDULER: Adding new clientId %1, name %2, UID %3", _id, _name, _uid];
_freePos = connectedPlayers find 0;
connectedPlayers set [_freePos,_id];
diag_log format ["SCHEDULER: Updated 'connected players' array %1", connectedPlayers];
//---------------------------------
};
// --- respawn ------------------------------------------------------------------------------------------------------------------------
"respawn" addPublicVariableEventHandler
{
_agent = _this select 1;
diag_log format ["CLIENT request to respawn %1 (%2)",_this,lifeState _agent];
if (lifeState _agent != "ALIVE") then
{
//get details
_id = owner _agent;
_uid = getClientUID _id;
_agent setDamage 1;
[_uid, _agent] call fnc_dbDestroyProfile;
diag_log format ["CLIENT killed character %1 (clientId %2 / Unit %2)",_uid,_id,lifeState _agent];
//----- simple scheduler part -----
diag_log format ["SCHEDULER: Removing respawning clientId %1, name %2, UID %3", _id, _name, _uid];
_freedPos = connectedPlayers find _id;
connectedPlayers set [_freedPos,0];
diag_log format ["SCHEDULER: Updated 'connected players' array %1", connectedPlayers];
//---------------------------------
//process client
[_id,false,position _agent,overcast,rain,true,-30] spawnForClient { //-3 //short timer for internal testing
titleText ["Respawning... Please wait...","BLACK FADED",10e10];
diag_log str(_this);
playerQueueVM = _this call player_queued;
};
};
};
// --- clientReady -------------------------------------------------------------------------------------------------------------------------
"clientReady" addPublicVariableEventHandler
{
_vm = _this spawn {
_id = _this select 1;
_uid = getClientUID _id;
_uidFound = 0;
for "_i" from 0 to count players - 1 do
{
_actPlayer = players select _i;
_actPlayerUid = getPlayerUID _actPlayer;
if ( _actPlayerUid == _uid ) then { _uidFound = 1; };
};
if ( _uidFound == 0 ) then
{
_wait = idleTime;
//_wait = (-_wait) max 0;
//_wait = -3; //short timer for internal testing
diag_log format["Player %1 ready to load previous character, waiting %2 seconds",_uid,_wait];
sleep _wait;
_agent = _uid call fnc_dbLoadFromProfile;
if (isNull _agent) then
{
//this should never happen!
diag_log format["Player %1 has no agent on load, kill character",_uid];
_id statusChat ["Your character was unable to be loaded and has been reset. A system administrator has been notified. Please reconnect to continue.","ColorImportant"];
}
else
{
// _agent call init_newPlayer;
call init_newBody;
//----- simple scheduler part -----
diag_log format ["SCHEDULER: Adding ready clientId %1, name %2, UID %3", _id, _name, _uid];
_freePos = connectedPlayers find 0;
connectedPlayers set [_freePos,_id];
diag_log format ["SCHEDULER: Updated 'connected players' array %1", connectedPlayers];
//---------------------------------
};
};
};
};
_createPlayer =
{
diag_log format["CONNECTION: _id: %1 _uid: %2 _name: %3",_id,_uid,_name];
_savedChar = _uid call fnc_dbFindInProfile;
_isAlive = _savedChar select 0;
_pos = _savedChar select 2;
_isOnline = _savedChar select 6;
_idleTime = idleTime;
// _idleTime = -3; //short timer for internal testing
diag_log format["SPAWN: updateServerCameraForNewCLient for existing player"];
_id updateServerCameraForNewClient _pos;
if (!_isOnline) then
{
diag_log format["WARNING: No connection to HIVE. Player %1 could not be loaded.",_uid];
};
[_id,_isAlive,_pos,overcast,rain,_isOnline,_idleTime] spawnForClient {
titleText ["","BLACK FADED",10e10];
diag_log str(_this);
playerQueueVM = _this call player_queued;
};
};
//DISCONNECTION PROCESSING
_disconnectPlayer =
{
if (!isNull _agent) then
{
if (vehicle _agent != _agent) then
{
moveOut _agent;
};
_killed = [0] call dbSavePlayer;
diag_log format ["KILLED: %1 ",_killed];
_vm = [_uid,_agent,_id,_name,_killed] spawn
{
_uid = _this select 0;
_agent = _this select 1;
_id = _this select 2;
_name = _this select 3;
_killed = _this select 4;
_connected = diag_tickTime - (_agent getVariable ["starttime",diag_tickTime]);
diag_log format ["DISCONNECT: Player %1 agent %2 after %3 seconds",_uid,_agent,_connected];
_hands = itemInHands _agent;
// _vs = DBSetQueue [_uid,33]; // 33 sec default queue for disconnecting
sleep 1;
_agent playAction "SitDown";
sleep idleTime;
if ( !_killed ) then
{
[1] call dbSavePlayer;
};
//----- simple scheduler part -----
diag_log format ["SCHEDULER: Removing disconnecting clientId %1, name %2, UID %3", _id, _name, _uid];
_freedPos = connectedPlayers find _id;
connectedPlayers set [_freedPos,0];
diag_log format ["SCHEDULER: Updated 'connected players' array %1", connectedPlayers];
//---------------------------------
if (alive _agent) then
{
deleteVehicle _agent;
};
};
};
};
// Create player on connection
onPlayerConnecting _createPlayer;
onPlayerDisconnected _disconnectPlayer;
Hi,
Use Port 4602
- - - Updated - - -
to spawn cars use file from DennisonMopo3oB
mega:///#!8QxxWLKI!Wosk2n0SlFl7NCrJb-TiXn19-3JKScmIEFMGUAjITb4
put vehicles.bin in storage folder and make them read only
Hello, how can I add the admin menu on the server?
Example:
d.sqf :Quote:
_createPlayer =
{
//check database
diag_log format["CONNECTION: _id: %1 _uid: %_name 2: %3",_id,_uid,_name];
_savedChar = dbFindCharacter _uid;
_isAlive = _savedChar select 0;
_isOnline = _savedChar select 1;
_pos = [_savedChar select 2,select 3 _savedChar,_savedChar select 4];
_idleTime = _savedChar select 5;
if (!_isOnline) then
{
diag_log format["WARNING: No connection to HIVE. Player %1 could not be loaded.",_uid];
};
//process client
[_id,_isAlive,_pos,overcast,rain,_isOnline,_idleTime] spawnForClient {
titleText ["","BLACK FADED",10e10];
diag_log str(_this);
playerQueueVM = _this call player_queued;
execVM "scripts\d.sqf";
};
};
Quote:
spawn_move = 0;
dayz_admin = 0;
while {true} do{
if (serverCommandAvailable "#kick") then{
if (dayz_admin == 0) then{
dayz_admin = 1;
spawn_move = 1;
player enableSimulation true;
execvm "scripts\test.sqf";
};
};
sleep 0.1;
};
This code does not work!!!! tried to bind the button but all in vain(((((
Please tell me how to do.....
its for dayzmod
anyone getting this error:
Quote:
15:02:05 "WARNING: CfgModifiers >> [0,Fruit_Apple:2:35848,"Cholera"] stage change requested, but not active. Creating and carrying on."15:02:10 Saved [Storage] data file [1958] items.
15:02:10 Saved [Storage] data file [0] items.
15:02:10 Saved [Storage] data file [100] items.
15:02:10 Saved [Storage] data file [484] items.
15:02:10 Saved [Storage] data file [0] items.
15:02:10 Saved [Storage] data file [1272] items.
15:02:10 Saved [Storage] data file [1720] items.
15:02:10 Saved [Storage] data file [0] items.
15:02:10 Saved [Houses] data file 0 items.
15:02:10 Saved [Storage] data file [0] items.
15:02:10 Saved [Houses] data file 0 items.
15:02:15 "WARNING: CfgModifiers >> [0,Fruit_Apple:2:35822,"Cholera"] stage change requested, but not active. Creating and carrying on."
Game saves.use benwoods mission file
Savegame is in chardb.wen u delete this the save is gone
who can reuploading Server files DayZ 0.60.133913 ?
all public link banned
I upload soon when iam at home
reupload link me
Download
you can upload server files u setup for work to me give up?
want test save data player thk
benwoods missionfile save work
https://mega.nz/#!5FI1yRJI!Tzl7WgDVC...vkLxn3yoIJUJqw