Jump to content
RebornTemper

How do i disable the respawn button HELP

Recommended Posts

It should be disabled by default with the AltisLife build.

 

Goto core/functions/fn_escInterupt.sqf

should be line 74

_respawnButton ctrlEnable false;

If you don't have that in the files. Add it!

Add this to the private array
 

_respawnButton

Line 58:
 

_respawnButton = CONTROL(49,1010);

Then add the first one above, to line 74.

Share this post


Link to post
Share on other sites
On 23/08/2017 at 04:05, Drunken Cheetah said:

Deve ser desativado por padrão com a compilação AltisLife.

 

Ir para o núcleo / functions / fn_escInterupt.sqf

deve ser a linha 74

Se você não tem isso nos arquivos. Adicione!

Adicione isto ao array privado
 

Linha 58:
 

Em seguida, adicione o primeiro acima à linha 74.

Hi, very good tip! Works perfectly in 5.0!
It helped a lot, thank you!

I still have problem with the players after they die. They are able to use "/ suicide" to respawn before the doctor arrives. Or before the respawn time set.

Can you help me with this please?

(I apologize for my bad English, it's the translator.)

Share this post


Link to post
Share on other sites
14 hours ago, artur_op said:

Hi, very good tip! Works perfectly in 5.0!
It helped a lot, thank you!

I still have problem with the players after they die. They are able to use "/ suicide" to respawn before the doctor arrives. Or before the respawn time set.

Can you help me with this please? 

(I apologize for my bad English, it's the translator.)

The most popular fix to that is to blacklist that command in InfiSTAR as a bad command so it bans them for trying to use it.

Share this post


Link to post
Share on other sites
17 hours ago, Resonance said:

The most popular fix to that is to blacklist that command in InfiSTAR as a bad command so it bans them for trying to use it.

Thanks for the tip.

But I would not want to ban the players for using this. I just want to delete this option so it will not be accessible to the players.

If you know how I can do it in another way, thank you.

Share this post


Link to post
Share on other sites

Is it possible to remove chat from writing to anyone who is dead or waiting for ransom? So the player will not be able to type "/ suicide".

Share this post


Link to post
Share on other sites

Absolutely.

@artur_op 
 

In your killed handler add  

Quote
(findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 in actionKeys 'Chat') then { true } else { false };"]

 

 

And in respawn

(findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 in actionKeys 'Chat') then { false } else { true };"]

Now this is late at night so i don't know if it will work test it and get back to me

Share this post


Link to post
Share on other sites

To disable /suicide go into your A3AH.sqf  (@infiSTAR_A3>addons>a3_infiSTAR)
find line 2537 (or search (CTRL + f) for suicide), it should look like this:
 

Quote

if(_ltxt in [''killme'',''/killme'',''kill me'',''/kill me'',''/suicide'',''suicide''])then{
    (findDisplay 24) closeDisplay 0;
    _unit = player;
    {_unit setHitPointDamage [_x,1];} forEach [''HitBody'',''HitHead''];
        _unit spawn {
        uiSleep 1.5;
        if(isNull _this)exitWith{};
        if(local _this)then{_this setPos [0,0,100];};
    };
};

above "if(ltxt..." place /*. Below "};" place */.
It should now look like this:

Quote

*/
if(_ltxt in [''killme'',''/killme'',''kill me'',''/kill me'',''/suicide'',''suicide''])then{
    (findDisplay 24) closeDisplay 0;
    _unit = player;
    {_unit setHitPointDamage [_x,1];} forEach [''HitBody'',''HitHead''];
        _unit spawn {
        uiSleep 1.5;
        if(isNull _this)exitWith{};
        if(local _this)then{_this setPos [0,0,100];};
    };
};
/*

If you need further help please, ask.

Share this post


Link to post
Share on other sites

He may not but I've only seen the /suicide or /killme commands from those who use it. So I figured I may as well show him (and others) how to disable the command if InfiSTAR is in use.

Share this post


Link to post
Share on other sites

I have the Infistar, I'll test the options.

As soon as I have a respite I bring so that more people can benefit.
Thanks to all for your help!

Share this post


Link to post
Share on other sites
16 minutes ago, Fawks said:

To disable /suicide go into your A3AH.sqf  (@infiSTAR_A3>addons>a3_infiSTAR)
find line 2537 (or search (CTRL + f) for suicide), it should look like this:
 

above "if(ltxt..." place /*. Below "};" place */.
It should now look like this:

If you need further help please, ask.

Will Infistar ban the player from this? Or just disable the option?

Share this post


Link to post
Share on other sites

As far as I know, it only disables the command. 

Edited by Fawks
Clarifying my answer.

Share this post


Link to post
Share on other sites
On 04/01/2019 at 00:05, Fawks said:

Para desabilitar / suicídio entre em seu A3AH.sqf (@ infiSTAR_A3> addons> a3_infiSTAR)
ache a linha 2537 (ou pesquise (CTRL + f) por suicídio), deve ficar assim:
 

acima "if (ltxt ..." lugar / *. Abaixo "};" lugar * /.
Agora deve ficar assim:

Se você precisar de mais ajuda, por favor, pergunte.

This change worked perfectly for me, thanks for the help!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×