Jump to content
snakeplissken

Disable the display of "Kill and Death" (Key "P")

Recommended Posts

Hello! Can anyone help me to turn off the display of "Kill and Death" by pressing the key "P"?

93Ap9kW.jpg
 
I do not want That a person KNOW AND NOT dead or.
 
Hosted mission without my PC Server OU.
 
And thank you to anyone who can help me. ^ _ ^
 
I'm sorry my English by Google.

Share this post


Link to post
Share on other sites

You may want to read some of the rules here before posting in another language.

 

But to answer your question:

(findDisplay 46) displayAddEventHandler
[
	"KeyDown",
	{
		_handled = false;
		if ((_this select 1) in actionKeys "networkStats") then
		{
			_handled = true;
		};
		_handled;
	}
];

Share this post


Link to post
Share on other sites

 

Rápido Você PODE Querer ler algumas das Regras here  os antes de postar em Outro idioma.

 

Mas parágrafo responder uma pergunta SUA:

(findDisplay 46) displayAddEventHandler
[
	"KeyDown",
	{
		_handled = false;
		if ((_isso selecionar 1) em actionKeys "networkStats"), em SEGUIDA,
		{
			_handled = true;
		};
		_handled;
	}
];
Sorry, I did not want to break rules :(
 
Put the time one question here Translated, the Nagevagor Chrome ONLY translate What I thought was in English, because I pasted the text wrong here.
 
It was unintentionally sorry.

his script is within the init.sqf file? :(

 
 
And thanks for the reply, I will test When I get back from work. ;)

Share this post


Link to post
Share on other sites

Yea, make a file called then initPlayerLocal.sqf and put it there.

Share this post


Link to post
Share on other sites

problem is... you still can open it when you are dead... and it stays open when you respawn... and then you cant close it anymore because the key is blocked...

 

had this problem on our koth server lately... i have removed it again for now...

 

maybe someone has a solution for that...

Share this post


Link to post
Share on other sites

tried that in init.sqf but didnt work...

 

Works fine for me, tried it on dedi just now

Share this post


Link to post
Share on other sites

ok i have put it in the initPlayerLocal.sqf now it works...

maybe it was done to early? is this one of these functions which needs to be executed after the mission is fully started? like enableEnvironment for example?

 

 

killzone_kid.... you are the man... like always ^^

Share this post


Link to post
Share on other sites
NetStats=0;

in your server difficulty

 

https://community.bistudio.com/wiki/server.armaprofile

 

 

since we got so many new changes to these cfgs i have lost track completely...

tried some changes... didnt work...

 

whenever you start a new server from scratch you should get a default cfg... but this default cfg which is created has only a few lines and nothing about these changes to find...

 

maybe someone who has a complete cfg for this could share it or BIS could provide us with this stuff... would be very helpful i guess...

Share this post


Link to post
Share on other sites

Hi guys,

I want to add a mission parameter option for players: "disable or enable score table"

I came up with this:

description.ext:

class Params
{
	class ScoreTable
	{
		title = "Score Table";
		values[] = {0, 1};
		texts[] = {"Disabled", "Enabled"};
		default = 1;
		file = "params\setScoreTable.sqf";
	};
};

setScoreTable.sqf:

if (isServer) then
{
	_scoreTable = param [0,1,[999]];

	if (_scoreTable == 0) then {missionNamespace setVariable ["BIS_scoreTable",0];};
	if (_scoreTable == 1) then {};
};

init.sqf and onPlayerRespawn.sqf:

if (hasInterface) then 
{
	sleep 0.5;
	if (missionNamespace getVariable "BIS_scoreTable" == 0) then {showScoretable 0};
};

It works when mission is hosted localy, but NOT on dedicated server. WHY?? Any solution for dedi?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×