Config

Материал из COD4GAMEPORTAL
Перейти к: навигация, поиск

Конфигурация

Основной конфиг ManuAdminMod выглядит следующим обзором

[main]
ip = "ИП сервера"
port = Пор сервера
logfile = "Прямая ссылка на лог файл игры - games_mp.log"
rconpassword = "Пароль от сервера"
timezone = "Europe/Moscow"
prefix = "!"
language = "en"
antispam = 2
logrcon = 0
antistartupbug = "restart"
fixguidrelax = 1
pmprefix = "^1PM: ^2"
responsefailcmds = 1
fastrcon = 0
joinlog = "'<NAME>' joined, PID: <PID>, GUID: <GUID>"


[kickban]
defaultkickreason = "Kicked by Admin"
defaultbanreason = "Banned by Admin"
modpower = 100
forcereason = 0
usepb = 0
pbtempbanduration = 5
announce = 1
maxtempbantime  = 1445
announcemessages = 5

[welcomemessages]
enabled = 0
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>"
whisper = 0

[banner]
enabled = 1
time = 220
logging = 1

[randommapcycle]
enabled = 0
maps = "mp_backlot,mp_backlot_snow,mp_bog,mp_citystreets,mp_bloc,mp_crash,mp_showdown,mp_crossfire,mp_pipeline,mp_strike,mp_farm,mp_vacant,mp_overgrown,mp_convoy,"
gametypes = "sd"
notlastmaps = 3
notlastgt = 1

[badwords]
enabled = 0
warnstokick = 3
mode = "kick"
kickreason = "Use of bad words (оскорбления запрещены)"

[warns]
enabled = 0
warnstokick = 3
mode = "kick"
kickreason = "Too many warns by admin"

[pingkicker]
enabled = 0
maxping = 250
checkinterval = 30
warnstokick = 3
mode = "kick"
kickreason = "Your ping is too high"

[nameprotection]
enabled = 0
badnamekick = 0
badnamekickmode = "kick"
badnamekickreason = "Your name contains an illegal part: <PART>"
adminnamekick = 1
adminnamekickmode = "kick"
adminnamekickreason = "Your name is an admins name"
maxnamechanges = 5
maxnamechangeskickmode = "tempban"
maxnamechangeskickreason = "Max. namechanges reached"
uppercasedisallow = 
uppercasekickreason = "Please do not use only upper case letters in your nickname"
uppercasekickmode = "kick"

[modstuff]
checkforupdates = 0
checkinterval = 0
announceinterval = 0
serverlist = 0
serverlistip = ""

[customcommands]
logcommands = 0
pbsay = "pb_sv_say -1 <ARG>"
kickme = "pb_sv_kick <PLAYER:PBID> 0 <ARG:OPT:You kicked yourself>"
payback = "pb_sv_kick <LAST_KILLER:PBID> 0 ^1NEVER KILL AN ADMIN!"

[spreemessages_config]
enabled = 0
firstblood = 0
killsprees = 0
deathsprees = 0
spreeendsfrom = 10
multikills = 0
spreeends = 0

[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)"

[mapvote]
enabled = 0
type = 0
mapcount = 0
duration = 620
announce = 90
maps = "<maps.cfg>"
gametypes = "war,dm,sab,koth,sd,dom"
notlastmaps = 0
notlastgt = 0
votestoskip = "50%"

[weaponrestrictions]
enabled = 0
weapons = "gl,frag_grenade_short,saw,rpd,m60e4,rpg,skorpion,p90"
warnstokick = 1
mode = "kick"
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

