I kept playing around, and this is what I got.
PHP Code:
function onActionServerSide() {
if (params[0] == "hacker") {
setlevel2("levelname", x, y); //Action after detection
echo("[Hack Prevention]: "@player.account@" was caught on a wall.");
}
}
//#CLIENTSIDE
function onCreated() {
this.admins =
{"wont be affected by onwall"}; //Won't be affected
setTimer(0.05); //Starts timer
}
function onTimeout() {
if (onwall(player.x + 1.5, player.y + 2)) { //Detects if onwall
triggerserver("gui", this.name, "hacker");
} else if (player.account in this.admins) return;
setTimer(1); //Stop RC spam
}