Need help with infiSTAR and probably database

Buzzard

New Member
Hello everybody,

- I installed infiSTAR antihack and I want to change debug monitor keybinding from END to DEL[NUM],
and I also want to make some keys forbidden to press, basically keys which are used to start script menus.

- I think I've got problem with database because server is saving whole gear but it doesnt save skin,
Even with donator loadout, which comes with ghillie suit and some gear, but when I log back, I have everything but not skin(Ghillie suit), I spawn with default survivor skin

If anyone can help, Pleaseee :)

Thank you very much!!!
 
- did you check the database (after changing skin) to see if the skin was being saved to the DB ?
If so then the player setup file is resetting the skin to default and you have to comment out that bit of code.

As for infistar, if there isn't actually a key binding in the ah config file then search the ah.sqf file for
0xCF which is the dik_code for the End key and replace it with 0xD3 which is the dik_code for Del
https://community.bistudio.com/wiki/DIK_KeyCodes
Infistar already blocks most all of the keys that start script menus unless you have disabled that functionality in the ah config file.
 
- did you check the database (after changing skin) to see if the skin was being saved to the DB ?
If so then the player setup file is resetting the skin to default and you have to comment out that bit of code.

As for infistar, if there isn't actually a key binding in the ah config file then search the ah.sqf file for
0xCF which is the dik_code for the End key and replace it with 0xD3 which is the dik_code for Del
https://community.bistudio.com/wiki/DIK_KeyCodes
Infistar already blocks most all of the keys that start script menus unless you have disabled that functionality in the ah config file.

Thank you very much,

BTW I was referring to DIK_DECIMAL, but I already changed that so everything is good now,

I didn't find the code which is making some keys forbidden

I want this 4 keys to be forbidden to press:
Delete
End
Home
Insert
 
Enable this line in your ahconfig.sqf
Code:
/*  Enable BadKey Kick    */ _BKK =  true;    /* true or false */    /* recommended:  true */    /* If people press a forbidden Key twice, they get kicked! */

RqmF1hA.png


in ah.sqf line 1634 (on the version I have in front of me, yours may differ). The randvar4 is the code to prevent players from pressing forbidden keys. Just copy/paste your keys you want to prevent in with this bit of code changing the hexcode to the key you want to prevent. You can see the HOME key is already listed.
Code:
            if (_key == 0xC7) exitWith {['Home - Known to start HackMenus'] spawn "+_randvar4+";};
            if ((_key == 0x29) && (_shift)) exitWith {['Shift-Tild - Known to start HackMenus'] spawn "+_randvar4+";};
            if ((_key == 0x57) && (_alt)) exitWith {['ALT-F11 (used by ScriptEjection)'] spawn "+_randvar4+";};
            if (_key == 0x3B) exitWith {['F1 - Known to start HackMenus'] spawn "+_randvar4+";};
            if (_key == 0x3C) exitWith {['F2 - Known to start HackMenus'] spawn "+_randvar4+";};
            if (_key == 0x3D) exitWith {['F3 - Known to start HackMenus'] spawn "+_randvar4+";};
            if (_key == ("+str _OpenMenuKey+")) exitWith {['AdminMenu Key'] spawn "+_randvar4+";};
            if (_key == ("+str _ODK+")) exitWith {[] spawn fnc_debugX0;};

AND REMEMBER ... whenever you update your infistar, these changes will be overwritten so you have to do them again on the newly installed version
 
Back
Top