Advertisement
Guest User

Untitled

a guest
May 20th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. //Execute server stuff
  2. if (isServer) then
  3. {
  4. _startbaseParam = "Startbase" call BIS_fnc_getParamValue;
  5. [_startbaseParam] call compile preprocessFileLineNumbers "bases\init_base.sqf";
  6.  
  7. addMissionEventHandler ["HandleDisconnect", {[_this select 0, _this select 2] call edn_fnc_saveLoadout; false}];
  8. }
  9. else
  10. {
  11. diag_Log "Base will be build on client";
  12. waitUntil {!(isNull player)};
  13. diag_Log "Base will be build on client, Time done";
  14. _startbaseParam = "Startbase" call BIS_fnc_getParamValue;
  15. [_startbaseParam] call compile preprocessFileLineNumbers "bases\init_base.sqf";
  16. };
  17. if (!isDedicated) then
  18. {
  19. waitUntil {!isNull Player};
  20. player enableFatigue false;
  21. diag_Log "Connection script will be executed on client";
  22. [[Player],"end_fnc_onPlayerConnectedServer",false,false,false] call BIS_fnc_MP;
  23. };
  24.  
  25. //Execute stuff on server and client
  26. _igiload = execVM "IgiLoad\IgiLoadInit.sqf";
  27.  
  28. tf_no_auto_long_range_radio = true;
  29. enableSaving [false, false];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement