Thank you, I posted Plugin-Store, hope all well filled
Beiträge von Raiden
-
-
Raiden added a new version:
Raiden8. Februar 2017 um 00:00 ZitatInitial Release.
-
Raiden added a new file:
Raiden8. Februar 2017 um 00:00 Zitat -
Oh it's great that the warnings are stored, thanks for the quick response!
-
Do I understand correctly, thank you for the quick response))
Java"punishment": { "actions": [ [0, "warn", {}], [25, "kill", {}], [50, "kick", {}], [75, "tempban", {"time": 60}], [100, "ban", {}] ],
The numbers before the action are the number of warnings?
A warning reset the player if he leaves the server, and then comes back?
-
I've added Russian language GSManager 1.2.1, wanted to give us something to help and so to speak to expand the audience of users ... I hope I did not break nor a licensing agreement, but whatever it was, you can delete it or add-in program from its name!
Installing:
Unpack the archive into a folder with the program and set in the config russian language and character Windows-1251 as in the image below. -
How to configure this plug-in, that is, how to set the number of warnings and/or to remove them, which would exclude players censor immediately without warning?
Java: censor.json
Alles anzeigen{ "censor": { "enabled": true, "badname": true, "badnames": { "regexp:[nb][o0]{2,}[bn]": 5, "regexp:f+\\s*[ui]+\\s*c+\\s*k+": 5, "regexp:m\\s?(รถ|oe|o3)\\s?s\\s?[e3]": 5, "anal": 5, "arschloch": 5, "bastard": 5, "beschissen": 5, "bitch": 5, "ciemniak": 5, ...................
what kind of numbers next to each word?
-
Loontick, it is necessary to speak iv4x developers, it is their omission! I like because it is not working properly UltraStats.
-
Loontick, my too was on React and now iw4x! Notification to the team name was at MAM, is simply a notice and you can comment out if it is an eyesore, as the developers have long changed the names of the teams on their projects (which already had a lot of). Maybe you need to add the maps and game types in the relevant files?
Punkbuster disconnect in GSM and server config set sv_punkbuster "0". I have with him even Guid were not determined, I could not assign administrators and banned.
Punkbuster
-
You specifically detailing since ManuAdminMod and GSManager is fundamentally different add-ons, but on iw4x MAM does not work, but GSM 1.2.1 copes, although perhaps there are still some nuances ...
-
Yes, yes, I understand you are one, and we have a lot of
It is a pity that the developers call of duty negligently all done thus adding us to work ...
It's been a long time since you promised me to rewrite the plugin, please tell me, will you do it or should I look for other solutions?
-
Yes, I have a server CoD6 and I can certainly test!
-
Mirko911, yes, yes exactly! So it is possible to fix whatever he was working on GSManager?
-
This plugin Vote&AdminSystem (for MW2) was written for ManuAdminMod long been one person for the convenience of voting and server administration Cod 6, the script passed plugin commands to kick, tempban and ban a plug-in to apply them in action, but now I can not and do not want to use manuadminmod when it there Game System Manager, so here is whether this plug-in can be rewritten to GSM?
That plugin code:
Code plugin vas
PHP: vas.php
Alles anzeigen<?php /* PLUGIN: VAS ================ Interaction with Vote&AdminSystem for MW2 Used to kick, ban and tempban from VAS menu created by Dimnik_u11 */ global $mod; if (!$mod->getCV("ftp", "enabled")) { $vasparser = new parser($mod->getCV("main", "logfile"), $success); } else { $vasparser = new parser_ftp($mod->getCV("main", "logfile"), $success, $mod->getCV("ftp", "host"), $mod->getCV("ftp", "user"), $mod->getCV("ftp", "password"), $mod->getCV("ftp", "port"), (bool)(int)$mod->getCV("ftp", "passive")); } if (!$success) { $logging->write(MOD_ERROR, "Couldn't open server's logfile: '".$mod->getCV("main", "logfile")."'"); return; } $logging->write(MOD_NOTICE, "--- VAS plugin: Start processing loglines... ---"); $mod->setDefaultCV("vas", "banlistfile", $mod->getConfigDir() . "/plugins/banlist.txt"); $mod->setDefaultCV("vas", "enableban", 0); $mod->setDefaultCV("vas", "logging", 0); $banlistfile = $mod->getCV("vas", "banlistfile"); $srvlogfile = $mod->getCV("main", "logfile"); $logenable = $mod->getCV("vas", "logging"); $mod->registerEvent("everyTime", "vas_check"); $mod->registerEvent("playerJoined", "ban_check"); function vas_check() { global $logging; $vas_command = getLine(); if ($vas_command === false){ return; } $action = $vas_command["action"]; $parts = $vas_command["parts"]; vas_execute($action,$parts); } function getLine() { global $logging; global $vasparser; global $logenable; clearstatcache(); $newlines = $vasparser->getNewLines(); foreach ($newlines as $line) { //$logging->write(MOD_NOTICE, "VAS: New line. $line"); $pattern_abs = '|^\s*(\d+) |'; $pattern_rel = '|^\s*(\d+):(\d{2}) |'; if (preg_match($pattern_rel, $line, $subpatterns)) { $timestamp = 60 * $subpatterns[1] + $subpatterns[2]; } elseif (preg_match($pattern_abs, $line, $subpatterns)) { $timestamp = $subpatterns[1]; } else { return false; } $line = trim(str_replace($subpatterns[0], "", $line)); if (strpos($line, "VAS") === 0) { $line = trim(str_replace("VAS;", "", $line)); if($logenable) $logging->write(MOD_NOTICE, "VAS: $line"); if (strpos($line, "execute") === 0) { $line = trim(str_replace("execute;", "", $line)); //$logging->write(MOD_NOTICE, "VAS: execute in line. $line"); $vas_action = vas_getAction($line); $vas_parts = vas_ParseParts($line); return array( "action" => $vas_action, "parts" => $vas_parts, ); } } } return false; } function vas_ParseParts($line) { $parts = explode(";", $line); array_shift($parts); return $parts; } function vas_getAction($line) { $vas_actions = array( "kick" => "kick;", "ban" => "ban;", "tempban" => "tempban;", "warning" => "warning;" ); foreach ($vas_actions as $key => $value) { if (strpos($line, $value) === 0) { return $key; } } return "unknown"; } function vas_execute($action,$parts) { //global $players; global $mod; global $logging; global $banlistfile; $rcon = & $GLOBALS['rcon']; //list($except_guid, $except_pid, $except_name, $except_reason, $except_by) = $parts; switch ($action) { case "kick": //"VAS - guid ; name ; reason ; kickby list($except_guid, $except_pid, $except_name, $except_reason, $except_by, $adminname) = $parts; //list($kick_guid, $kick_pid, $kick_name, $kick_reason, $kickby) = $parts; $toclient = "kicked for reason: " . $except_reason . " (" . $except_by . ")"; $logging->write(MOD_NOTICE, "VAS: command kick - player '$except_name', PID: $except_pid, GUID: $except_guid, reason: $toclient"); $rcon->rcon("clientkick " . $except_pid . " " . $toclient ); $mod->triggerEvent("playerKicked", array($except_guid, $except_reason)); break; case "tempban": //"VAS - guid ; name ; reason ; by list($except_guid, $except_pid, $except_name, $except_reason, $except_by, $adminname) = $parts; //list($tban_guid, $tban_pid, $tban_name, $tban_reason, $tbanby) = $parts; $toclient = "tempbanned for reason: " . $except_reason . " (" . $except_by . ")"; $logging->write(MOD_NOTICE, "VAS: command tempban - player '$except_name', PID: $except_pid, GUID: $except_guid, reason: $toclient"); $rcon->rcon("tempBanClient " . $except_pid . " " . $toclient); $mod->triggerEvent("playerTempBanned", array($except_guid, $except_reason)); break; case "ban": list($except_guid, $except_pid, $except_name, $except_reason, $except_by, $adminname) = $parts; $toclient = "banned for reason: " . $except_reason . " (" . $except_by . ")"; $logging->write(MOD_NOTICE, "VAS: command ban - player '$except_name', PID: $except_pid, GUID: $except_guid, reason: $toclient"); $rcon->rcon("tempBanClient " . $except_pid . " " . $toclient); $date = date("[d.m.y H:i:s]"); $str = "$date Player \"$except_name\" ($except_guid) got BANNED for reason: $except_reason ($except_by)\n"; $banlistfile_filehandle = fopen($banlistfile, "a"); fwrite($banlistfile_filehandle, $str); fclose($banlistfile_filehandle); $mod->triggerEvent("playerBanned", array($except_guid, $except_reason)); break; case "warning": default: return; } } function ban_check($guid) { global $players; global $mod; global $logging; $rcon = & $GLOBALS['rcon']; global $banlistfile; if (!$mod->getCV("vas", "enableban")) { return false; } //$ret = false; if (($cont = file_get_contents($banlistfile)) === FALSE) return false; $findguidpos = strpos($cont, $guid); if ($findguidpos !== false) { $endstr = strpos($cont, chr(10), $findguidpos); $resonestart = strpos($cont, "reason:", $findguidpos); //$reasone = substr($cont, $resonestart, $endstr-$resonestart); $reasone = str_replace("reason: ", "" ,substr($cont, $resonestart, $endstr-$resonestart)); $pid = $players[$guid]->getPID(); $rcon->rcon("tempBanClient " . $pid . " " . $reasone); //$players[$guid]->kick("Autokick! BANED for $reasone"); $logging->write(MOD_NOTICE, "BANCHECK: Player '".$players[$guid]->getName()."' guid: ($guid) was TempBanned. Stored reasone: '$reasone'"); } } //} ?>
Just add the script
-
Thank you, now you can create threads, it is good that there is an archive, then you are the administrator who already do backups and it's good!
-
Thank you for the quick response, I'll wait, I appreciate your work on the project!
-
I apologize that are off topic, but I can not start a new topic, as well as see the documentation page, error page:
-
juni, thanks already prompted me, but I figured out myself, once again returning the old MAM 0.11.4 ban because the function does not work for the MW2 ...
-
Mirko911, sorry, my fault in the config was repeated commands from the plug Ban.php:
Code
Alles anzeigen[kickban] defaultkickreason = "Kicked by Admin" defaultbanreason = "Banned by Admin" modpower = 100 forcereason = 1 usepb = 1 pbtempbanduration = 5 announce = 1 maxtempbantime = 3600 announcemessages = 5 ........ [kickban] enabled = 1 DefaultKickReason = "Несоответствие требованиям сервера !" DefaultTempBanReason = "НАРУШЕНИЕ ПРАВИЛ ! БАН - Временный !" DefaultBanListReason = "ГРУБОЕ НАРУШЕНИЕ ! БАН - ПОСТОЯННЫЙ !" KickReason = "^5Kicked!^7=^5Исключён!" TempBanReason = "^3Blocked!^7=^3Заблокирован!" BanReason = "^1BANNED!^7=^1ЗАБАНЕН!"
Thanks for the help!! -
All by default, I did not change anything, but what kind of team?
Code[kickban] defaultkickreason = "Kicked by Admin" defaultbanreason = "Banned by Admin" modpower = 100 forcereason = 1 usepb = 1 pbtempbanduration = 5 announce = 1 maxtempbantime = 3600 announcemessages = 5
May be due to the fact that I use on the site and banlist plugin log writes to the database ...