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
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Dateien
  • Forum
  • Lexikon
  • Erweiterte Suche
  1. GSManager
  2. Forum
  3. Erweiterungen
  4. Anfragen

[ Helper Plugin ]

  • Azad69
  • 14. August 2014 um 04:28
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!
1. offizieller Beitrag
  • Azad69
    Fortgeschrittener
    Reaktionen
    13
    Punkte
    1.428
    Trophäen
    2
    Beiträge
    248
    • 14. August 2014 um 04:28
    • #1

    I want a plugin that will help players..................
    This plugin will use the php code of badwords plugin
    The bad words plugin cheaks words in the chat

    By some modifications and making a new plugin.......the plugin will make MAM say different massage depending on different words

    The word in the chat sentence will TRIGGER MANU ADMIN MOD to say the saved messages for the saved current words
    I mean like if someone use the lag word in chat sentence
    Then MAM will say "If you have lag then Set com_maxfps 250, cg_brass 0, r_drawdecals 0, cl_maxpackets 100, cl_packetdup 2, rate 25000, snaps 30"

    If some one says "he is hacking or anything......the Hack word will trigger MAM to say "If you know someone is hacking the spec him and record the demo using /record cmd for show it to the admins"

    If someone says the Afk word in chat sentence like (razer is afk with sniper kick please) then MAM will say "If the admin are away, then you can kick inactive players by voting !votekick <playername>"


    And many more other stuff by adding THE WORD AND THE REACTION MESSAGE IN CONFIG
    And please also need this in config whisper = 0/1


    Thanx all :smile:

    Einmal editiert, zuletzt von Azad69 (14. August 2014 um 04:49)

  • GumGes1
    Fortgeschrittener
    Reaktionen
    10
    Punkte
    1.460
    Trophäen
    1
    Beiträge
    255
    • 14. August 2014 um 12:54
    • #2

    add in config.cfg

    Spoiler anzeigen

    [helper]
    whisper = 1
    theafkmsg = "msg"
    thelagmsg = "msg"
    thehackmsg = "msg"

    note : if you didn't like the plugin i can update when you join the server say he is hacking or afk or lag it will show one of those each message you add in config
    and the plugin is

    3 Mal editiert, zuletzt von GumGes1 (14. August 2014 um 13:29)

  • Yenz
    Entwickler
    Reaktionen
    90
    Punkte
    10.180
    Trophäen
    5
    Beiträge
    1.988
    Einträge
    9
    • 14. August 2014 um 17:06
    • #3

    @GumGes1 Two suggestions:
    1.) Searchkeywords and response messages should be configured in a text file, so everybody can easily change/add/remove some. Create/read a text file from $mod->getConfigDir() . "/plugins/helper.txt"
    2.) Get familiar with loops (for php they are name with while/for/foreach). Then you can reduce your current three similar if-block with one loop.

    Extra bonus suggestion :D
    3.) support regex to identify chat messages to which respond with the predefined answers. Then one can easily define "if this, that, that or this is found in the message, send this back: blabla". example: '/\bla+g+\b/' will found everything like: lag, laaaag, laaaagggg, lagggggg, BUT NOT flag!!!!

  • Dieses Thema enthält 18 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.
  1. Mitarbeiter
  2. Datenschutzerklärung
  3. Nutzungsbedingungen
  4. Impressum
  5. Kontakt
Community-Software: WoltLab Suite™