1. GSManager
    1. Funktionen
    2. Unterstützte Spiele
    3. Neuigkeiten
    4. Statistiken
    5. Serverliste
  2. Lexikon
  3. Filebase
  4. Entwicklung
  5. Forum
    1. Dashboard
    2. Unerledigte Themen
  6. Web-Interface
  7. Artikel
  8. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Dateien
  • Forum
  • Lexikon
  • Erweiterte Suche
  1. GSManager
  2. Mitglieder
  3. highground

Beiträge von highground

Das Projekt GSManager (vormals ManuAdminMod) wurde am 01.01.2020 eingestellt - diese Internetpräsenz bleibt verfügbar, die Software wird aber nicht länger gepflegt. Vielen Dank für eure Unterstützung in den mehr als zehn vergangenen Jahren!
  • Voting limit

    • highground
    • 23. März 2011 um 16:45

    Hello!

    I just wondering,not to be solved somehow, that at least half the players in the game have to vote for the vote to be successful? Because, up to 3 people are enough votes to change the map. Because the vast majority of people do not know that 'no' vote can be.

  • PHP error please help

    • highground
    • 3. März 2011 um 19:49

    Thumper don't work for me... anyone with a PHP advice?

  • PHP error please help

    • highground
    • 27. Februar 2011 um 11:49
    Zitat von Luk

    Zitat von »highground«



    And +1:
    How can i add a weapon to "weponrestrictions" that is not in your list of available weapons?

    You can't.


    Thats sad :(

    zacabbey: My server is at gsp so i dont able to move it :) Im working in remote mode. The log files are in their right places!(log folder)

  • PHP error please help

    • highground
    • 26. Februar 2011 um 17:50

    Hello everyone!

    I got this in my log and program:

    Code
    0:00 [26.02.11 17:12:35] PHP-Error: Warning in :\Users\Highground\Desktop\Új mappa\adminmod\plugins\logkickbans.php:4 => fopen(logC:/Users/Highground/Desktop/Új mappa/adminmod/log/kickbans.log): failed to open stream: Invalid argument

    and this:

    Code
    48:57 [26.02.11 20:40:34] PHP-Error: Warning in :\Users\Highground\Desktop\Új mappa\adminmod\plugins\logkickbans.php:29 => fopen(logC:/Users/Highground/Desktop/Új mappa/adminmod/log/kickbans.log): failed to open stream: Invalid argument 
     	48:57 [26.02.11 20:40:34] PHP-Error: Warning in :\Users\Highground\Desktop\Új mappa\adminmod\plugins\logkickbans.php:37 => fwrite() expects parameter 1 to be resource, boolean given

    What is wrong? I don't understand PHP language :)
    here is my full "logkickbans.php":

    Spoiler anzeigen
    PHP
    <?php
    
    
    
    
    
    
    
    $logkickbans_filehandle = fopen(LOGDIR .  "C:/Users/Highground/Desktop/Új mappa/adminmod/log/kickbans.log", "a");
    
    
    
    
    $mod->registerEvent("playerKicked", "logkickbans_kick");
    $mod->registerEvent("playerBanned", "logkickbans_ban");
    $mod->registerEvent("playerTempBanned", "logkickbans_tempban");
    
    
    
    
    function logkickbans_kick($args) {
    global $logkickbans_filehandle;
    list($player, $reason, $kicker) = $args;
    $date = date("[d.m.y H:i:s]");
    $nickname = $GLOBALS['players'][$player]->getName();
    if (!$kicker) {
        $str = "$date Player \"$nickname\" ($player) got AUTO KICKED for reason: $reason\n";
    }
    else {
        $kicker = $GLOBALS['players'][$kicker]->getName();
        $str = "$date Player \"$nickname\" ($player) got KICKED by \"$kicker\" for reason: $reason\n";
    }
    fwrite($logkickbans_filehandle, $str);
    }
    function logkickbans_ban($args) {
    list($player, $reason, $kicker) = $args;
    $date = date("[d.m.y H:i:s]");
    $nickname = $GLOBALS['players'][$player]->getName();
    if (!$kicker) {
    $logkickbans_filehandle = fopen(LOGDIR . "C:/Users/Highground/Desktop/Új mappa/adminmod/log/kickbans.log", "a");
        $str = "$date Player \"$nickname\" ($player) got AUTO BANNED for reason: $reason\n";
    }
    else {
    $logkickbans_filehandle = fopen(LOGDIR . "C:/Users/Highground/Desktop/Új mappa/adminmod/log/kickbans.log", "a");
        $kicker = $GLOBALS['players'][$kicker]->getName();
        $str = "$date Player \"$nickname\" ($player) got BANNED by \"$kicker\" for reason: $reason\n";
    }
    fwrite($logkickbans_filehandle, $str);
    }
    
    
    
    
    function logkickbans_tempban($args) {
    global $logkickbans_filehandle;
    list($player, $reason, $time, $kicker) = $args;
    $date = date("[d.m.y H:i:s]");
    $nickname = $GLOBALS['players'][$player]->getName();
    if (!$kicker) {
        $str = "$date Player \"$nickname\" ($player) got AUTO TEMPBANNED ($time mins) for reason: $reason\n";
    }
    else {
        $kicker = $GLOBALS['players'][$kicker]->getName();
        $str = "$date Player \"$nickname\" ($player) got TEMPBANNED ($time mins) by \"$kicker\" for reason: $reason\n";
    }
    fwrite($logkickbans_filehandle, $str);
    }
    
    
    
    
    ?>
    Alles anzeigen

    And +1:
    How can i add a weapon to "weponrestrictions" that is not in your list of available weapons?
    Thats how my config is look like:

    Code
    [weaponrestrictions]
    enabled = 1
    weapons = "gl,m79_mp"
    warnstokick = 1
    mode = "tempban"
    kickreason = "Used a restricted weapon: <WEAPON>"

    I'm try to add "thumper" from mw2,but nothing happen if someone uses it :(

    My "weaponrestrictions.php":

    Spoiler anzeigen
    PHP
    <?php
    
    
    
    
    
    
    
    /*
    PLUGIN: Weaponrestrictions
    ================
    Kicks players automatically when they are using a restricted weapon
    
    
    
    
    CONFIG:
    -------
    [weaponrestrictions]
    enabled = 1                                   ;Enable plugin
    weapons = "gl,m79_mp"             ;restricted weapons
    warnstokick = 2                               ;Warns until players get kicked
    mode = "tempban"                              ;kick/ban/tempban
    kickreason = "Used a restricted weapon: <WEAPON>" ;Reason of the kick
    
    
    
    
    
    
    
    NAMESPACE: weaponrestrictions
    
    
    
    
    Functions:
     weaponrestrictions_main
     weaponrestrictions_playerInit
    
    
    
    
    */
    
    
    
    
    $mod->setDefaultCV("weaponrestrictions", "enabled", 0);
    $mod->setDefaultCV("weaponrestrictions", "weapons", "");
    $mod->setDefaultCV("weaponrestrictions", "warnstokick", 2);
    $mod->setDefaultCV("weaponrestrictions", "mode", "tempban");
    $mod->setDefaultCV("weaponrestrictions", "kickreason", "Used a restricted weapon: <WEAPON>");
    
    
    
    
    $mod->registerEvent("playerJoined", "weaponrestrictions_playerInit");
    $mod->registerEvent("playerKill", "weaponrestrictions_main");
    $mod->registerEvent("playerTeamKill", "weaponrestrictions_main");
    
    
    
    
    
    
    
    //Init Players because playerJoined isn't called at startup
    array_map("weaponrestrictions_playerInit", array_keys($players));
    
    
    
    
    function weaponrestrictions_main($parameters) {
    global $mod;
    global $players;
    global $logging;
    list($killer_guid, $victim_guid, $weapon) = $parameters;
    
    
    
    
    if (!$mod->getCV("weaponrestrictions", "enabled")) {
        return;
    }
    
    
    
    
    if ($players[$killer_guid]->isProtected()) {
        return;
    }
    
    
    
    
    $restricted = false;
    $weapons = explode(",", strtolower($mod->getCV("weaponrestrictions", "weapons")));
    
    
    
    
    if ($weapon[1] == "MOD_MELEE") {
        if (in_array("knife", $weapons)) {
            $restricted = true;
        }
        else {
            //Dont warn when player knived while he had a restricted weapon
            return;
        }
    }
    
    
    
    
    else {
        $weapmod = $weapon[0];
    
    
    
    
    foreach ($weapons as $value) {
    if (strpos($weapmod, $value . "_") === 0) {
    $restricted = true;
    break;
    }
    }
    }
    
    
    
    
    if (!$restricted) return;
    
    
    
    
    $players[$killer_guid]->weaponrestrictions_warns ++;
    
    
    
    
    $weaponlong = $mod->getLongWeaponName($weapon);
    
    
    
    
    if ($players[$killer_guid]->weaponrestrictions_warns >= $mod->getCV("weaponrestrictions", "warnstokick")) {
        switch ($mod->getCV("weaponrestrictions", "mode")) {
            case "tempban":
                $players[$killer_guid]->tempBan(str_replace("<WEAPON>", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason")));
                break;
            case "kick":
                $players[$killer_guid]->kick(str_replace("<WEAPON>", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason")));
                break;
            case "ban":
                $players[$killer_guid]->ban(str_replace("<WEAPON>", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason")));
                break;
        }
    }
    else {
    $players[$killer_guid]->say($mod->getLngString("usedRestrictedWeapon", array("<WEAPON>", "<WARNS>", "<MAXWARNS>"), array($weaponlong, $players[$killer_guid]->weaponrestrictions_warns, $mod->getCV("weaponrestrictions", "warnstokick"))));
    $logging->write(MOD_NOTICE, "Player '".$players[$killer_guid]->getName()."' has been warned for using restricted weapon: $weapon, PID: ".$players[$killer_guid]->getPID().", GUID: ".$killer_guid);
    }
    }
    
    
    
    
    function weaponrestrictions_playerInit($guid) {
    $GLOBALS['players'][$guid]->weaponrestrictions_warns = 0;
    }
    
    
    
    
    ?>
    Alles anzeigen


    Thanks for your help!

  • help - how the !ban command works?

    • highground
    • 25. Februar 2011 um 23:35

    This is strange ... everywhere (even the alteriwnet also) saying is that since there is no PunkBuster in the MW2, so that part does not work! To tell the truth I've never tried it. Maybe it really is worth a try, but I do not think a permanent ban might work, given that the MW2, only supports the temporary ban function, consisting of only up to 1 hour. This is why that the manu solve the permanent ban to a log file, remembering the person and immediately kick him out, or provide a temporary ban. Because of the dedicated server (as a system) do not support a permanent ban! So at least I know it. Thats what I heard everywhere!But if it really works for you, then I suggest you go up to the alteriwnet's forum and open a new thread for this punkuster solution;) Many people will be really happy if you go:) For me, the time being it looks like I could set the "Manu + kickban plugin" duo . And it works well.Will be to try this too, but more to be confirmed, because even now, you're the only one from whom I heard this:) But in any event, thank you for your comment! And notify me if you tell the alteriwnet's too;) I'm curious about the results there!

  • help - how the !ban command works?

    • highground
    • 24. Februar 2011 um 19:40

    But how did you get it work??? Beacause mw2 don't have pb... if you turn it on(usepb=1) how it works? What is this use for banning and tempban? I'm not sure this works on mw2... but please confirm you are using it with mw2 ;) If you using it with mw2,then i will try it! ;) Thanks for the reply anyway!

    "Lengyel Magyar két jóbarát,
    együtt harcol s issza borát!"
    ;)

  • help - how the !ban command works?

    • highground
    • 20. Februar 2011 um 17:56
    Zitat von korsika

    server.cfg
    set sv_kickBanTime "3600" // 0 -3600 sec.


    Sadly don't work for me :( Still 5 min./tempban...

  • help - how the !ban command works?

    • highground
    • 18. Februar 2011 um 20:58

    Works like charm!

    But... how can i edit the tempban time?
    This one is for restricted weapon usage:

    "262:37 [18.02.11 20:40:29] !! Warning: ConfigVar [kickban]usepb NOT set, using default: '1'
    262:37 [18.02.11 20:40:29] !! Warning: ConfigVar [kickban]pbtempbanduration NOT set, using default: '5'
    262:37 [18.02.11 20:40:30] !! Warning: Kicking player 'w4rlock01' with kick, using clientkick, PID: 5, XUID:0110000105f347ae "

    I see things not been set in "kickban" plugin,am i right? How can i add usepb or not,and tempban duration? Because 5 min is :thumbdown: just not enough... he comes again and do it all over... 1 hour would be ideal!

    This is kickban.php:

    PHP
    <?php
    
    
    
    
    //Das Event registrieren
    $mod->registerEvent("playerJoined", "jeinparse_send");
    
    
    
    
    //Die Standart CVs setzen, falls sie nicht in der config.cfg gesetzt sind
    $mod->setDefaultCV("kickban", "enabled", 0);
    
    
    
    
    //Hauptfunktion die aufgerufen wird, wenn ein Spieler joint; Argument: GUID des neuen Spielers
    function jeinparse_send($guid) {
    
    
    
    
    global $players;
    global $mod;
    
    
    
    
    //Ist [welcomemessages]enabled = 1
    if (!$mod->getCV("kickban", "enabled")) {
    return false;
    }
    
    
    
    
    $ret = false;
    if (($cont = file_get_contents("C:\Users\Highground\Desktop\Új mappa\adminmod\log\bans.log")) === FALSE) return false;
    if (strpos($cont, $guid) !== false) {
    $players[$guid]->ban("Bans Cheat!");
    }
    }
    
    
    
    
    ?>
    Alles anzeigen

    And weaponrestrictions.php:

    PHP
    <?php
    
    
    
    
    
    
    
    /*
    PLUGIN: Weaponrestrictions
    ================
    Kicks players automatically when they are using a restricted weapon
    
    
    
    
    CONFIG:
    -------
    [weaponrestrictions]
    enabled = 1                                   ;Enable plugin
    weapons = "gl,m79_mp"             ;restricted weapons
    warnstokick = 2                               ;Warns until players get kicked
    mode = "tempban"                              ;kick/ban/tempban
    kickreason = "Used a restricted weapon: <WEAPON>" ;Reason of the kick
    
    
    
    
    
    
    
    NAMESPACE: weaponrestrictions
    
    
    
    
    Functions:
     weaponrestrictions_main
     weaponrestrictions_playerInit
    
    
    
    
    */
    
    
    
    
    $mod->setDefaultCV("weaponrestrictions", "enabled", 0);
    $mod->setDefaultCV("weaponrestrictions", "weapons", "");
    $mod->setDefaultCV("weaponrestrictions", "warnstokick", 2);
    $mod->setDefaultCV("weaponrestrictions", "mode", "tempban");
    $mod->setDefaultCV("weaponrestrictions", "kickreason", "Used a restricted weapon: <WEAPON>");
    
    
    
    
    $mod->registerEvent("playerJoined", "weaponrestrictions_playerInit");
    $mod->registerEvent("playerKill", "weaponrestrictions_main");
    $mod->registerEvent("playerTeamKill", "weaponrestrictions_main");
    
    
    
    
    
    
    
    //Init Players because playerJoined isn't called at startup
    array_map("weaponrestrictions_playerInit", array_keys($players));
    
    
    
    
    function weaponrestrictions_main($parameters) {
    global $mod;
    global $players;
    global $logging;
    list($killer_guid, $victim_guid, $weapon) = $parameters;
    
    
    
    
    if (!$mod->getCV("weaponrestrictions", "enabled")) {
        return;
    }
    
    
    
    
    if ($players[$killer_guid]->isProtected()) {
        return;
    }
    
    
    
    
    $restricted = false;
    $weapons = explode(",", strtolower($mod->getCV("weaponrestrictions", "weapons")));
    
    
    
    
    if ($weapon[1] == "MOD_MELEE") {
        if (in_array("knife", $weapons)) {
            $restricted = true;
        }
        else {
            //Dont warn when player knived while he had a restricted weapon
            return;
        }
    }
    
    
    
    
    else {
        $weapmod = $weapon[0];
    
    
    
    
    foreach ($weapons as $value) {
    if (strpos($weapmod, $value . "_") === 0) {
    $restricted = true;
    break;
    }
    }
    }
    
    
    
    
    if (!$restricted) return;
    
    
    
    
    $players[$killer_guid]->weaponrestrictions_warns ++;
    
    
    
    
    $weaponlong = $mod->getLongWeaponName($weapon);
    
    
    
    
    if ($players[$killer_guid]->weaponrestrictions_warns >= $mod->getCV("weaponrestrictions", "warnstokick")) {
        switch ($mod->getCV("weaponrestrictions", "mode")) {
            case "tempban":
                $players[$killer_guid]->tempBan(str_replace("<WEAPON>", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason")));
                break;
            case "kick":
                $players[$killer_guid]->kick(str_replace("<WEAPON>", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason")));
                break;
            case "ban":
                $players[$killer_guid]->ban(str_replace("<WEAPON>", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason")));
                break;
        }
    }
    else {
    $players[$killer_guid]->say($mod->getLngString("usedRestrictedWeapon", array("<WEAPON>", "<WARNS>", "<MAXWARNS>"), array($weaponlong, $players[$killer_guid]->weaponrestrictions_warns, $mod->getCV("weaponrestrictions", "warnstokick"))));
    $logging->write(MOD_NOTICE, "Player '".$players[$killer_guid]->getName()."' has been warned for using restricted weapon: $weapon, PID: ".$players[$killer_guid]->getPID().", GUID: ".$killer_guid);
    }
    }
    
    
    
    
    function weaponrestrictions_playerInit($guid) {
    $GLOBALS['players'][$guid]->weaponrestrictions_warns = 0;
    }
    
    
    
    
    ?>
    Alles anzeigen

    And a second question: How can i add wepons for restrictions? Because i'm added "m79_mp" aka: "thumper" and deleted "martydrom". Is this .php file correct in this form?
    Thank you in advance guys!

  • help - how the !ban command works?

    • highground
    • 17. Februar 2011 um 19:07

    Thanks guys! I've put on these files yesterday night,but will go to try it now! Thanks again!

  • help - how the !ban command works?

    • highground
    • 16. Februar 2011 um 22:45

    I'm having the same issue... i can't ban anyone out :( Is this works if i drop the files in the right places? :) Or i have to configure something? Because that's "readme" is unreadable :) unknown language :)

  • Pre 0.11.4 Beta-Test

    • highground
    • 28. Januar 2011 um 12:28

    I've managed it :)

  • ManuAdminMod für AlterIWnet

    • highground
    • 23. Dezember 2010 um 21:45

    Where do you see any german word on it? :D This machine is Hungarian(from the better ;) )! Anyways i've managed it to work about an hour :pinch: The problem is: (God damn)ESET Smart Security !!! Turn it off because the firewall (even if it's let it out and in) is the problem! Thanks for your comments guys and have a nice christmas!!! :servus:

  • ManuAdminMod für AlterIWnet

    • highground
    • 23. Dezember 2010 um 16:41

    I am really don't understand it... :( Every time i get this error message :( With every IP and port :(
    http://www.kephost.com/view3.php?file…839s56appk6.jpg
    http://www.kephost.com/view3.php?file…u9cxzpax250.jpg

  • ManuAdminMod für AlterIWnet

    • highground
    • 23. Dezember 2010 um 16:30

    Hello!

    I have a dedicated server on my own machine,i want to install ManuAdminMod on it so i can configure a lot of things... etc. But i don't able to start it :( I have dynamic IP address,and i've tried all of variations with my IP and port,i've heard about the Port of the server needs to be changed if the server and the game is running on the same machine. I've tried different and same ports on it but don't work at all :(
    Here is some examples:
    http://www.kephost.com/view3.php?file…a5jugfyjkms.jpg
    http://www.kephost.com/view3.php?file…76u2y8b0zmk.jpg

    Please help me what i'm doing wrong?

  1. Mitarbeiter
  2. Datenschutzerklärung
  3. Nutzungsbedingungen
  4. Impressum
  5. Kontakt
Community-Software: WoltLab Suite™