Woot, this is final killcam for FFA games and such also? and with or without mods?
Beiträge von Ketchupmaster
-
-
Happy easter everyone and the team!
-
Not working.....Still the warn is only visible to warn giver and who got warned...Don't want that...I want the MAM to say the warn in console without giving pm to the two players..The warn will be visible to everyone
Strange, it works for me.
Is it the same error as before? If theres a error can you copy the error and the line that the errror occurs.
-
hi back
ty dude
you have tested?
it work?No I havnt. I dont have servers which I need restriction on.
-
yo all ,hi Ketchupmaster
you have test it?
it work?
can you send me you new PHP
because i try not work MAMNo I havnt. But to make it easier for you...
PHP file her: Download PHP file here
Upload the PHP file to plugins.Then add this to the config.cfg:
[wpgt]
enabled = 1
weapons = "p90,knife,etc"
gametype = "sd"
warnstokick = 2
mode = "kick"
reason = "Used a restricted weapon: <WEAPON>"and modify the weapons to the weapons you want to restrict.
-
Copy the code voices added, and open notepad++ or just notepad, past the code there and save the file as a .php file.
And add this to config.cfg
Spoiler anzeigen
[wpgt]enabled = 1weapons = "p90,knife,etc"gametype = "sd"warnstokick = 2mdoe = "kick"reason = "Used a restricted weapon: <WEAPON>"
-
Hi,
thanks for response.Made it working but only for 2 people (from backup made ages ago when it was working)
I've tried adding another person to the TCP_User *.db I believe* but this person cannot log in.
I've made simple change to the file as it was saying:
NICK:MASTER:HASHPASSWORD
NICK:MASTER:HASHPASSWORDso I've added another one with generated password in hash but it doesn't work.
Any advice on this is greatly appreciated
Thanks
I never really used tcp before, but you have a generated password so it would be like this:
Nichrome:master:0feca720e2c29dafb2c900713ba560e03b758711
As an example. Eventually you used a bad generator that just isnt working right. As Master of Little said, sha1.
Heres a sha1 generator: http://www.sha1generator.de/ -
PHP Parse error: syntax error, unexpected T_VARIABLE in E:\adminmod\plugins\warns.php on line 84
Hmmm, not sure why line 84 would be wrong. 84 for me is
Spoiler anzeigen
82. case "kick":
83. $players[$towarn]->kick($mod->getCV("warns", "kickreason"));
84. break;Here is the full warns.php that I have and it works for me.
Spoiler anzeigen
<?php
/*
PLUGIN: Warns
=============
Admins can warn players with !warn [reason]; when a player has more than X
warnings he will be kicked/bannedCONFIG
------
[warns]
enabled = 1 ;enable plugin
warnstokick = 3 ;warnings to kick
mode = "tempban" ;kick/ban/tempban
kickreason = "To many warns by admin" ;Reason for kickCOMMANDS
--------
!warnNAMESPACE: warns
Functions:
warn_main
warns_playerInit*/
$mod->setDefaultCV("warns", "enabled", 0);
$mod->setDefaultCV("warns", "warnstokick", 3);
$mod->setDefaultCV("warns", "mode", "tempban");
$mod->setDefaultCV("warns", "kickreason", "To many warns by admin");$mod->registerEvent("playerJoined", "warns_playerInit");
$mod->registerCommand("warn", "|^warn \S.*$|i", "warn_main");//Init Players because playerJoined isn't called at startup
array_map("warns_playerInit", array_keys($players));function warn_main($guid, $parameters) {
global $mod;
global $players;if (!$mod->getCV("warns", "enabled")) {
return false;
}$parastring = implode(" ", $parameters);
if (strpos($parastring, "\\") !== false) {
list($player, $parameters) = explode("\\", $parastring, 2);
$player = trim($player);
$parameters = array(trim($parameters));
}
else {
$player = array_shift($parameters);
}
$towarn = $mod->findPlayerGuid($player);if (!$towarn) {
$players[$guid]->say($mod->getLngString("playerNotFound", array("<SEARCH>"), array($player)));
return false;
}if ($players[$towarn]->isProtected()) {
$players[$guid]->say($mod->getLngString("cantEffectProtected"));
return false;
}$reason = implode(" ", $parameters);
$mod->findReason($reason);
$players[$towarn]->warns_warns ++;
$players[$towarn]->say($mod->getLngString("warnedByAdmin", array("<REASON>", "<WARNS>", "<MAXWARNS>"), array($reason, $players[$towarn]->warns_warns, $mod->getCV("warns", "warnstokick"))));
$GLOBALS['logging']->write(MOD_NOTICE, "Warns: Player '".$players[$towarn]->getName()."' has been warned, reason: '$reason', PID".$players[$towarn]->getPID().", GUID:".$players[$towarn]->getGuid());$mod->say($mod->getLngString("hasBeenWarned", array("<NAME>", "<REASON>", "<WARNS>", "<MAXWARNS>"), array($players[$towarn]->getName(), $reason, $players[$towarn]->warns_warns, $mod->getCV("warns", "warnstokick")))); if ($players[$towarn]->warns_warns >= $mod->getCV("warns", "warnstokick")) {
switch ($mod->getCV("warns", "mode")) {
case "tempban":
$players[$towarn]->tempBan($mod->getCV("warns", "kickreason"));
break;
case "kick":
$players[$towarn]->kick($mod->getCV("warns", "kickreason"));
break;
case "ban":
$players[$towarn]->ban($mod->getCV("warns", "kickreason"));
break;
}
}}
function warns_playerInit($guid) {
$GLOBALS['players'][$guid]->warns_warns = 0;
}Make sure you replaced it, and not just pasted it in so both is there.
-
Make sure you fixed the stuff here in config.cfg
[tcp_query]
enabled = 1
ip = "0.0.0.0"
port = 1337
logintimeout = 30
defaulaction = "say"
sayprefix = "^3TCP-Admin (<ADMIN>): ^7"
admingroups = "master,admin"
disallowedcommands = "vote,yes,no,stats,session"
maxconnections = 5 -
Replace the line
$players[$guid]->say($mod->getLngString("hasBeenWarned", array("<NAME>", "<REASON>", "<WARNS>", "<MAXWARNS>"), array($players[$towarn]->getName(), $reason, $players[$towarn]->warns_warns, $mod->getCV("warns", "warnstokick"))));
with the line
$mod->rconSay($mod->getLngString("hasBeenWarned", array("<NAME>", "<REASON>", "<WARNS>", "<MAXWARNS>"), array($players[$towarn]->getName(), $reason, $players[$towarn]->warns_warns, $mod->getCV("warns", "warnstokick"))));
In adminmod/plugins/warns.php
Thanks to NiNJA for helping me with this one :biggrin:
-
To be honest they made temp banning even better. why should they downgrade it manuadminmod is outdated not the iceops files because i can define with tempban how long the ban takes without having to set tempbantime cvar or whatever that thing was called. So here is a fix. replace player.class.php with my version for 1.7a this also will remove delaying bans due to first announcing them in pm and then banning. player will now be instantly dropped and reason will be displayed in ban message. (the original file is located in the classes folder)WARNING: DO NOT INSTALL IF YOUR SERVER IS NOT RUNNING 1.7a
Thanks! Worked great! Finally we can tempban on my servers. :w00t:
-
Maybe you started your MAM twice.
What my bestfriend Voices said. It happened to me before, I started mam from two different servers for the same server
-
can u post mam log when it crashes? and for displaying stats on website, you need a webfrontend which connects to your database and displays the statistics.
Couldnt find anything on the mam log. It says last updated 17.03.2014 but the last line is from 14.03.2014.
And what is this webfrontend? How do I do it?
Thanks
-
UPDATE:
Manuadmimod keeps crashing after this. It fails in starting
EDIT:
On
[statistics]
statsstring = "^2Kills: <KILLS> ^1Deaths: <DEATHS> ^3K/D: <KPD> ^2time: <ONLINETIME> min ^3K/M: <KPM> ^2HS: <HEADSHOTS> ^7TKs: <TEAMKILLS>"
whisperstats = 0
savestats = "sqlite3"Here i changed savestats to mysql, but then manuadminmod crashed. Also tried MySQL in case that would work but still crash. Then i changed back to sqlite3 and MAM runs. But statistics website not working:/
-
in your stats settings select mysql as database and add your database auth to the config
Now I added my database to the config. What do i do now to make it display the stats on my stats website?
-
I have the exact same problem.
-
Ahoi,
do you use MySQL or SQLite?I use MySQL
-
Hey guys, im trying to make a Stats page for my servers running ManuAdminMod. I have problems figuring out what I have to do to connect the servers MAM to a MySQL database.
Does anyone know how and wants to help me?
Thanks
-
I think im using the version before, 11.5 or something.
-
Hey.
The three commands !aliases, !tempban and !stats is not working like it should:
!Aliases only show the current aliases, if I join the servers as Ketchup I only have that alias until I change alias in the current game. If I change name to for example Master, and reconnect to the servers, my only alias is Master. While it should be every alias I ever used in the server.
!tempban is not working either, it says that I temporary banned player blabla, but he is still in the server playing, and isnt banned.
!stats is also not working, I want it to be the total stats of all gamestats, totally playtime, kills, deaths, k/d etc, but its just for the current games.
Anyone know what the problem can be? I can upload any files needed.
Heres some files I think might be needed:
Statistics.php: http://www20.zippyshare.com/v/57587493/file.html
stats.db: http://www20.zippyshare.com/v/3102264/file.html
basiccommands.php: http://www20.zippyshare.com/v/76753192/file.html
Thanks for any help:)