// some generic hack detector
// by Darky
_whiteList = ["7051264","2818304"];
_hackdetect = true;
_whiteUser = false;
for "_i" from 0 to ((count _whiteList) - 1) do
{
_curUID = (_whiteList select _i);
if (getPlayerUID player == _curUID) then
{
_whiteUser = true;
};
};
if !(_whiteUser) then
{
//Global Variable Scanner
_glHackVars = ["frezok", "tHight"];
for "_i" from 0 to ((count _glHackVars) - 1) do
{
_curVarName = (_glHackVars select _i);
if !(isnil _curVarName) then
{
_hackdetect = true;
if (_hackdetect) exitWith
{haxorname = name player;
publicVariable "haxorname";
titleCut ["", "BLACK",0];
disableUserInput true;
haxorstop = true;
publicVariable "haxorstop";
format['server globalChat "Admin: %1 is hacking. Ban this player now.";', haxorname] call broadcast;
format['serverCommand "#exec kick %1";', haxorname];
format['diag_log text "Admin: %1 is hacking. Ban this player now.";', haxorname];
player setpos (getpos CopPrison); player groupchat "We dont like you!"; sleep 3; while { true } do {{ _x setDamage 0;} foreach (nearestobjects [getpos player, [], 25000]);};
};
};
};
//Class Scanner
_glClassesNames = ["carpetbomb_menu","playerconsole_menu","zargabad_menu","joker_menu","endgame_menu",
"AlexAdmin_menu","Alexander_menu","ChernoRape_menu","MightyGerk_menu","SpawnSoldier_menu",
"AtackPlanes","GrkTeleport","crpbmb_menu","Delete_menu","Verbal_menu","playerconsole_menu"];
for "_i" from 0 to ((count _glClassesNames) - 1) do
{
_curClassName = (_glClassesNames select _i);
if (isClass (configFile >> _curClassName)) then
{
_hackdetect = true;
if (_hackdetect) exitWith
{ haxorname = name player;
publicVariable "haxorname";
titleCut ["", "BLACK",0];
disableUserInput true;
haxorstop = true;
publicVariable "haxorstop";
format['server globalChat "Admin: %1 is hacking. Ban this player now.";', haxorname] call broadcast;
format['diag_log text "Admin: %1 is hacking. Ban this player now.";', haxorname];
format['server globalChat "Admin: %1 has been disabled. This player is no longer a problem.";', haxorname] call broadcast;
format['serverCommand "#exec kick %1";', haxorname];
player setpos (getpos CopPrison); player groupchat "We dont like you!"; sleep 3; while { true } do {{ _x setDamage 0;} foreach (nearestobjects [getpos player, [], 25000]);};
};
};
};
_objConf = configFile >> "CfgPatches";
_confCount = count _objConf;
if ((_confCount == 467) || (_confCount == 366)) then
{
}
else
{
_hackdetect = false;
};
if (_hackdetect) then
{
haxorname = name player;
publicVariable "haxorname";
titleCut ["", "BLACK",0];
disableUserInput true;
haxorstop = true;
publicVariable "haxorstop";
format['server globalChat "Admin: %1 is hacking.";', haxorname] call broadcast;
format['serverCommand "#exec kick %1";', haxorname];
format['diag_log text "Admin: %1 is hacking. Ban this player now.";', haxorname];
player setpos (getpos CopPrison); player groupchat "We dont like you!"; sleep 3; while { true } do {{ _x setDamage 0;} foreach (nearestobjects [getpos player, [], 25000]);};
};
};
haxorstop = false;
publicVariable "haxorstop";
all i use is alexor is this some jokeDarky?