1. GSManager
    1. Funktionen
    2. Unterstützte Spiele
    3. Neuigkeiten
    4. Statistiken
    5. Serverliste
  2. Lexikon
  3. Filebase
  4. Entwicklung
  5. Forum
    1. Dashboard
    2. Unerledigte Themen
  6. Web-Interface
  7. Artikel
  8. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Dateien
  • Forum
  • Lexikon
  • Erweiterte Suche
  1. GSManager
  2. Forum
  3. Unterstützung
  4. Benutzung

Plugins gehen nicht [COD4]

  • In0cenT
  • 13. Juni 2011 um 14:59
  • Geschlossen
Das Projekt GSManager (vormals ManuAdminMod) wurde am 01.01.2020 eingestellt - diese Internetpräsenz bleibt verfügbar, die Software wird aber nicht länger gepflegt. Vielen Dank für eure Unterstützung in den mehr als zehn vergangenen Jahren!
1. offizieller Beitrag
  • In0cenT
    Anfänger
    Punkte
    320
    Beiträge
    53
    • 13. Juni 2011 um 14:59
    • #1

    Also ich habe einen Gameserver bei Nitrado.de gemietet. Bei ihnen bekomt man gleich ManuAdmin mit dem ich theoretisch sehr zufrieden wäre, würde es nur gehen...

    Also hier mal meine Admin.cfg:

    Code
    ; This file will be overwritten by the mod automatically
    ; Do not make any comments inhere
    ; Use the generator to generate a valid file: http://manuadminmod.de/config/admin.php
    
    
    
    
    [e5a20f9a]
    group = "master"
    protected = 1
    names = "[NeXo] In0cenT"
    Alles anzeigen

    zu bemerken, dass ich meinen GUID auf einem anderen Server gesucht habe, da !me auf meinem Server nicht geht.

    meine Config.cfg:

    Code
    [main]
    ip = "78.143.12.39"
    port = 28960
    logfile = "../cod4_config/main/games_mp.log"
    rconpassword = "gomel"
    timezone = "Europe/Berlin"
    prefix = "!"
    language = "de"
    antispam = 2
    logrcon = 0
    antistartupbug = "restart"
    fixguidrelax = 1
    pmprefix = "^1PM: ^2"
    responsefailcmds = 0
    
    
    
    
    [ftp]
    enabled = 0
    host = ""
    port = 21
    user = ""
    password = ""
    passive = 1
    
    
    
    
    [tcp_query]
    enabled = 0
    ip = "78.143.12.39"
    port = 28965
    logintimeout = 30
    defaulaction = "say"
    sayprefix = "^3TCP-Admin (<ADMIN>): ^7"
    admingroups = "master,admin"
    disallowedcommands = "vote,yes,no,stats,session"
    maxconnections = 5
    
    
    
    
    [kickban]
    defaultkickreason = "Kicked by Admin"
    maxtempbantime  = 1440
    defaultbanreason = "Banned by Admin"
    usepb = 1
    pbtempbanduration = 5
    announce = 1
    
    
    
    
    [welcomemessages]
    enabled = 1
    whisper = 1
    master = "^1ATTENTION: <GROUP_NAME> ^7<PLAYER_NAME>^1 has joined the game!"
    admin = "^1<GROUP_NAME> ^7<PLAYER_NAME>^1 has joined the game!"
    member = "^2Welcome <GROUP_NAME> ^7<PLAYER_NAME>^2"
    user = "^2Welcome <GROUP_NAME> ^7<PLAYER_NAME>^2"
    default = "^2Welcome <GROUP_NAME> ^7<PLAYER_NAME>"
    
    
    
    
    [banner]
    enabled = 0
    time = 120
    
    
    
    
    [randommapcycle]
    enabled = 0
    maps = "mp_backlot,mp_bloc,mp_bog,mp_cargoship,mp_citystreets,mp_convoy,mp_countdown,mp_crash,mp_crash_snow,mp_crossfire,mp_farm,mp_overgrown,mp_pipeline,mp_showdown,mp_strike,mp_vacant,mp_shipment,mp_broadcast,mp_carentan,mp_creek,mp_killhouse"
    gametypes = "war,dm,sab,koth,sd,dom"
    notlastmaps = 3
    notlastgt = 1
    
    
    
    
    [badwords]
    enabled = 0
    warnstokick = 3
    mode = "tempban"
    kickreason = "Use of bad words"
    
    
    
    
    [warns]
    enabled = 0
    warnstokick = 2
    mode = "ban"
    kickreason = "Too many warns by admin"
    
    
    
    
    [pingkicker]
    enabled = 1
    maxping = 150
    checkinterval = 30
    warnstokick = 2
    mode = "kick"
    kickreason = "Your ping is too high"
    
    
    
    
    [nameprotection]
    enabled = 1
    badnamekick = 1
    badnamekickmode = "kick"
    badnamekickreason = "Your name contains an illegal part: <PART>"
    adminnamekick = 1
    adminnamekickmode = "kick"
    adminnamekickreason = "Your name is an admins name"
    
    
    
    
    [modstuff]
    checkforupdates = 1
    checkinterval = 6
    announceinterval = 5
    serverlist = 1
    serverlistip = ""
    
    
    
    
    [spreemessages_config]
    enabled = 0
    firstblood = 1
    killsprees = 1
    deathsprees = 1
    spreeends = 1
    spreeendsfrom = 10
    multikills = 1
    
    
    
    
    [spreemessages_messages]
    firstblood = "^7<PLAYER_NAME> ^1drew first blood!"
    multikill = "^7!! ^1Multikill ^7> ^2<PLAYER_NAME>^7 < ^1Multikill^7 !!"
    monsterkill = "^7!!!! ^1MONSTERKILL ^7>>> ^2<PLAYER_NAME>^7 <<< ^1MONSTER KILL ^7!!!!"
    end_kill = "^2<PLAYER_NAME>^1's killing spree ended (^2<KILLS> ^1kills). He was killed by ^3<KILLER_NAME>^1!"
    end_teamkill = "^2<PLAYER_NAME>^1's killing spree ended (^2<KILLS> ^1kills). He was killed by TEAMMATE ^3<KILLER_NAME>^1!"
    end_selfkill = "^2<PLAYER_NAME>^1's killing spree ended (^2<KILLS> ^1kills). He killed ^3himself^1, what a pity!"
    5  = "^7<PLAYER_NAME> ^1is on a ^3killing spree! ^1(^2<KILLS> ^1kills in a row)"
    10 = "^7<PLAYER_NAME> ^1is on a ^3rampage! ^1(^2<KILLS> ^1kills in a row)"
    15 = "^7<PLAYER_NAME> ^1is ^3dominating! ^1(^2<KILLS> ^1kills in a row)"
    20 = "^7<PLAYER_NAME> ^1is ^3unstoppable! ^1(^2<KILLS> ^1kills in a row)"
    25 = "^7<PLAYER_NAME> ^1is ^3godlike!! ^1(^2<KILLS> ^1kills in a row)"
    30 = "^7<PLAYER_NAME> ^1is ^3wicked sick!!! ^1(^2<KILLS> ^1kills in a row)"
    35 = "^7<PLAYER_NAME> ^1is ^3real Potter!!! ^1(Woohoo, ^2<KILLS> ^1kills in a row!)"
    -10 = "^7<PLAYER_NAME> ^1seems to have a bad day ... (^2<DEATHS>^1 deaths without a ^2kill^1)"
    -15 = "^7<PLAYER_NAME> ^1is on the best way to get ^3victim^1 of the day... (^2<DEATHS> ^1deaths w/o ^2kill^1)"
    -20 = "^7<PLAYER_NAME> ^1really gets his ^3ass kicked!^1 Oh well, ^2<DEATHS> ^1deaths without a ^2kill^1..."
    
    
    
    
    [weaponrestrictions]
    enabled = 1
    weapons = "gl,frag_grenade_short,rpg,saw,rpd,m60e4"
    warnstokick = 2
    mode = "tempban"
    kickreason = "Used a restricted weapon: <WEAPON>"
    
    
    
    
    [statistics]
    statsstring = "^2Kills: <KILLS> ^1Deaths: <DEATHS> ^3K/D: <KPD> ^2time: <ONLINETIME> min ^3K/M: <KPM> ^2HS: <HEADSHOTS> ^7TKs: <TEAMKILLS>"
    whisperstats = 0
    savestats = "0"
    
    
    
    
    [statistics_mysql]
    host = "localhost"
    user = ""
    password = ""
    databse = ""
    prefix = ""
    
    
    
    
    [antiteamkiller]
    enabled = 0
    min = -3
    start = 0
    warn = 3
    kick = 4
    teamkill = 1
    kill = 0.1
    mode = "tempban"
    kickreason = "Made too many teamkills"
    forgive = 1
    forgivetime = 30
    forgivepoints = 0.5
    
    
    
    
    [aliases]
    k      = "kick"
    b      = "ban"
    rm     = "quitmod"
    mr     = "quitmod"
    setlevel   = "setgroup"
    admincheck = "checkadmin"
    owned  = "fun owned"
    pwned  = "fun owned"
    killed = "fun killed"
    bye    = "fun bye"
    pizza  = "fun pizza"
    beer   = "fun beer"
    coke   = "fun coke"
    whoiam = "fun whoiam"
    groups = "setgroup listgroups dummy"
    f      = "forgive"
    y      = "yes"
    n      = "no"
    j      = "yes"
    votekick   = "vote kick"
    votemap= "vote map"
    voteban= "vote ban"
    banlist= "pbbanlist"
    unban  = "pbunban"
    
    
    
    
    [funmessages]
    enabled = 0
    killed  = "^7<PLAYER_NAME> ^1was last killed by ^7<PLAYER_LASTKILLER> ^1with a ^7<PLAYER_LASTWEAPONDEATH>"
    owned   = "^7<PLAYER_NAME> ^1killed ^7<PLAYER_LASTVICTIM> ^1with a ^7<PLAYER_LASTWEAPONKILL>"
    bye = "^7<PLAYER_NAME>^2 waves his hand to say ^1GOOD BYE^2. We surely meet later!"
    pizza   = "^2Someone calls Mario and he brings ^7<PLAYER_NAME>^2 a hot pepperoni pizza!"
    beer= "^2A nice sexy waitress brings ^7<PLAYER_NAME>^2 a nice pint of beer!"
    coke= "^2Ah... A delicious glass of cold Coca Cola[tm] (*thinks ^7<PLAYER_NAME>^2 while he's drinking*)"
    whoiam  = "^2My name is ^7<PLAYER_NAME>^2, I'm in the team ^7<PLAYER_TEAM>^2 with a ^7<PLAYER_LASTWEAPONKILL>^2 and have ^7<PLAYER_KILLS>^2 Kills"
    
    
    
    
    [voting]
    enabled = 0
    duration = 45
    interval = 120
    annouce = 15
    minplayers = 3
    maxvotesperplayer = 2
    allowkick = 1
    allowban = 1
    allowmap = 1
    allowgametype = 1
    allownextmap = 1
    allowrestart = 1
    allowedmaps = "<maps.cfg>"
    allowedgametypes = "war,dom,koth,dm,sab,sd"
    Alles anzeigen

    Weaponsrestricion geht leider auch nicht:

    PHP
    <?php
    
    
    
    
    
    
    
    /*
    PLUGIN: Weaponrestrictions
    ================
    Kicks players automatically when they are using a restricted weapon
    
    
    
    
    CONFIG:
    -------
    [weaponrestrictions]
    enabled = 1                                   	;Enable plugin
    weapons = "gl,frag_grenade_short,rpg,saw,rpd,m60e4"             	;restricted weapons
    warnstokick = 1                               	;Warns until players get kicked
    mode = "tempban"                              	;kick/ban/tempban
    kickreason = "Used a restricted weapon: <WEAPON>" ;Reason of the kick
    
    
    
    
    
    
    
    NAMESPACE: weaponrestrictions
    
    
    
    
    Functions:
     	weaponrestrictions_main
     	weaponrestrictions_playerInit
    
    
    
    
    */
    
    
    
    
    $mod->setDefaultCV("weaponrestrictions", "enabled", 0);
    $mod->setDefaultCV("weaponrestrictions", "weapons", "");
    $mod->setDefaultCV("weaponrestrictions", "warnstokick", 2);
    $mod->setDefaultCV("weaponrestrictions", "mode", "tempban");
    $mod->setDefaultCV("weaponrestrictions", "kickreason", "Used a restricted weapon: <WEAPON>");
    
    
    
    
    $mod->registerEvent("playerJoined", "weaponrestrictions_playerInit");
    $mod->registerEvent("playerKill", "weaponrestrictions_main");
    $mod->registerEvent("playerTeamKill", "weaponrestrictions_main");
    
    
    
    
    
    
    
    //Init Players because playerJoined isn't called at startup
    array_map("weaponrestrictions_playerInit", array_keys($players));
    
    
    
    
    function weaponrestrictions_main($parameters) {
    	global $mod;
    	global $players;
    	global $logging;
    	list($killer_guid, $victim_guid, $weapon) = $parameters;
    
    
    
    
    	if ($weapon[1] == "MOD_MELEE") {
        	//Dont warn when player knived while he had a restricted weapon
        	return;
    	}
    
    
    
    
    	$weapon = $weapon[0];
    
    
    
    
    	if (!$mod->getCV("weaponrestrictions", "enabled")) {
        	return;
    	}
    
    
    
    
    	if ($players[$killer_guid]->isProtected()) {
        	return;
    	}
    
    
    
    
    	$weapons = explode(",", $mod->getCV("weaponrestrictions", "weapons"));
    
    
    
    
    	$restricted = false;
    	foreach ($weapons as $value) {
    		if (strpos($weapon, $value . "_") === 0) {
    			$restricted = true;
    			break;
    		}
    	}
    
    
    
    
    	if (!$restricted) return ;
    
    
    
    
    	$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("<WEAPON>", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason")));
                	break;
            	case "kick":
                	$players[$killer_guid]->kick(str_replace("<WEAPON>", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason")));
                	break;
            	case "ban":
                	$players[$killer_guid]->ban(str_replace("<WEAPON>", $weaponlong, $mod->getCV("weaponrestrictions", "kickreason")));
                	break;
        	}
    	}
    	else {
    		$players[$killer_guid]->say($mod->getLngString("usedRestrictedWeapon", array("<WEAPON>", "<WARNS>", "<MAXWARNS>"), 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);
    	}
    }
    
    
    
    
    function weaponrestrictions_playerInit($guid) {
    	$GLOBALS['players'][$guid]->weaponrestrictions_warns = 0;
    }
    
    
    
    
    ?>
    Alles anzeigen


    kurz und knapp: Eigentlich läuft nur der Server ohne Plugins-.-

    LG In0cenT

  • Liner
    Fortgeschrittener
    Punkte
    1.465
    Trophäen
    1
    Beiträge
    271
    • 13. Juni 2011 um 15:02
    • #2

    Kurz drüber geguckt...

    1. Falscher GUID da muss die lange Version rein
    2. Falscher Logdateipfad was auch erklärt warum er nicht läuft (der MAM).

    Add mich mal in ICQ oder vorzugsweise Xfire.

    ICQ: 439-573-697
    Xfire: theliner

    lg Dominik

  • In0cenT
    Anfänger
    Punkte
    320
    Beiträge
    53
    • 13. Juni 2011 um 15:23
    • #3

    Aber auch mit dem langen GUID geht es nicht...-.- (habe den noch aufgeschrieben)

    Alle Plugins gehen nicht, muss ichd a was aktivieren?

    Die Log Datei sollte eig stimmen, da der Server per FTp ist...

    LG

  • Dieses Thema enthält 4 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.
  1. Mitarbeiter
  2. Datenschutzerklärung
  3. Nutzungsbedingungen
  4. Impressum
  5. Kontakt
Community-Software: WoltLab Suite™