i tryed adding sleep command in player.class.php:
PHP
<?php
class player {
private $mod;
private $rcon;
private $players;
private $logging;
private $guid;
private $pid;
private $name;
private $customvars = array();
private $lastkiller = false;
private $lastvictim = false;
private $team = "none";
public $joined = 0;
public $lastweaponkill = false;
public $lastweapondeath = false;
public $kills = 0;
public $deaths = 0;
public $teamkills = 0;
public $teamdeaths = 0;
public $selfkills = 0;
public $headshots = 0;
public $lastdeathwastk = false;
public $lastkillwastk = false;
public $lastCommand = 0;
public $damagegiven = 0;
public $teamdamagegiven = 0;
public $damagetaken = 0;
public $vehicledamagegiven = 0;
public $teamvehicledamagegiven = 0;
public $actorsdamagegiven = 0;
public $teamactorsdamagegiven = 0;
public function __construct($guid, $pid, $name) {
sleep(18);
$this->mod = & $GLOBALS['mod'];
$this->rcon = & $GLOBALS['rcon'];
$this->logging = & $GLOBALS['logging'];
$this->players = & $GLOBALS['players'];
$this->guid = $guid;
$this->pid = $pid;
$this->name = $name;
$this->joined = time();
}
Alles anzeigen
but it seems that this works only first time player joins the server. And only that time player can execute commands. If player rejoins he won't get welcome message and he wont be able to send commands to manu admin until next map loads. After that player gets another welcome message and everything is as described above.
And yes i want to use this so that my own server could calculate pb guid based on hardware id so that banned users cannot join anymore (unless they buy new computer :smile: )