mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-24 17:10:49 +03:00
Update keyboard eventhandler and add rules.sqf
See: https://github.com/EpochModTeam/DayZ-Epoch/pull/1673
This commit is contained in:
@@ -7,7 +7,7 @@ cutText ["","BLACK OUT"];
|
||||
enableSaving [false, false];
|
||||
|
||||
//REALLY IMPORTANT VALUES
|
||||
dayZ_instance = 11; //The instance
|
||||
dayZ_instance = 11; //The instance
|
||||
dayZ_serverName = ""; //Shown to all players in the bottom left of the screen
|
||||
dayzHiveRequest = [];
|
||||
initialized = false;
|
||||
@@ -27,6 +27,7 @@ enableSentences false;
|
||||
//--------------------------------------------------------------------//
|
||||
|
||||
//Map & Player Spawn Variables
|
||||
dayz_enableRules = true; // Default: true
|
||||
spawnShoremode = 1; // Default: 1 (on shore)
|
||||
spawnArea= 1500; // Default: 1500
|
||||
dayz_paraSpawn = false; // Default: false
|
||||
@@ -61,6 +62,7 @@ dayz_sellDistance_boat = 30; // Default: 30
|
||||
dayz_sellDistance_air = 40; // Default: 40
|
||||
|
||||
//Player Variables
|
||||
dayz_quickSwitch = false; // Default: false
|
||||
DZE_R3F_WEIGHT = true; // Default: true
|
||||
DZE_FriendlySaving = true; // Default: true
|
||||
DZE_PlayerZed = true; // Default: true
|
||||
@@ -106,6 +108,7 @@ EpochEvents = [
|
||||
["any","any","any","any",15,"supply_drop"]
|
||||
];
|
||||
|
||||
MISSION_ROOT=toArray __FILE__;MISSION_ROOT resize(count MISSION_ROOT-8);MISSION_ROOT=toString MISSION_ROOT;
|
||||
//Load In Compiled Functions
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
|
||||
progressLoadingScreen 0.1;
|
||||
@@ -144,6 +147,7 @@ if (!isDedicated) then {
|
||||
|
||||
//Lights
|
||||
//[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
|
||||
if (dayz_enableRules) then { execVM "rules.sqf"; };
|
||||
if (!isNil "dayZ_serverName") then { execVM "\z\addons\dayz_code\system\watermark.sqf"; };
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
#include "\z\addons\dayz_code\compile\keyboard.sqf"
|
||||
32
Server Files/MPMissions/DayZ_Epoch_11.Chernarus/rules.sqf
Normal file
32
Server Files/MPMissions/DayZ_Epoch_11.Chernarus/rules.sqf
Normal file
@@ -0,0 +1,32 @@
|
||||
private ["_messages", "_timeout"];
|
||||
|
||||
if (isServer) exitWith {};
|
||||
waitUntil { sleep 1; !isNil ("PVDZE_plr_LoginRecord") };
|
||||
|
||||
_messages = [
|
||||
["DayZ Epoch", "Welcome "+(name player)],
|
||||
["World", worldName],
|
||||
["Teamspeak", "Some ts info"],
|
||||
["Website/Forums", "some website info"],
|
||||
["Server Rules", "Duping, glitching or using any<br />exploit will result in a<br />permanent ban."],
|
||||
["Server Rules", "No Talking in side."],
|
||||
["Server Rules", "Hackers will be banned permanently<br />Respect others"],
|
||||
["News", "Some random New info!<br />RandomNews<br />"]
|
||||
];
|
||||
|
||||
_timeout = 5;
|
||||
{
|
||||
private ["_title", "_content", "_titleText"];
|
||||
sleep 2;
|
||||
_title = _x select 0;
|
||||
_content = _x select 1;
|
||||
_titleText = format[("<t font='TahomaB' size='0.40' color='#a81e13' align='right' shadow='1' shadowColor='#000000'>%1</t><br /><t shadow='1'shadowColor='#000000' font='TahomaB' size='0.60' color='#FFFFFF' align='right'>%2</t>"), _title, _content];
|
||||
[
|
||||
_titleText,
|
||||
[safezoneX + safezoneW - 0.8,0.50], //DEFAULT: 0.5,0.35
|
||||
[safezoneY + safezoneH - 0.8,0.7], //DEFAULT: 0.8,0.7
|
||||
_timeout,
|
||||
0.5
|
||||
] spawn BIS_fnc_dynamicText;
|
||||
sleep (_timeout * 1.1);
|
||||
} forEach _messages;
|
||||
Reference in New Issue
Block a user