Dear visitor, welcome to Manu-Admin-Mod Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.






|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
public function getip($guid, $parameters) {
// made by [MDM]Adam with pleasure :D
if (!empty($parameters[0])) {
$target = $parameters[0];
}
//get playerlist by rcon
$list = $this->mod->rconRcon("status");
$list = explode("\n", $list);
foreach ($list as $value) {
$pattern = '#^\s*(\d+)\s+(-?\d+)\s+(\d+)\s+([a-fA-F0-9]{32}|\d+) (.+?)\s+(\d+) (\d+\.\d+\.\d+\.\d+):(\-?\d+)\s+(\-?\d+)\s+(\d+)$#';
// 1:PID 2:score 3:ping 4:guid 5:name 6:lastmsg 7:IP 8:port 9:qport 10:rate
if (preg_match($pattern, $value, $subpatterns)) {
if ($target == $subpatterns[1]){
$filename = "ips.txt";
$file = fopen($filename, 'a');
$msg= "( Name: ".$subpatterns[5].", IP: ".$subpatterns[7].", GUID: ".$subpatterns[4]." ) ";
fwrite($file, $msg);
fwrite($file,"\n");
fclose($file);
$this->players[$guid]->say("IP for PID: ".$target.", Name: ".$subpatterns[5]." were written into the file.");
}
}
}
}
|

|
|
Source code |
1 |
getip = "getip PID|PART_OF_NICK ^2displays and saves the IP adress of a player" |
) This post has been edited 2 times, last edit by "Frazze" (Jun 14th 2010, 1:38pm)
Es wird mindestend das .NET Framework 3.5 benötigt...
In der 1.2.1 wurde hauptsächlich Verbesserungen im Code vorgenommen die die Stabilität verbessern und weniger Ressourcen benötigt...
Naja und halt kleine kleine Bugfixes - wie Manus bekanntes "Are you sHure?" - mit H![]()
, jetzt können wir die Abstimmungen endlich bei S&Z nutzen.
.

|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 |
$playerNick = $this->players[$player]->getName();
$day = date("d.m.Y");
$timestamp = date("H:i:s");
$msg = "[ $timestamp-$day ]***[ IP: $ip ]***[ GUID: $player ]***[ Nick: $playerNick ]";
$filename = "ips.txt";
$file = fopen($filename, 'a');
fwrite($file, $msg);
fwrite($file,"\n");
fclose($file);
|
|
|
Source code |
1 2 3 |
[mapvote] enabled = 1 type 2 |
This post has been edited 1 times, last edit by "Frazze" (Jun 15th 2010, 3:35pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
ÿÿÿÿprint map_rotate... "sv_mapRotation" is:"gametype sd map mp_broadcast gametype sd map mp_strike gametype sd map mp_crash gametype sd map mp_crossfire gametype sd map mp_citystreets gametype sd map mp_overgrown gametype sd map mp_strike gametype sd map mp_backlot gametype sd map mp_vacant gametype sd map mp_crash gametype sd map mp_crossfire" "sv_mapRotationCurrent" is:"gametype map overgrown" Setting g_gametype: map. Unknown keyword 'overgrown' in sv_mapRotation. No map specified in sv_mapRotation - forcing map_restart. g_gametype map is not a valid gametype, defaulting to dm ==== ShutdownGame (0) ==== ------- Game Initialization ------- gamename: Call of Duty 4 gamedate: Jun 28 2008 |
|
|
Source code |
1 |
sv_mapRotationCurrent" gametype map overgrown" |

|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 |
[mapvote] enabled = 1 type = 1 mapcount = 3 duration = 200 announce = 40 maps = "backlot,strike,crash,crossfire,farm,citystreets,convoy,overgrown,showdown,vacant,broadcast,carentan,pipeline" gametypes = "sd" notlastmaps = 4 notlastgt = 0 votestoskip = "60%" |
|
|
Source code |
1 |
$mapstr = implode("", $mapstr);
|
15208:27 [15.06.10 16:16:00] Notice: Set Dvar sv_maprotationcurrent to 'gametype map overgrown'
This post has been edited 1 times, last edit by "Steffen" (Jun 17th 2010, 4:59pm)