[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]
w         = "warn"
nm         = "nextmap"
k          = "kick"
b          = "ban"
tb          = "tempban"
qmod         = "quitmod"
mr         = "maprotate"
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"
ja         = "yes"
nein       = "no"
votekick   = "vote kick"
votemap    = "vote map"
votenextmap    = "vote nextmap"
voteban    = "vote ban"
banlist    = "pbbanlist"
unban      = "pbunban"
godmode    = "fun godmode"
aimbot     = "fun aimbot"
sex        = "fun sex"
kamikaze   = "fun kamikaze"
death      = "fun death"
bigadmin   = "fun bigadmin"
off        = "readconfig off"
on         = "readconfig"
o          = "online"
a          = "aliases"

 
[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"
godmode = "^1GODMODE^2 is now enabled for player ^7<PLAYER_NAME>"
aimbot = "^3<PLAYER_NAME> ^2turned on his ^1AIM-BOT!"
sex = "^2SEX is not the answer. SEX is the question and ^7<PLAYER_NAME> ^2is the answer!!"
kamikaze = "^7<PLAYER_NAME> ^2is desperately trying to figure out why kamikaze pilots wore helmets."
death = "^2Hello ^7<PLAYER_NAME>^2, this is ^7Death. ^2Please answer when you're ready."
bigadmin = "^1Ooooooh, ^3Big Admin is watching ^1YOU!"

[voting]
enabled = 0
duration = 45
interval = 120
annouce = 15
minplayers = 3
maxvotesperplayer = 6 
timelimit = 0
ignoremapchange = 0
allowkick = 1
allowban = 0
allowmap = 1
allownextmap = 1
allowsetnextmap = 0
allowgametype = 0
allowhardcore = 0
allowrestart = 0
allowedmaps = "<maps.cfg>"
allowedgametypes = "war,dom,koth,dm,sab,sd"
banduration = 20
disableifadminon = 0

[guidchecks]
enabled = 0
kickpidchange = 1
checkvalid = 1

[ftp]
enabled = 0
host = ""
port = 21
user = ""
password = ""
passive = 1

[tcp_query]
enabled = 0
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

[statistics_mysql]
host = "localhost"
user = "anonymous"
password = ""
database = "mamstats"
prefix = "mam01_"



Ниже мы детально опишем функции конфига.

Main

[main]
ip = "ИП сервера"
port = Пор сервера
logfile = "Прямая ссылка на лог файл игры - games_mp.log"
rconpassword = "Пароль от сервера"
timezone = "Europe/Moscow"
prefix = "!"
language = "en"
antispam = 2
logrcon = 0
antistartupbug = "restart"
fixguidrelax = 1
pmprefix = "^1PM: ^2"
responsefailcmds = 1
fastrcon = 0
joinlog = "'<NAME>' joined, PID: <PID>, GUID: <GUID>"

Kick Ban

[kickban]
defaultkickreason = "Kicked by Admin"
defaultbanreason = "Banned by Admin"
modpower = 100
forcereason = 0
usepb = 0
pbtempbanduration = 5
announce = 1
maxtempbantime  = 1445
announcemessages = 5

Welcome Messages

[welcomemessages]
enabled = 0
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>"
whisper = 0

[banner]
enabled = 1
time = 220
logging = 1

Random map cycle

[randommapcycle]
enabled = 0
maps = "mp_backlot,mp_backlot_snow,mp_bog,mp_citystreets,mp_bloc,mp_crash,mp_showdown,mp_crossfire,mp_pipeline,mp_strike,mp_farm,mp_vacant,mp_overgrown,mp_convoy,"
gametypes = "sd"
notlastmaps = 3
notlastgt = 1

Bab world

[badwords]
enabled = 0
warnstokick = 3
mode = "kick"
kickreason = "Use of bad words (оскорбления запрещены)"

Warns

[warns]
enabled = 0
warnstokick = 3
mode = "kick"
kickreason = "Too many warns by admin"

Ping Kicker

[pingkicker]
enabled = 0
maxping = 250
checkinterval = 30
warnstokick = 3
mode = "kick"
kickreason = "Your ping is too high"

Name Protection

[nameprotection]
enabled = 0
badnamekick = 0
badnamekickmode = "kick"
badnamekickreason = "Your name contains an illegal part: <PART>"
adminnamekick = 1
adminnamekickmode = "kick"
adminnamekickreason = "Your name is an admins name"
maxnamechanges = 5
maxnamechangeskickmode = "tempban"
maxnamechangeskickreason = "Max. namechanges reached"
uppercasedisallow = 
uppercasekickreason = "Please do not use only upper case letters in your nickname"
uppercasekickmode = "kick"

Mod Stuff

[modstuff]
checkforupdates = 0
checkinterval = 0
announceinterval = 0
serverlist = 0
serverlistip = ""

Custom Commands

[customcommands]
logcommands = 0
pbsay = "pb_sv_say -1 <ARG>"
kickme = "pb_sv_kick <PLAYER:PBID> 0 <ARG:OPT:You kicked yourself>"
payback = "pb_sv_kick <LAST_KILLER:PBID> 0 ^1NEVER KILL AN ADMIN!"

Speed Messages Config

[spreemessages_config]
enabled = 0
firstblood = 0
killsprees = 0
deathsprees = 0
spreeendsfrom = 10
multikills = 0
spreeends = 0


[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)"


Map Voting

[mapvote]
enabled = 0
type = 0
mapcount = 0
duration = 620
announce = 90
maps = "<maps.cfg>"
gametypes = "war,dm,sab,koth,sd,dom"
notlastmaps = 0
notlastgt = 0
votestoskip = "50%"

Weapon Restrictions

[weaponrestrictions]
enabled = 0
weapons = "gl,frag_grenade_short,saw,rpd,m60e4,rpg,skorpion,p90"
warnstokick = 1
mode = "kick"
kickreason = "Used a restricted weapon: <WEAPON>"

Statistics

[statistics]
statsstring = "^2Kills: <KILLS> ^1Deaths: <DEATHS> ^3K/D: <KPD> ^2time: <ONLINETIME> min ^3K/M: <KPM> ^2HS: <HEADSHOTS> ^7TKs: <TEAMKILLS>"
whisperstats = 0
savestats = 0

Anti Team Killer

[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

Aliasses

[aliases]
w         = "warn"
nm         = "nextmap"
k          = "kick"
b          = "ban"
tb          = "tempban"
qmod         = "quitmod"
mr         = "maprotate"
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"
ja         = "yes"
nein       = "no"
votekick   = "vote kick"
votemap    = "vote map"
votenextmap    = "vote nextmap"
voteban    = "vote ban"
banlist    = "pbbanlist"
unban      = "pbunban"
godmode    = "fun godmode"
aimbot     = "fun aimbot"
sex        = "fun sex"
kamikaze   = "fun kamikaze"
death      = "fun death"
bigadmin   = "fun bigadmin"
off        = "readconfig off"
on         = "readconfig"
o          = "online"
a          = "aliases"

Fun Messages

[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"
godmode = "^1GODMODE^2 is now enabled for player ^7<PLAYER_NAME>"
aimbot = "^3<PLAYER_NAME> ^2turned on his ^1AIM-BOT!"
sex = "^2SEX is not the answer. SEX is the question and ^7<PLAYER_NAME> ^2is the answer!!"
kamikaze = "^7<PLAYER_NAME> ^2is desperately trying to figure out why kamikaze pilots wore helmets."
death = "^2Hello ^7<PLAYER_NAME>^2, this is ^7Death. ^2Please answer when you're ready."
bigadmin = "^1Ooooooh, ^3Big Admin is watching ^1YOU!"

Voting

[voting]
enabled = 0
duration = 45
interval = 120
annouce = 15
minplayers = 3
maxvotesperplayer = 6 
timelimit = 0
ignoremapchange = 0
allowkick = 1
allowban = 0
allowmap = 1
allownextmap = 1
allowsetnextmap = 0
allowgametype = 0
allowhardcore = 0
allowrestart = 0
allowedmaps = "<maps.cfg>"
allowedgametypes = "war,dom,koth,dm,sab,sd"
banduration = 20
disableifadminon = 0

GuID Checks

[guidchecks]
enabled = 0
kickpidchange = 1
checkvalid = 1

FTP

[ftp]
enabled = 0
host = ""
port = 21
user = ""
password = ""
passive = 1

TCP Query

[tcp_query]
enabled = 0
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

Stats MySql

[statistics_mysql]
host = "localhost"
user = "anonymous"
password = ""
database = "mamstats"
prefix = "mam01_"