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. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Dateien
  • Forum
  • Lexikon
  • Erweiterte Suche
  1. GSManager
  2. Forum
  3. Erweiterungen
  4. Anfragen

Complaint Cell :)))

  • jinkazama
  • 7. März 2013 um 07:26
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!
  • jinkazama
    Anfänger
    Punkte
    20
    Beiträge
    3
    • 7. März 2013 um 07:26
    • #1

    This will receive the the complaint or msg from players and write into the manuadminmod/log/complaint.log

    Code :


    $mod->registerCommand("comp", '~^comp \S.*$~i', "comp", $commands_basic);
    public function comp($guid, $parameters)
    {
    $parameters = implode(" ", $parameters);
    $this->players[$guid]->say("Complaint Registered");
    $this->players[$guid]->say("Your Complaint is > ^0" . $parameters);
    $timestamp = date("[d.m.y H:i:s]");
    $h = fopen(LOGDIR . "/complaint.log", "a");
    fwrite($h, $timestamp . " [" . $guid . "] : [" . $parameters . "] Complaint by [ " . $this->players[$guid]->getName() . " ]\n\n");
    fclose($h);
    }
    1. Add the code to your manuadminmod/plugin/basiccommands.php
    2. Add the "comp" in the manuadminmod/config/groups.cfg (add comp to all groups)
    3. Add the a text file with name complaint to log folder and change its extension to .log (manuadminmod/log/complaint.log)
    4. Type !comp yourmsg

    Your Complaint will be find here (manuadminmod/log/complaint.log)


    Thnaks


    JinKazama* Game Ranger 3044420


    You think you are better than me because you are programmer???
    No I’m better than you because I have Brain :hide:


  • asadleo9
    Anfänger
    Punkte
    65
    Beiträge
    10
    • 19. März 2013 um 19:42
    • #2

    Kisi ny lift hi nahi krai :lol:

    Bilder

    • API.png
      • 131,19 kB
      • 1.759 × 1.682
    • Ablauf Serverkommunikation.png
      • 52,9 kB
      • 627 × 929
  • {cool.G} ingre
    Anfänger
    Reaktionen
    15
    Punkte
    670
    Trophäen
    2
    Beiträge
    118
    • 25. März 2013 um 09:33
    • #3
    Zitat von jinkazama

    This will receive the the complaint or msg from players and write into the manuadminmod/log/complaint.log

    Code :


    $mod->registerCommand("comp", '~^comp \S.*$~i', "comp", $commands_basic);
    public function comp($guid, $parameters)
    {
    $parameters = implode(" ", $parameters);
    $this->players[$guid]->say("Complaint Registered");
    $this->players[$guid]->say("Your Complaint is > ^0" . $parameters);
    $timestamp = date("[d.m.y H:i:s]");
    $h = fopen(LOGDIR . "/complaint.log", "a");
    fwrite($h, $timestamp . " [" . $guid . "] : [" . $parameters . "] Complaint by [ " . $this->players[$guid]->getName() . " ]\n\n");
    fclose($h);
    }
    1. Add the code to your manuadminmod/plugin/basiccommands.php
    2. Add the "comp" in the manuadminmod/config/groups.cfg (add comp to all groups)
    3. Add the a text file with name complaint to log folder and change its extension to .log (manuadminmod/log/complaint.log)
    4. Type !comp yourmsg

    Your Complaint will be find here (manuadminmod/log/complaint.log)

    Thnaks

    JinKazama* Game Ranger 3044420

    You think you are better than me because you are programmer???
    No I’m better than you because I have Brain :hide:

    Alles anzeigen


    what is this config?? :cool:

    STEAM name : {cool.G} ingre

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