Hello,
I am thinking of creating a script for blocking ALT + F4, F1 and F2.
This is my work so far...
It does not seem to work, would be happy for any help
Thanks
I am thinking of creating a script for blocking ALT + F4, F1 and F2.
This is my work so far...
Code:
#include "\vbs2\headers\dikCodes.hpp"
#include "\bin\dikCodes.h"
waitUntil {!IsNil "dayz_animalCheck"};
private ["_dikCode"];
AK_really_loud_sounds = {[60,15] call fnc_usec_pitchWhine;for "_i" from 1 to 15 do {playSound format ["%1",_this select 0];};};
AK_slap_them = {_randomnr = [2,-1] call BIS_fnc_selectRandom;(vehicle player) SetVelocity [_randomnr * random (4) * cos getdir (vehicle player), _randomnr * random (4) * cos getdir (vehicle player), random (4)];};
if (_dikCode = 0x3C or 0x3E or 0x3B) then{
[] spawn AK_slap_them;
["beat04"] spawn AK_really_loud_sounds;
cuttext ["This key is banned on this server. You will die!", "PLAIN DOWN"];
sleep 2;
player setDamage 1;
};
It does not seem to work, would be happy for any help
Thanks