Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-06-2007, 07:50 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Request: test function(funcName);

Built-in Function:

Request: testfunction(funcName)
Usage: testfunction("onwall2");
Returns: true if function exists, false if it doesn't.

Why? Cheat Engine and other memory editors that can pass through the cheat windows check, and rename functions by searching for text.

Usage in script:
PHP Code:
function onActionServerSide(actionargs) {
  switch (
action) {
    case 
"hacker":
      
temp.report format("%s has renamed function %s!"player.accountargs[0]);
      
      echo(
"[ Hack-Control ]: " temp.report);
      
savelog2("functionlog.txt"temp.report);
    break;
  }
}
//#CLIENTSIDE
function onCreated() {
  
this.check = {"onactionprojectile""onactionprojectile2""onwall""onwall2"};
  
  
this.onTimeout();
}

function 
onTimeout() {
  for (
temp.var : this.check) {
    if (
this.tes[t]function(temp.var)) continue;
    
    
// Hacker Found!
    
triggerserver("gui"this.name"hacker", {temp.var});
    
    
player.serverwarp(this.getservername()); // warps player back to server, if cheat engine, it will normally report to the rc that a player was using cheat engine ( mostly used to avoid the windows check )
    
    
break;
  }
  
  
this.setTimer(300); // check every 5 minutes

__________________
- Zidane / Zidaya
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.