Jump to content

[Release] Scroll, Click, or Key press -Server info


oSoDirty

Recommended Posts

Hey guys if im trying to add new tab what would i add here, trying to add the message tab i have it inserted into this text cant try test it yet...to many players online.

also i notice the "-insertnumber ,false,true,"",""]; " keeps going higher what would i put for the message tab? P.S how do ya do the spoiler tabs for code?

 

 

 

///////////////////////////////////////////////////////////////////

// Detailed scroll rules ///////////////////////////////////////////

// By oSoDirty ////////////////////////////////////////////////////

// rules initialization  ///////////////////////////////////////////

///////////////////////////////////////////////////////////////////

if(speed player <= 0) then {

    _isDirty = true;

        if(_isDirty) then {

        _rule_set1 = player addAction["PVP","custom\rules\pvp.sqf","",-5,false,true,"",""];

        _rule_set2 = player addAction["mods","custom\rules\mods.sqf","",-6,false,true,"",""];

        _rule_set3 = player addAction["Chat","custom\rules\chat.sqf","",-7,false,true,"",""];

        _rule_set4 = player addAction["Building","custom\rules\building.sqf","",-8,false,true,"",""];

        _rule_set5 = player addAction["Cheating","custom\rules\cheating.sqf","",-9,false,true,"",""];

        _rule_set6 = player addAction["Thanks","custom\rules\thanks.sqf","",-9,false,true,"",""];

        _rule_set7 = player addAction["message","custom\rules\message.sqf","",-9,false,true,"",""];

        waitUntil { speed player > 0 };

            player removeAction _rule_set1;

            player removeAction _rule_set2;

            player removeAction _rule_set3;

            player removeAction _rule_set4;

            player removeAction _rule_set5;

            player removeAction _rule_set6;

            player removeAction _rule_set7;

            _rule_set1 = -1;

            _rule_set2 = -1;

            _rule_set3 = -1;

            _rule_set4 = -1;

            _rule_set5 = -1;

            _rule_set6 = -1;

            _rule_set7 = -1;

            };

        };

    };

};

 

That will work fine. the -#  is just the priority. higher number = higher on list. can be negative or positive   [ spoiler ]   and  [ / spoiler ]     no spaces

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Hope it's alright to bump this ancient thread, but it's such a great and simple script. 

The script works for me, but when I activated it hintC doesn't do anything. titleText displays just fine. 

Here's an example of my edited script: 

 

// Chat

private["_separator1","_txt"];
cutText ["HOLD LEFT-CLICK ON TEXT AND DRAG UP AND DOWN, PRESS ESCAPE TO CLEAR OR CONTINUE ON BOTTOM!", "PLAIN DOWN"];
sleep 1;
"Hints & Tips" hintC [
                                                            "-Chat-",
															"Just don't be a redacted",
															"Voice on side results in a kick"
															
Link to comment
Share on other sites

player removeAction s_rules;
s_rules = 1;

if(speed player <= 0) then {
	_isDirty = true;
		if(_isDirty) then {
		_rule_set1 = player addAction["PVP","custom\rules\pvp.sqf","",-5,false,false,"",""];
		_rule_set2 = player addAction["Safezones","custom\rules\safezone.sqf","",-6,false,false,"",""];
		_rule_set3 = player addAction["Chat","custom\rules\chat.sqf","",-7,false,false,"",""];
		_rule_set4 = player addAction["Building","custom\rules\building.sqf","",-8,false,false,"",""];
		_rule_set5 = player addAction["Cheating","custom\rules\cheating.sqf","",-9,false,false,"",""];
		_rule_set6 = player addAction["Thanks","custom\rules\thanks.sqf","",-12,false,true,"",""];
		waitUntil { speed player > 0 };
		s_rules = -1;
			player removeAction _rule_set1;
			player removeAction _rule_set2;
			player removeAction _rule_set3;
			player removeAction _rule_set4;
			player removeAction _rule_set5;
			player removeAction _rule_set6;
			_rule_set1 = -1;
			_rule_set2 = -1;
			_rule_set3 = -1;
			_rule_set4 = -1;
			_rule_set5 = -1;
			_rule_set6 = -1;
			};
		};
	};
};

Are those 4 x }; at the bottom right? They don't all match up in Notepad++ 

Link to comment
Share on other sites

And this is the error it produces : 

File mpmissions\__CUR_MP.Napf\custom\rules\rules_init.sqf, line 35
Error in expression <_rule_set5 = -1;
_rule_set6 = -1;
};
};
};
};>
  Error position: <};
};>
  Error Missing {
File mpmissions\__CUR_MP.Napf\custom\rules\rules_init.sqf, line 35
Error in expression <_rule_set5 = -1;
_rule_set6 = -1;
};
};
};
};>
  Error position: <};
};>
  Error Missing {
File mpmissions\__CUR_MP.Napf\custom\rules\rules_init.sqf, line 35
Error in expression <_rule_set5 = -1;
_rule_set6 = -1;
};
};
};
};>
  Error position: <};
};>
  Error Missing {
File mpmissions\__CUR_MP.Napf\custom\rules\rules_init.sqf, line 35
Link to comment
Share on other sites

  • 5 months later...

Delete the two last }; so that it looks like this

player removeAction s_rules;
s_rules = 1;

if(speed player <= 0) then {
	_isDirty = true;
		if(_isDirty) then {
		_rule_set1 = player addAction["PVP","custom\rules\pvp.sqf","",-5,false,false,"",""];
		_rule_set2 = player addAction["Safezones","custom\rules\safezone.sqf","",-6,false,false,"",""];
		_rule_set3 = player addAction["Chat","custom\rules\chat.sqf","",-7,false,false,"",""];
		_rule_set4 = player addAction["Building","custom\rules\building.sqf","",-8,false,false,"",""];
		_rule_set5 = player addAction["Cheating","custom\rules\cheating.sqf","",-9,false,false,"",""];
		_rule_set6 = player addAction["Thanks","custom\rules\thanks.sqf","",-12,false,true,"",""];
		waitUntil { speed player > 0 };
		s_rules = -1;
			player removeAction _rule_set1;
			player removeAction _rule_set2;
			player removeAction _rule_set3;
			player removeAction _rule_set4;
			player removeAction _rule_set5;
			player removeAction _rule_set6;
			_rule_set1 = -1;
			_rule_set2 = -1;
			_rule_set3 = -1;
			_rule_set4 = -1;
			_rule_set5 = -1;
			_rule_set6 = -1;
			};
		};

and you're fine.

 

Another question:

Is it possible to add a background like in the debug monitor the half transparent brown background to the info boards?

Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...