Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define __CONST__(var1,var2) var1 = compileFinal (if(typeName var2 == "STRING") then {var2} else {str(var2)})
- __CONST__(LIFE_SCHEMA_NAME,"'DATABASE_NAME'");
- //##122
- //life_radio_west = radioChannelCreate [[0, 0.95, 1, 0.8], "Side Channel", "%UNIT_NAME", []];
- //life_radio_civ = radioChannelCreate [[0, 0.95, 1, 0.8], "Side Channel", "%UNIT_NAME", []];
- life_radio_west = radioChannelCreate [[0, 0.95, 1, 0.8], "Polizei Channel", "(Polizei) %UNIT_NAME", []];
- life_radio_civ = radioChannelCreate [[0, 0.95, 1, 0.8], "Zivilisten Channel", "(Zivilist) %UNIT_NAME", []];
- server_query_running = false;
- life_DB_queue = [];
- serv_sv_use = [];
- fed_bank setVariable["fed_rob_ip",false,true];
- fed_bank setVariable["fed_locked",false,true];
- //Run procedures for SQL cleanup on mission start.
- "Arma2Net.Unmanaged" callExtension format ["Arma2NETMySQLCommand ['%2', '%1']", "CALL resetLifeVehicles();",(call LIFE_SCHEMA_NAME)]; //Reset vehicles active state to false.
- "Arma2Net.Unmanaged" callExtension format ["Arma2NETMySQLCommand ['%2', '%1']", "CALL deleteDeadVehicles();",(call LIFE_SCHEMA_NAME)]; //Delete dead / non-usable vehicles for cleanup.
- life_federal_funds = (count playableUnits) * 750; //Amount the federal reserve is funded.
- life_animals_spawned = false;
- life_animals_array = [];
- [] execVM "\life_server\functions.sqf";
- [] execVM "\life_server\eventhandlers.sqf";
- //[] call compile preProcessFileLineNumbers "\life_server\SHK_pos\shk_pos_init.sqf"; Not currently used
- [] spawn TON_fnc_cleanup;
- life_gang_list = [];
- publicVariable "life_gang_list";
- life_wanted_list = [];
- client_session_list = [];
- bank_obj setVariable["rob_in_sess",false,true];
- robbery_success = 0;
- publicVariable "robbery_success";
- [] execFSM "\life_server\cleanup.fsm";
- [] spawn
- {
- private["_logic","_queue"];
- while {true} do
- {
- sleep (30 * 60);
- _logic = missionnamespace getvariable ["bis_functions_mainscope",objnull];
- _queue = _logic getvariable "BIS_fnc_MP_queue";
- _logic setVariable["BIS_fnc_MP_queue",[],TRUE];
- };
- };
- fnc_serv_kick = {endMission "loser";};
- publicVariable "fnc_serv_kick";
- [] spawn DB_fnc_queueManagement;
- //Server-side functions that need to be sent out.
- publicVariable "TON_fnc_addVehicle2Chain";
- publicVariable "life_fnc_fedSuccess";
- [] spawn TON_fnc_federalUpdate;
- [] spawn
- {
- while {true} do
- {
- sleep (30 * 60);
- {
- _x setVariable["sellers",[],true];
- } foreach [Dealer_1,Dealer_2,Dealer_3];
- };
- };
- //Strip NPC's of weapons
- {
- if(!isPlayer _x) then {
- _npc = _x;
- {
- if(_x != "") then {
- _npc removeWeapon _x;
- };
- } foreach [primaryWeapon _npc,secondaryWeapon _npc,handgunWeapon _npc];
- };
- } foreach allUnits;
- //Market stuff
- /*[] call life_fnc_marketconfiguration;
- publicVariable "life_fnc_marketBuy";
- publicVariable "life_fnc_marketSell";
- publicVariable "life_fnc_marketGetBuyPrice";
- publicVariable "life_fnc_marketGetSellPrice";*/
- //ANTICHEAT
- [] call ANTICHEAT_fnc_configureAnticheat;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement