服务器也是别人帮我做的,是挺早的事了,我自己想加声音。
一下使cfg内容,也是别人帮我能的,你看看吧。别晕倒:)
// StatsMe 2.7.1 Counter-Strike - Configuration File
// http://www.unitedadmins.com
// http://statsme.sourceforge.net
// Display the StatsMe MOTD. make your custom MOTD changes in that file.
// If you don't want an MOTD, comment this out
exec addons/statsme/motd.cfg
// Define Addon Standards Log Format (for compatibility with PsychoStats etc.)
// 1 - old method (without [STATSME] tag)
// 2 - new Method (with [STATSME] tag)
// 3 - both methods (two lines, one with, one without tag)
sm_addonlogformat 2
//////////////////////////////////////////////////////////////////////////////////
// //
// CHANGE THIS PART!! VERY IMPORTANT!!! //
// //
//////////////////////////////////////////////////////////////////////////////////
// Set password for StatsMe Menu (no password disables menu)
sm_menupassword "root" // To display public menu type as player in the console: statsme_menu root
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Rank by AUTHID
// If you play with bots, or on a LAN Server you should *not* enabled Rank by AUTHID
sm_storebyauth 0
// Time when the Ranking will be updated
// 2 - On every new round
// 1 - On Player disconnect
// 0 - On Server shutdown
sm_rankupdate 2
// Set time in hours after which top15 will be reset
sm_resetrank 144
// Allow for logging bots to top15
sm_rankbots 1
// Log format for end map weapon stats (make sure you have "log on" in your server.cfg)
// To disable this logging set sm_logformat to ""
sm_logformat "(weapon \'{p.a.name}\') (shots \'{p.a.shots}\') (hits \'{p.a.hits}\') (kills \'{p.a.kills}\') (headshots \'{p.a.hs}\') (tks \'{p.a.tks}\') (damage \'{p.a.damage}\') (deaths \'{p.a.deaths}\')"
//sm_logformat ""
// Detailed log format for weapon stats
// To disable this logging set sm_logformat2 to ""
sm_logformat2 "(weapon \'{p.a.name}\') (head \'{p.a.head}\') (chest \'{p.a.chest}\') (stomach \'{p.a.stomach}\') (leftarm \'{p.a.leftarm}\') (rightarm \'{p.a.rightarm}\') (leftleg \'{p.a.leftleg}\') (rightleg \'{p.a.rightleg}\')"
//sm_logformat2 ""
// Latency log
// To disable this logging set sm_latlogformat to ""
sm_latlogformat "(ping \'{p.ping}\')"
//sm_latlogformat ""
sm_latlogfreq 20 // sec.
// Playing time
// To disable this logging set sm_timelogformat to ""
sm_timelogformat "(time \'{p.time}\')"
//sm_timelogformat ""
// Player stats format (when called by /statsme)
sm_playerstats "Killed enemies: {p.gm.kills}\nDeaths: {p.gm.deaths}\nEfficiency: {p.gm.eff}%%\nAccuracy: {p.gm.acc}%%\n"
// Weapon stats format (when called by /statsme)
sm_weaponstats "{p.a.name} shots: {p.a.shots} hits: {p.a.hits} kills: {p.a.kills} hs: {p.a.hs} damage: {p.a.damage} eff.: {p.a.eff}%% acc.: {p.a.acc}%%"
// Format of top15
sm_ranktitle "Top 15"
sm_rankhead "# nick kills/deaths hits/shots/hs. eff.%% acc.%%"
sm_rankbody "{rk.id}. {rk.name}{rk.txt} {rk.kills}/{rk.deaths} {rk.hits}/{rk.shots}/{rk.hs} {rk.eff} {rk.acc}"
sm_rankscore "{{rk.kills}-{rk.deaths}}" // by diff. between kills and deaths
//sm_rankscore "{rk.kills}" // by kills
//sm_rankscore "" // for default formula
// Set teams which score should be available
sm_score "TERRORIST" "CT"
// Usage: sm_mode[ mod id ] < set | remove > < bits > [ * | #uid | team ]
sm_mode set abc // enable itermission stats, statsme, stats and top15
// check if we have to remove statsme, stats and top15 commands
sm_do "sm_rankcmd {sm_mode&c?top15:\'\'};sm_statsmecmd {sm_mode&b?statsme:\'\'};sm_statscmd {sm_mode&b?stats:\'\'}"
// Positions for StatsMe Menu (most of them are in scriptfiles)
// Usage: sm_menu < description > < server command >
sm_menu "Intermission stats\y\R{sm_mode&a?ON:OFF}" "sm_mode {sm_mode&a?remove:set} a"
sm_menu "/statsme and /stats\y\R{sm_mode&b?ON:OFF}" "sm_statsmecmd {sm_mode&b?\'\':statsme};sm_statscmd {sm_mode&b?\'\':stats};sm_mode {sm_mode&b?remove:set} b"
sm_menu "Top15 Rank\y\R{sm_mode&c?ON:OFF}" "sm_rankcmd {sm_mode&c?\'\':top15};sm_mode {sm_mode&c?remove:set} c"
//sm_menu "-----" " "
//sm_menu "mp_tkpunish\y\R{C.mp_tkpunish}" "mp_tkpunish {C.mp_tkpunish?0:1}"
//sm_menu "mp_friendlyfire\y\R{C.mp_friendlyfire}" "mp_friendlyfire {C.mp_friendlyfire?0:1}"
//sm_menu "mp_autoteambalance\y\R{C.mp_autoteambalance}" "mp_autoteambalance {C.mp_autoteambalance?0:1}"
// sm_alias < alias > < command > < flags >
// flags: a - console command, b - say command, c - don't show said alias
sm_alias "/score" "sm_tell2 #{p.uid} \'Game score: {t2gm.name} {t2gm.score} / {t2gm.eff} / {t2gm.acc} -- {t1gm.name} {t1gm.score} / {t1gm.eff} / {t1gm.acc}\' 3" "b"
sm_alias "/report" "sm_clexec2 #{p.uid} \'say_team weapon: {p.w.name?$:#} ammo: {p.w.clip}/{p.w.ammo} health: {p.health} armor: {p.armor} money: {p.money}\' 3" "bc"
sm_alias "/timeleft" "sm_tell2 * \'{timeleft?Time Remaining\: $:* No Time Limit *}\' 3" "b"
sm_alias "/currentmap" "sm_tell2 * \'Played map: {currentmap}\' 3" "b"
sm_alias "/me" "sm_tell2 #{p.uid} \'* Last result: {p.a.hits?$:#} hit(s) >>{p.a.head? head\: $}{p.a.chest? chest\: $}{p.a.stomach? stomach\: $}{p.a.leftleg? leftleg\: $}{p.a.rightleg? rightleg\: $}{p.a.leftarm? leftarm\: $}{p.a.rightarm? rightarm\: $}\' 3" "b"
sm_alias "/ff" "sm_tell2 * \'Firendly fire: {C.mp_friendlyfire?ON:OFF}\' 3" "b"
sm_alias "/switch" "sm_clexec2 #{p.uid} \'setinfo {C.sm_switchinfo} {p.I.{C.sm_switchinfo}?0:1}\';sm_tell2 #{p.uid} \'* You have {p.I.{C.sm_switchinfo}?disabled:enabled} statsme announcement\' 3" "b"
sm_alias "/top15" "{sm_mode&c?:#}sm_clexec2 #{p.uid} {C.sm_rankcmd}" "b"
sm_alias "/statsme" "{sm_mode&b?:#}sm_clexec2 #{p.uid} {C.sm_statsmecmd}" "b"
sm_alias "/stats" "{sm_mode&b?:#}sm_clexec2 #{p.uid} {C.sm_statscmd}" "b"
sm_alias "/rank" "sm_tell2 #{p.uid} \'* Your rank is {p.rk.id} of {ranknum} with {p.rk.kills} kills, {p.rk.hits} hits, {p.rk.acc} acc. and {p.rk.eff} eff.\' 3" "b"
// Load statsme scripts
// Don't comment these lines to disable scripts, use statsme_menu instead
exec addons/statsme/scripts/avlist.cfg
exec addons/statsme/scripts/bombc.cfg
exec addons/statsme/scripts/endround.cfg
exec addons/statsme/scripts/firstblood.cfg
exec addons/statsme/scripts/gresuc.cfg
exec addons/statsme/scripts/headshot.cfg
exec addons/statsme/scripts/kill.cfg
exec addons/statsme/scripts/knifekill.cfg
exec addons/statsme/scripts/lastman.cfg
exec addons/statsme/scripts/playername.cfg
exec addons/statsme/scripts/roundcount.cfg
exec addons/statsme/scripts/specinfo.cfg
// The Following line loads all scriptpacks, defined in scriptpacks.cfg
exec addons/statsme/scriptpacks.cfg
// ONLY add scriptpacks to this file. It makes life easier for the support team.
sm_log Configuration for StatsMe 2.7.1 loaded.
exec addons/statsme/scriptpacks.cfg |