Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. #define __CONST__(var1,var2) var1 = compileFinal (if(typeName var2 == "STRING") then {var2} else {str(var2)})
  2.  
  3. __CONST__(LIFE_SCHEMA_NAME,"'DATABASE_NAME'");
  4.  
  5. //##122
  6. //life_radio_west = radioChannelCreate [[0, 0.95, 1, 0.8], "Side Channel", "%UNIT_NAME", []];
  7. //life_radio_civ = radioChannelCreate [[0, 0.95, 1, 0.8], "Side Channel", "%UNIT_NAME", []];
  8. life_radio_west = radioChannelCreate [[0, 0.95, 1, 0.8], "Polizei Channel", "(Polizei) %UNIT_NAME", []];
  9. life_radio_civ = radioChannelCreate [[0, 0.95, 1, 0.8], "Zivilisten Channel", "(Zivilist) %UNIT_NAME", []];
  10.  
  11.  
  12. server_query_running = false;
  13. life_DB_queue = [];
  14. serv_sv_use = [];
  15. fed_bank setVariable["fed_rob_ip",false,true];
  16. fed_bank setVariable["fed_locked",false,true];
  17.  
  18. //Run procedures for SQL cleanup on mission start.
  19. "Arma2Net.Unmanaged" callExtension format ["Arma2NETMySQLCommand ['%2', '%1']", "CALL resetLifeVehicles();",(call LIFE_SCHEMA_NAME)]; //Reset vehicles active state to false.
  20. "Arma2Net.Unmanaged" callExtension format ["Arma2NETMySQLCommand ['%2', '%1']", "CALL deleteDeadVehicles();",(call LIFE_SCHEMA_NAME)]; //Delete dead / non-usable vehicles for cleanup.
  21.  
  22. life_federal_funds = (count playableUnits) * 750; //Amount the federal reserve is funded.
  23. life_animals_spawned = false;
  24. life_animals_array = [];
  25.  
  26. [] execVM "\life_server\functions.sqf";
  27. [] execVM "\life_server\eventhandlers.sqf";
  28. //[] call compile preProcessFileLineNumbers "\life_server\SHK_pos\shk_pos_init.sqf"; Not currently used
  29.  
  30. [] spawn TON_fnc_cleanup;
  31. life_gang_list = [];
  32. publicVariable "life_gang_list";
  33. life_wanted_list = [];
  34. client_session_list = [];
  35.  
  36. bank_obj setVariable["rob_in_sess",false,true];
  37. robbery_success = 0;
  38. publicVariable "robbery_success";
  39.  
  40. [] execFSM "\life_server\cleanup.fsm";
  41.  
  42. [] spawn
  43. {
  44. private["_logic","_queue"];
  45. while {true} do
  46. {
  47. sleep (30 * 60);
  48. _logic = missionnamespace getvariable ["bis_functions_mainscope",objnull];
  49. _queue = _logic getvariable "BIS_fnc_MP_queue";
  50. _logic setVariable["BIS_fnc_MP_queue",[],TRUE];
  51. };
  52. };
  53.  
  54. fnc_serv_kick = {endMission "loser";};
  55. publicVariable "fnc_serv_kick";
  56. [] spawn DB_fnc_queueManagement;
  57.  
  58. //Server-side functions that need to be sent out.
  59. publicVariable "TON_fnc_addVehicle2Chain";
  60. publicVariable "life_fnc_fedSuccess";
  61.  
  62. [] spawn TON_fnc_federalUpdate;
  63.  
  64. [] spawn
  65. {
  66. while {true} do
  67. {
  68. sleep (30 * 60);
  69. {
  70. _x setVariable["sellers",[],true];
  71. } foreach [Dealer_1,Dealer_2,Dealer_3];
  72. };
  73. };
  74.  
  75. //Strip NPC's of weapons
  76. {
  77. if(!isPlayer _x) then {
  78. _npc = _x;
  79. {
  80. if(_x != "") then {
  81. _npc removeWeapon _x;
  82. };
  83. } foreach [primaryWeapon _npc,secondaryWeapon _npc,handgunWeapon _npc];
  84. };
  85. } foreach allUnits;
  86.  
  87.  
  88. //Market stuff
  89. /*[] call life_fnc_marketconfiguration;
  90.  
  91. publicVariable "life_fnc_marketBuy";
  92. publicVariable "life_fnc_marketSell";
  93. publicVariable "life_fnc_marketGetBuyPrice";
  94. publicVariable "life_fnc_marketGetSellPrice";*/
  95.  
  96. //ANTICHEAT
  97. [] call ANTICHEAT_fnc_configureAnticheat;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement