Beiträge von Circuit_
-
-
When the mod is running, sometimes the Mysql connection is lost and crashes in 2 spots.
Code[17-Sep-2009 16:48:18] PHP Fatal error: Call to a member function num_rows() on a non-object in ".."\statistics.php on line 321 [17-Sep-2009 17:10:44] PHP Fatal error: Call to a member function fetch_assoc() on a non-object in "..."\statistics.php on line 362
Thanks for any help on this
-
-
-
Your FTP-Server does not support RETRY. But adminmod needs this to work. Update your FTP server to a version which supports RETRY
Is it possible that the my firewall on the server I was installing this on is causing a problem? Worked fine from my home PC??Thank you
-
Well I had the script up and running, and was working fine. Now all of a sudden I get this error, after I moved it to my server box. I don't believe its a major error but not sure.
PHP: === Start processing loglines... === 0:00 [15.09.09 15:42:34] PHP-Error: Warning in :\Documents and Settings\Admin\Desktop\Bolt\adminmod\classes\parser_ftp.class.php:104 => ftp_get(): 'RE*T 75916963': command not understood 0:00 [15.09.09 15:42:34] !! Warning: Error getting new loglines by FTP (code: 2), trying to reconnect... 0:00 [15.09.09 15:42:34] Notice: waiting 2 seconds until next try... 0:00 [15.09.09 15:42:36] Notice: Successfully reconnected to FTP server: '209.246.142.209' on port 21 as '759557c' 0:00 [15.09.09 15:42:37] PHP-Error: Warning in :\Documents and Settings\Admin\Desktop\Bolt\adminmod\classes\parser_ftp.class.php:104 => ftp_get(): 'RE*T 75916963': command not understood 0:00 [15.09.09 15:42:37] !! Warning: Error getting new loglines by FTP (code: 2), trying to reconnect...
Thanks.
-
Kick if killer used a restricted weapon on a certain team "allies"
like this maybe, Where have the if to look $team and see if it = allies. thanks
PHP
Alles anzeigenfunction weaponrestrictions_main($parameters) { global $mod; global $players; global $logging; list($killer_guid, $victim_guid, $weapon, $team) = $parameters; if (!$mod->getCV("weaponrestrictions", "enabled")) { return; } if ($players[$killer_guid]->isProtected()) { return; } if ($team == "allies" ) { $players[$killer_guid]->weaponrestrictions_warns ++; $weaponlong = $mod->getLongWeaponName($weapon); if ($players[$killer_guid]->weaponrestrictions_warns >= $mod->getCV("weaponrestrictions", "warnstokick")) { switch ($mod->getCV("weaponrestrictions", "mode")) { case "tempban": $players[$killer_guid]->tempBan(str_replace("", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason1"))); break; case "kick": $players[$killer_guid]->kick(str_replace("", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason1"))); break; case "ban": $players[$killer_guid]->ban(str_replace("", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason1"))); break; } } else { $players[$killer_guid]->say($mod->getLngString("usedRestrictedWeapon", array("", "", ""), array($weaponlong, $players[$killer_guid]->weaponrestrictions_warns, $mod->getCV("weaponrestrictions", "warnstokick")))); $logging->write(MOD_NOTICE, "Player '".$players[$killer_guid]->getName()."' has been warned for using restricted weapon: $weapon, PID: ".$players[$killer_guid]->getPID().", GUID: ".$killer_guid); } }
-
Looking for how to add the team the killer was on.
thank you.