Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Detecting Multi-Clienting (https://forums.graalonline.com/forums/showthread.php?t=87901)

fowlplay4 09-13-2009 09:15 PM

Detecting Multi-Clienting
 
Well I stumbled upon this while using scripthelp, thought I'd spread the knowledge.

Variable: player.computerfirstlogin - basically when the computer first logged in, I'm sure how accurate it is but it's at least by the second.

There's also player.logintime.

PHP Code:

function onCreated() {
  
// Cycle through players and get hashes.
  
for (temp.aallplayers) {
    if (!(
temp.a.computerfirstlogin in temp.hashes)) {
      
temp.hashes.add(temp.a.computerfirstlogin);
    }
    
temp.("hash_" temp.a.computerfirstlogin).add(temp.a.account);
  }
  
// Print List
  
for (temp.hashtemp.hashes) {
    echo(
temp.("hash_" temp.hash));
  }



xAndrewx 02-28-2010 10:10 PM

Oh woah- thats fancy! Thank you :D


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

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