Beiträge von Yenz
-
-
Zitat
[...] right??
no :-/ -
post the content of your mam.bat and your mam.cfg (both can be opened by every plain text editor (notepad.exe, notepad++.exe, wordpad.exe, ...).
-
update your php version!!!
-
Yeah, that was only a code snippet to show you some better/alternative ways.
If you want further help always post your code in [spoiler ] and [code] tags. Then it's much easier to see what you've done and what the problem is. -
just a trick:
http://php.net/manual/de/function.file.phpPHP<?php $allBans = file("C:\\Users\\user\\Desktop\\Call of Duty 4 - Modern Warfare\\main\\ban.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach ($allBans as $bans) { // code to modify a ban if you want // $ban = substr(trim($ban), 24); $players[$guid]->say($bans); }
This will read the ban.txt file, ignore new line chars and leave out empty lines. So you'll get an array with every useful line without any whitespaces.
P.S.: Please use the [code]-Tag!!!
-
"^2Play fair and have fun
There is missing a " and a ,
--->"^2Play fair and have fun".,
-
Install a current version of php http://windows.php.net/download/
-
There was a little bug in Mirko's "registerCommand" line. I've fixed that already.
Plugin is tested and working!PHP
Alles anzeigen<?php $mod->registerCommand("date", false, "my_date"); function my_date($guid, $parameters) { //Get access to the mod class, which holds all mam relevant functions, values global $mod; //Find out the date. Y = year, m = month, d = day $mytime = date('Y-m-d'); //Say this message to everyone on the server $mod->rconSay($mytime); }
-
Guys, please don't try to overwrite built-in PHP functions
The time() should do exactly that: http://www.php.net/manual/de/function.time.php And nothing else^^GumGes1: Just give your function another name!
-
Hallo zusammen,
habe eben mal an einem vielfach gewünschten Plugin gearbeitet. Der TS3Poker. Mit einem Kartenspiel hat das aber nichts zu tun
Installation:
Entpacken & Kopieren & EinfügenKonfiguration TS3:
Mit einem ausreichend priviligierten (TM) Account in TS3 auf Extras -> ServerQuery Login gehen. Username ist egal, muss halt mit dem Passwort zusammen in die Plugin-Config eingetragen werden.Konfiguration Plugin:
Code
Alles anzeigen{ "ts3poker" : { "enabled" : true, "ip" : "127.0.0.1", "port" : 10011, "username" : "test", "password" : "b334ZBuH", "msgPrefix" : "MAM here! ", "clients" : "Ted,Angela" } }
Der "port" ist der ServerQuery Port vom TS3 Server. Standard seitens TS3 ist 10011.
Die "clients" müssen exakt so heißen wie auf dem TS3! Mehrere können per Komma "," getrennt werden (s. Bsp.).Konfiguration MAM:
Den Befehl "ts3poke" in die groups.json eintragen.
Optional: Einen Alias in der config.json eintragen (ts, ts3, admin oder report).Anwendung:
!ts3poke Hey, hier ist einer, der ist ganz doll gemeinProblembehanldung:
Spoiler anzeigen
Bitte manuell testen, ob folgende Schritte per putty/telnet ausgeführt werden können (TS3 ServerQuery):
Hinweis: Die clid müsst ihr euch aus der Antwort von "clientlist" raussuchen.Mögliche Ausgabe:
Code
Alles anzeigenTS3 Welcome to the TeamSpeak 3 ServerQuery interface, type "help" for a list of commands and "help <command>" for information on a specific command. login test b334ZBuH error id=0 msg=ok use 1 error id=0 msg=ok clientlist clid=4 cid=1 client_database_id=2 client_nickname=Yenz\sfrom\s127.0.0.1:57521 client_type=1|clid=6 cid=1 client_database_id=2 client_nickname=Yenz client_type=0|clid=10 cid=1 client_database_id=3 client_nickname=test client_type=0 error id=0 msg=ok clientpoke clid=4 msg=testmsg error id=516 msg=invalid\sclient\stype clientpoke clid=6 msg=testmsg error id=0 msg=ok
Spoiler anzeigen
b_client_create_modify_serverquery_login
b_virtualserver_client_list -
You need at least PHP
5.3.05.4.0! -
Could you tell us, what your setting in [main]logfile is?
-
Oh, i've read over "console_mp.log".
But Master of Little is right with his answer. Notepad++ would be my suggestion, too. -
You can give the logfile a different name, one that is not easy to guess (like "bhsbfsdahbisdf.log").
you have to change the logfile config variable in your cod config and the [main]logfile setting in mam config
-
install php on linux
currently we only have a german instruction guide here: http://archive.manuadminmod.de/index.php?page=LexiconItem&id=6
and here: http://archive.manuadminmod.de/index.php?page=LexiconItem&id=4
(which will be gone in half a month)quickly in english for you:
install php5 (incl. sockets extension if you would like tou use the tcp console from a windows pc)
install screen (if you're not a versed linux user)
take a look in the "startscript" file and set the right paths (well documented directly in the file what to do)
use the startscript like "./startscript start" -
You can download both from here:
http://archive.manuadminmod.de/thread/2371/ad…ght=admin+valid -
and check the path to your logfile in the config.cfg
-
Honestly... I really don't know what you're doing wrong
I've tried the following:
admin_valid_server.php in /plugins
admin_groups.txt in /config/plugins with this content:Codec78b680712d8b2b1dde3c77f48d77814:master:1:2b620bdf79fc91e5f062c2d6e897dd3c 1234567980abcdef0123456789abcdef:master:1:2b620bdf79fc91e5f062c2d6e897dd3c
authenticate.bat with this content:Code
Alles anzeigen@echo off set ip=127.0.0.1 set port=8009 set guid=c78b680712d8b2b1dde3c77f48d77814 set passwort=falah admin_valid_client.exe %ip% %port% %guid% %passwort% pause
After running the bat I get this:
Codesent "2b620bdf79fc91e5f062c2d6e897dd3c81d4ed145147ffc97b01775a77dd9f87c78b680712 d8b2b1dde3c77f48d77814 " answer: admin IP registered
As you can see I get the same "sent ..." as in your screenshot.Sadly, I cannot reproduce your error. So as an exception I would help you along with teamviewer and do some debugging on your machine...
-
Please leave the code unchanged (as it is working correctly for others and we're interested in a solution that works for everyone, even for you *g*).
So please do what i've posted before:can you please ZIP AND UPLOAD your original files (admin_groups.txt AND authenticate.bat)
After that we hopefulyl can reproduce your error and fix any bugs.Thanks