Jump to content

Sukkaed

Member
  • Posts

    527
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Sukkaed

  1. Looks horribly wrong to me.

     

    Here:

    if ((player getVariable ["humanity",0]) >= 20000 then) {
    	if (_isMan && _isAlive && !inSafeZone && !_isZombie && !_isAnimal && !(_traderType in serverTraders)) then {
    		if (s_player_arrest < 0) then {
    			s_player_arrest = player addAction ['<t color="#0074E8">'+"Investigation Menu"+'</t>',"Scripts\Investigation\investigation.sqf","",100,false,true,"",""];
    		};
    	};
    } else {
    	player removeAction s_player_arrest;
    	s_player_arrest = -1;
    };
    
    if ((player getVariable ["humanity",0]) <= -10000 then) {
    	if (_isMan && _isAlive && !inSafeZone && !_isZombie && !_isAnimal && !(_traderType in serverTraders)) then {
    		if (s_player_arrest2 < 0) then {
    			s_player_arrest2 = player addAction ['<t color="#0074E8">'+"Robbery Menu"+'</t>',"Scripts\Investigation\investigation.sqf","",100,false,true,"",""];
    		};
    	};
    } else {
    	player removeAction s_player_arrest2;
    	s_player_arrest2 = -1;
    };
    
    

    It's still same menu for both tho. I don't get your point. You just want to change the scroll wheel text?

  2. To bottom of server_functions.

    if (isServer) then {
    	[] spawn {	
    		waitUntil {!(isNil "sm_done")};
    		_lastFPS = diag_tickTime;
    		while {true} do {			
    			if ((diag_tickTime - _lastFPS) > 600) then {
    				_lastFPS = diag_tickTime;
    				_logFPS = format ["DEBUG FPS : %1 OBJECTS: %2 : PLAYERS: %3", diag_fps,(count (allMissionObjects "")),(playersNumber west)];
    				diag_log (_logFPS);
    			};
    		};
    	};
    };
    
  3. You don't have _sounddist defined anywhere. Use this, where 20 is the distance.

    private ["_vehicle","_status"];
    _vehicle = _this select 0;
    _status = _this select 1;
    
    if (local _vehicle) then {
        if(_status) then {
            _vehicle setVehicleLock "LOCKED";
        //    _vehicle setVariable ["BTC_Cannot_Lift",true,true];
            _vehicle setVariable ["R3F_LOG_disabled",true,true];
        //    _vehicle setVariable ["MF_Tow_Cannot_Tow",true,true];
            titleText ["LOCKED = Can not be lifted or towed away","PLAIN DOWN"]; titleFadeOut 4;
        } else {
            _vehicle setVehicleLock "UNLOCKED";
        //    _vehicle setVariable ["BTC_Cannot_Lift",false,true];
            _vehicle setVariable ["R3F_LOG_disabled",false,true];
        //    _vehicle setVariable ["MF_Tow_Cannot_Tow",false,true];
            titleText ["UNLOCKED = Can be lifted or towed away","PLAIN DOWN"]; titleFadeOut 4;
        };
        [nil, _vehicle, rSAY, "carLock", 20] call RE;
    };
    
  4. You would need to write your own code or find someone elses, right now there is nothing in place for what you are looking to change, someone correct me if I'm wrong.

     

    I made a debug monitor like this, it just displays hero or bandit 1 to 5, we haven't got it to the state that it actually gives you benefits like faster runspeed though

     

    How would you increase running speed?

  5. I've been using this.

    disableSerialization;
    createDialog "RscFunctionsViewer";
    _display 	= findDisplay 2929;
    _indexdis 	= 292905;
    _textTitle 	= _display displayctrl (_indexdis + 0);
    _textPath 	= _display displayctrl (_indexdis + 1);
    _textDesc 	= _display displayctrl (_indexdis + 2);
    _textCode 	= _display displayctrl (_indexdis + 3);
    _btnCopy 	= _display displayctrl (_indexdis + 4);
    _btnCopy2 	= _display displayctrl (_indexdis + 5);
    _btnCopy3 	= _display displayctrl (_indexdis + 6);
    _listFNCs 	= _display displayCtrl (_indexdis - 4);
    _listSRCs 	= _display displayCtrl (_indexdis - 3);
    _listTags 	= _display displayCtrl (_indexdis - 2);
    _listCats 	= _display displayCtrl (_indexdis - 1);
    _textTitle ctrlShow true;_textPath ctrlShow true;_textDesc  ctrlShow true;
    _btnCopy ctrlShow true;_btnCopy2  ctrlShow true;_btnCopy3 ctrlShow true;
    _listFNCs  ctrlShow false;_listSRCs ctrlShow false;_listTags  ctrlShow false;_listCats ctrlShow false;
    
    _textCode ctrlSetTextColor [0.75,0,0,1];
    _textCode ctrlSetFontHeight 0.0306;
    _textCode ctrlSetText "";
    _textCode ctrlSetFont "EtelkaNarrowMediumPro";
    _textCtrl = (ctrlPosition _textCode);
    _textCode ctrlSetPosition [(_textCtrl select 0) - 0.19, (_textCtrl select 1), (_textCtrl select 2), (_textCtrl select 3)];
    _textCode ctrlCommit 0;
    				
    _btnCopy ctrlSetText "Run";
    _btnCopy ctrlSetTextColor [0,0,0,1];
    _btnCopy ctrlSetFont "Zeppelin33";
    _btnCopy buttonSetAction "_text = ctrlText 292908;call compile _text;";
    _btnctrl = (ctrlPosition _btnCopy);
    _btnCopy ctrlSetPosition [(_btnctrl select 0) - 0.19, (_btnctrl select 1), (_btnctrl select 2), (_btnctrl select 3)];
    _btnCopy ctrlCommit 0;
    			
    _btnCopy2 ctrlSetText "";
    _btnCopy2 ctrlSetTextColor [0,0,0,1];
    _btnCopy2 ctrlSetFont "Zeppelin33";
    _btnCopy2 buttonSetAction "";
    _btn2ctrl = (ctrlPosition _btnCopy2);
    _btnCopy2 ctrlSetPosition [(_btn2ctrl select 0) - 0.19, (_btn2ctrl select 1), (_btn2ctrl select 2), (_btn2ctrl select 3)];
    _btnCopy2 ctrlCommit 0;
    			
    _btnCopy3 ctrlSetText "Close";
    _btnCopy3 ctrlSetTextColor [0,0,0,1];
    _btnCopy3 ctrlSetFont "Zeppelin33";
    _btnCopy3 buttonSetAction "closeDialog 0;";
    _btn3ctrl = (ctrlPosition _btnCopy3);
    _btnCopy3 ctrlSetPosition [(_btn3ctrl select 0) - 0.19, (_btn3ctrl select 1), (_btn3ctrl select 2), (_btn3ctrl select 3)];
    _btnCopy3 ctrlCommit 0;
    

    You can copy/paste and run any code in that while in game. Really easy to find text locations etc.

  6. Has anybody been working on the lightbar script part for the SUV? If so do you care to share it? I got a Rebel vs Police Force in my server and we sorta would like that!

     

    Thanks

     

    OtterNas3 has done it but as far as I know, it has not been released.

×
×
  • Create New...