Mam Problem z GmAmxBans z tego co czytałem to plugin ma problemy z czytaniem adminów z users.ini więc zrobiłem jak kazali i nadałem czytanie adminów z SQL.
Jednak nadal mam problemy ponieważ gdy chcę kogoś zbanować wyskakuję eror_log:
L 06/19/2010 - 23:50:26: [AMXX] Run time error 10 (plugin "amxbans_main.amxx") (native "SQL_ThreadQuery") - debug not enabled! L 06/19/2010 - 23:50:26: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 06/19/2010 - 23:55:43: Start of error session. L 06/19/2010 - 23:55:43: Info (map "bhop_yourown") (file "addons/amxmodx/logs/error_20100619.log") L 06/19/2010 - 23:55:43: [MySQL] Invalid info tuple handle: 0 L 06/19/2010 - 23:55:43: [AMXX] Displaying debug trace (plugin "amxbans_main.amxx") L 06/19/2010 - 23:55:43: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery") L 06/19/2010 - 23:55:43: [AMXX] [0] cmdBan.inl::cmdMenuBan (line 54) L 06/19/2010 - 23:55:43: [AMXX] [1] menu_stocks.inl::setCustomBanReason (line 256)Bez Debuga i Po Debugu
Admini Są Nadani na stronie www SS:
Mój amxbans.cfg
Spoiler
// AMXBans Configuration File // File location: $moddir/addons/amxmodx/configs/amxbans.cfg echo [AMXBans] is starting to execute amxbans.cfg // your sql database prefix // NOTE: The Prefix defined in your sql.cfg is NOT used for AMXBans anymore!!! amx_sql_prefix "amd_amx" // Use the flagging only for this Server, or for all servers? amxbans_flagged_all_server 1 // How AMXBans should handle the admins // 0=sql, 1=users.ini, 2=load no admins amxbans_use_admins_file 0 // AMXBans trys to get the address from the server automatically. // You can set a different one here - ex. "<ip>:<port>" amxbans_server_address "" // Set this cvar to your favourite ban cmd style // 1 (new): amx_ban <SteamID or Nickname or #authid or IP> <Time in Minutes> <Reason> // 0 (old): amx_ban <Time in Minutes> <SteamID or Nickname or #authid or IP> <Reason> amxbans_use_newbancmd 1 // Number of players in the Disconnected Menu amxbans_discon_players_saved 10 // Bantime to use for custom banreasons, if a user has static bantime <minutes> // -1 to disable custom reasons amxbans_custom_statictime 1440 // Set this cvar to what the adminname should be on the webpages, if the server make the ban. // Ie. amxbans_servernick "My Great server" // Leave emty if you want to use the default hostname from server.cfg amxbans_servernick "" // Set this to 1 / 2 / 3 to enable debug messages from amxbans to amxx logs. // with debug 3 you get the most output, but a bug can flood your logs. 2 should be ok normally amxbans_debug 0 // Don't use http:// in this cvar. The url will be shown to banned players in the console. amxbans_complain_url "http://Ukrylem_strone.pl" // Set this to 1 if you want the map name to show in the DB. amxbans_add_mapname_in_servername 1 // If you want to see ban announcments in the HLSW chat, set this to 1 amxbans_show_in_hlsw 1 // Print green hudmessages on the top left when banning amxbans_show_hud_messages 1 // What flag should admins have to get the high ban times. amxbans_higher_ban_time_admin "n" // What flag should admins have to NOT get their Nick printed when banning/Unbanning amxbans_admin_mole_access "r" // If an admin has the admin_mole_access, should his name be shown when he bans? amxbans_show_name_evenif_mole 1 // Show if a player has been banned before as amx_chat to admins. 0 to disable amxbans_show_prebanned 1 // How many previous offences does the player needs, to be notified in the amx_chat? amxbans_show_prebanned_num 2 // Currently not known amxbans_default_ban_reason unknown // To be able to ban players not in the server. 1 enabled and 0 disabled. amxbans_ban_evenif_disconnected 1 // Flagtimes, like the bantimes below amx_setflagtimes "1 h" "4 h" "10 h" "1 d" "1 w" "4 w" "12 w" "0" // Ban times for admins with d-flag, set the highest time in minutes they can ban with "amxbans_consolebanmax" // IMPORTANT: Put the lowest value first and the highest value last. You can have 1 to 12 values // "0 m" = permanent ban! // Values you can use: // 1 - 59 with the flag m is for minutes // 1 - 23 with the flag h is for hours // 1 - 6 with the flag d is for days // The w flag is for weeks // Example: // "5 m" is 5 minutes // "1 h" is 1 hour // "1 d" is 1 day // "1 w" is 1 week amx_setlowbantimes "5 m" "30 m" "1 h" "3 h" "10 h" "1 d" // Ban times for admin with n-flag and d-flag // IMPORTANT: Put the lowest value first and the highest value last. You can have 1 to 12 values // "0 m" = permanent ban! // Values you can use: // 1 - 59 with the flag m is for minutes // 1 - 23 with the flag h is for hours // 1 - 6 with the flag d is for days // The w flag is for weeks // // Example: // "5 m" is 5 minutes // "1 h" is 1 hour // "1 d" is 1 day // "1 w" is 1 week amx_sethighbantimes "5 m" "30 m" "1 h" "3 h" "1 d" "1 w" "0 m" /*********************************************************************************/ // 3rd party amxbans plugins // needs the amxbans_freeze plugin // // "a" = freeze // "b" = strip weapons // "c" = block chat // "d" = player glow red (not testet) amxbans_freeze_mode "abc" /*********************************************************************************/ // AMXBans configuration file echo echo [AMXBans] amxbans.cfg is fully executed
oraz dproto.cfg
Spoiler
# ======================================================== # DPROTO CONFIGURATION # ======================================================== #LoggingMode: # 1 = Console # 2 = Log Files # 3 = Both LoggingMode = 2 # ======================================================== # AUTHID MANAGEMENT # ======================================================== # ClientIDs (for cid_* options) # 1: Real (or generated by HW) steam (STEAM_xx:xx:xx) # 2: Real (or generated by HW) valve (VALVE_xx:xx:xx) # 3: STEAM_ by IP # 4: VALVE_ by IP # 5: Deprecated - client will be rejected # 6: reserved for future use # 7: HLTV # 8: STEAM_ID_LAN # 9: STEAM_ID_PENDING # 10: VALVE_ID_LAN # 11: VALVE_ID_PENDING # 12: STEAM_666:88:666 # Use this to set authid's for clients # for HLTV cid_HLTV = 7 # for clients that do not support unique id generation cid_NoSteam47 = 8 cid_NoSteam48 = 10 # For Legit Steam clients cid_Steam = 1 # Client recognized as pending when they sucessfully authorized, but did not get steam id # REMARK: Actually, it got steamid, but it is useless (STEAM_0:0:0 for example) cid_SteamPending = 9 # For players having revEmu ( >= 9.74) on client-side: cid_RevEmu = 1 # For players having old revEmu on client-side: cid_OldRevEmu = 1 # For players having hCupa's SteamEmu on client-side: cid_SteamEmu = 1 # For SETTI ServerScanner cid_Setti = 3 # SteamEmuCompatMode (0 / 1) # An analog for eSTEAMATiON's EnforceSteamEmuCompatIDMode option. # Affects only Old RevEmu and SteamEmu emulators. SteamEmuCompatMode = 1 # OldEstCompatMode (0 / 1) # Enables/Disables fix for steamids generated by eST in 0.3.1 version. # Set this to 1 if you want to make steamids generated by eST as in < 0.3.0 versions. OldEstCompatMode = 0 # IPGen_Prefix1 (int) # STEAM_a:b:c # ^ - this prefix for authids generated by IP IPGen_Prefix1 = 0 # IPGen_Prefix2 (int) # STEAM_a:b:c # ^ - this prefix for authids generated by IP IPGen_Prefix2 = 4 # Note that banid will use steamid WITHOUT any prefixes! # ======================================================== # OTHER STUFF # ======================================================== # DisableNativeAuth (0/1) # Disables valve/steam auth system. # For p.47 Based: Server will not connect to auth servers. # For All: Server will not call authorization functions. # This is a fix for startup freeze for old (p.47) servers. DisableNativeAuth = 0 # ServerInfoAnswerType (0/1) # Sets server answer type for query requests # 0 = New style (Source Engine) # 1 = Old Style (Fix favorites list for p.47 clients) # 2 = Hybrid mode - best solution for now, server is visible anywhere ServerInfoAnswerType = 0 # MasterClient (0/1) # Enables master-client emulation; it helps to register server on master list # if you having "You server is old" error. # USE THIS ONLY WITH -nomaster MODE! # you can use Master_GameVersion to set version of game MasterClient = 0 # Master_GameVersion (string) # Sets version of game that master-client will send on master-server Master_GameVersion = 1.1.2.6/Stdio # SubServer_Enable (0/1) # Enables secondary mini-server that redirects clients on main server. # Use the SubServer_AnswerType parameter to set answer type to info queries # Use the SubServer_Port parameter to set secondary server port # Use the SubServer_MasterClient parameter to enable master-client for secondary server. # This is useful feature if you want all clients to see you server. # Its possible if you set different answer types for main and secondary servers. # Clients which cant "see" main server will be able to see secondary SubServer_Enable = 0 SubServer_Port = 28015 SubServer_MasterClient = 0 SubServer_AnswerType = 0 SubServer_RedirectCommand = connect 169.254.141.3:27015 SubServer_IP = 0.0.0.0 # Game_Name (string) # Sets game name displayed for clients # If Game_Name is empty, native game name will be used Game_Name = # Enables fix for proper player id displaing on HLStats server monitoring # Enable this only if you have HLStats HLStatsPlayerIdFix = 0 # ExportVersion (0 / 1) # Enables/Disables exporting of dp_version cvar # 1 = dp_version cvar will be exported to server rules. It will be visible in server monitoring tools (like HLSW) # 0 = dp_version cvar will not be exported to server rules. ExportVersion = 1
Co Zrobiłem źle?
@Do Administracji: Jeśli Txt w Spoilerze jest za długie proszę o nie dawanie mi warna
Użytkownik AmD edytował ten post 19.06.2010 23:02