This anticheat detecting .asi hacks.
/main.nut (serverside)
function onPlayerCommand(player_admin, cmd, text){
if(cmd == "crash"){
local pid = text.tointeger();
local p = ::FindPlayer(pid);
if(p){
local ee = ::Stream();
ee.WriteInt(300);
ee.SendStream(p);
} else {
::MessagePlayer("player not found", player_admin);
}
}
}
function onPlayerCrashDump(player, crash){
local c = ::split(crash, "\n");
local asi = [];
foreach (i in c){
if(regexp(".asi").search(i.tolower())){
asi.push(i);
}
}
//inform admin
local player_admin = ::FindPlayer(0);
if(player_admin){
foreach (i in asi){
::MessagePlayer(i, player_admin);
}
}
}
/store/script/main.net (clientside)
function crash_player(){
include("crash.nut");
}
function Server::ServerData(stream){
local id = stream.ReadInt();
if(300 == id){
::crash_player();
}
}
/store/script/crash.nut (clientside)
hui(
(note keep it as you see here to make crash in client)
Example of output: