Robi SS ale nie banuje - Problem
KarolekPL
16.03.2013
Witam , mam problem z GmAMXBans 1.5.1 , a dokładnie robi SS'y , ale nie banuje i gracz jeśli chcę go zbanować świeci się na szaro . Czytałem wiele tematów odnośnie tego problemu ale nic nie pomogło
A tutaj wszystko co potrzebne :
AMX 1.8.2
serwer dproto (Steam+NonSteam)
amxbans.cfg:
modules.ini:
plugins.ini
A tutaj wszystko co potrzebne :
AMX 1.8.2
serwer dproto (Steam+NonSteam)
amxbans.cfg:
// Plik Konfiguracyjny AMXBans echo [AMXBans] laduje plik amxbans.cfg // Prefix bazy // Nota: Prefiks wpisany w sql.cfg nie jest juz uzywany przez AMXBans amx_sql_prefix "amx" //Uzywanie oznaczen gracza na tym serwerze czy na wszystkich? amxbans_flagged_all_server 1 // Wczytywanie adminów // 0 z bazy SQL, 1 = z pliku users.ini, 2 = nie laduje adminów amxbans_use_admins_file 0 // AMXBans próbuje pobierac Ip automatycznie (Tak, widac ;/) // Mozesz ustawic inne iP -np. "<ip>:<port>" amxbans_server_address "" // Wybierz styl banowanie // 1 (nowy): amx_ban <SteamID lub nick lub #authid lub IP> <Czas w minutach> <Powód> // 0 (stary): amx_ban <czas w minutach> <SteamID albo Nick albo #authid albo IP> <Powód> amxbans_use_newbancmd 0 // Maksymalna liczba graczy w Menu Rozlaczen amxbans_discon_players_saved 10 // Tak naprawdę ten cvar jest niezle pomylony niby chodzi o czas a ustawia wlasny powód bana // -1 aby wylaczyc, 0 aby wlaczyc wlasny powód bana amxbans_custom_statictime 0 // Wpisz jaka ma byc wyswietlana nazwa serwera na stronie gdy gracz dostanie bana . // np. amxbans_servernick "Mój za***isty serwer" // Pozostaw puste aby czytalo domyslna nazwe hosta z server.cfg amxbans_servernick "" // Ustaw 1 / 2 / 3 aby wlaczyc powiadomienia o debugach w logach. // nie ustawiaj na 3 bo Ci konsole zaspamuje, ustaw 2 bedzie normal amxbans_debug 0 // Nie wpisuj "http://". Plugin sam sobie to wpisze amxbans_complain_url "www.One-Shot.xaa.pl" // Ustaw na 1 aby mapa byla pokazywana w nazwie serwera amxbans_add_mapname_in_servername 1 // Ustaw na 1 aby w czacie HLSW byl pokazywany komunikat o banie amxbans_show_in_hlsw 1 // Pokazuje zielony napis w hud, w lewym górnym rogu, w przypadku bana amxbans_show_hud_messages 1 // Ustawia jaka flaga odpowiada za najwyzszy czas bana jaki moze ustawic admina. amxbans_higher_ban_time_admin "n" // Ustawia jaka flaga odpowiada za to aby nie byl pokazywany nick admina który zbanowal gracza amxbans_admin_mole_access "r" // Jesli admin ma ustawiony admin_mole_access, ma pokazywac jego nick przy zbanowanym graczu? amxbans_show_name_evenif_mole 1 // Pokazuje adminowi w chacie czy gracz byl wczesniej zbanowany, 0 aby wylaczyc amxbans_show_prebanned 1 // Ile razy powiadamia admina o wczesniejszym banie gracza amxbans_show_prebanned_num 2 // Obecnie nie wiadomo // Tak napisali w oryginale <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.png' class='bbc_emoticon' alt=':D' /> amxbans_default_ban_reason unknown // Czy mozna banowac w przypadku gdy gracz sie rozlaczy . 1 aby wlaczyc 0 aby wylaczyc // Jest to na koncu menu admina, Menu Rozlaczen amxbans_ban_evenif_disconnected 1 // Czasy oznakowan w menu amx_setflagtimes "1 h" "4 h" "10 h" "1 d" "1 w" "4 w" "12 w" "0" // Dlugosci banów dla adminów z flaga -d, ustaw najwieksze jakie maja byc przy komendzie "amxbans_consolebanmax" // UWAGA: ustawiaj wartosci od NAJMNIEJSZEJ do NAJWIEKSZEJ . Mozesz wybrac 14 wartosci // "0 m" = PERM // Wartosci jakich mozesz uzyc : // 1 - 59 dla flagi m to minuty // 1 - 23 dla flagi h to godziny // 1 - 6 dla flagi d to dni // dla flagi w sa tygodnie // Przyklady: // "5 m" to 5 minut // "1 h" to 1 godzina // "1 d" to 1 dzien // "1 w" to 1 tydzien amx_setlowbantimes "5 m" "30 m" "1 h" "3 h" "10 h" "1 d" // Dlugosci banów dla adminów z flaga -n i -d // UWAGA:ustawiaj wartosci od NAJMNIEJSZEJ do NAJWIEKSZEJ . Mozesz wybrac 14 wartosci // "0 m" = PERM // Wartosci jakich mozesz uzyc : // 1 - 59 dla flagi m to minuty // 1 - 23 dla flagi h to godziny // 1 - 6 dla flagi d to dni // dla flagi w sa tygodnie // Przyklady: // "5 m" to 5 minut // "1 h" to 1 godzina // "1 d" to 1 dzien // "1 w" to 1 tydzien amx_sethighbantimes "5 m" "30 m" "1 h" "3 h" "1 d" "1 w" "0 m" /************* Opcjonalne pluginy AMXBans Start Configu ******************************/ // Opcjonalne pluginy AMXBans // Wymagany plugin amxbans_freeze // // "a" = zamrozenie // "b" = wyrzucenie broni // "c" = blokowanie rozmow // "d" = gracz swieci na czerwono amxbans_freeze_mode "abcd" /************* Opcjonalne pluginy AMXBans: Koniec Configu ******************************/ // Plik konfiguracyjny - ECHO echo [AMXBans] amxbans.cfg zostal zaladowany | VOLTA-SQ.PL
modules.ini:
;;; ; To enable a module, remove the semi-colon (<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/wink.png' class='bbc_emoticon' alt=';)' /> in front of its name. ; If it's not here, simply add it its name, one per line. ; You don't need to write the _amxx part or the file extension. ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; SQL Modules usually need to be enabled manually ;; ;; You can have any number on at a time. Use ;; ;; amx_sql_type in sql.cfg to specify the default ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; mysql sqlite ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Put third party modules below here. ;; ;; You can just list their names, without the _amxx ;; ;; or file extension. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; These modules will be auto-detected and loaded ;; ;; as needed. You do not need to enable them here ;; ;; unless you have problems. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; fun engine fakemeta geoip sockets regex nvault cstrike csx hamsandwich cs_player_models_api
plugins.ini
; AMX Mod X plugins amxbans_core.amxx amxbans_main.amxx debug ; Admin Base - Always one has to be activated ;admin.amxx ; admin base (required for any admin-related) ;mini_bans.amxx ;admin_sql.amxx ; admin base - SQL version (comment admin.amxx) ; Basic admincmd.amxx ; basic admin console commands adminhelp.amxx ; help command for admin console commands adminslots.amxx ; slot reservation multilingual.amxx ; Multi-Lingual management ; Menus menufront.amxx ; front-end for admin menus cmdmenu.amxx ; command menu (speech, settings) reasonkicker.amxx ; player menu (kick) plmenu.amxx ; players menu (kick, ban, client cmds.) telemenu.amxx ; teleport menu (Fun Module required!) mapsmenu.amxx ; maps menu (vote, changelevel) pluginmenu.amxx ; Menus for commands/cvars organized by plugin ; Chat / Messages adminchat.amxx ; console chat commands antiflood.amxx ; prevent clients from chat-flooding the server scrollmsg.amxx ; displays a scrolling message imessage.amxx ; displays information messages adminvote.amxx ; vote commands ; Map related ;nextmap.amxx ; displays next map in mapcycle ;mapchooser.amxx ; allows to vote for next map timeleft.amxx ; displays time left on map ; Configuration pausecfg.amxx ; allows to pause and unpause some plugins statscfg.amxx ; allows to manage stats plugins via menu and commands ; Counter-Strike ;restmenu.amxx ; restrict weapons menu statsx.amxx ; stats on death or round end (CSX Module required!) ;miscstats.amxx ; bunch of events announcement for Counter-Strike ;stats_logging.amxx ; weapons stats logging (CSX Module required!) ; Enable to use AMX Mod plugins ;amxmod_compat.amxx ; AMX Mod backwards compatibility layer ; Custom - Add 3rd party plugins here knife_mod.amxx admin_chat_colors.amxx parachute.amxx bullet_damage.amxx raty.amxx admin_check.amxx afkkicker.amxx connect.amxx bcd_hudtimer.amxx sillyc4.amxx runplanting.amxx abd.amxx debug grenade_trail.amxx Automaticknifeduel.amxx ptb.amxx deagsmapmanager.amxx alt_end_round_sounds.amxx admin_freelook.amxx admin_spec_esp.amxx godzina.amxx eim.amxx colored_flashbangs.amxx amx_adminmodel.amxx autoreload_on_newround.amxx reloadbar.amxx cs_player_models_api.amxx backweapons.amxx vip_beta.amxx debug show_ip.amxx ruletka.amxx realnadedrops.amxx flash.amxx ColoredSmoke.amxx niesmiertelne_hostage.amxx advanced_slowmo.amxx grenade_sack-0.4.1.amxx Ultimate_sounds_female.amxx ad_manager_array.amxx bge.amxx menu.amxx amx_malamapa_v12.amxx CustomFlashLight.amxx nervous_hostages.amxx no_team_flash.amxx hshp.amxx wybor_interpu.amxx debug ;interp.amxx ;hpk.amxx ;GHW_Weapon_Replacement.amxx xredirect.amxx rangi.amxx noshield.amxx pokazuj.amxx ;Admin_Screen3v15.amxx ; Swiatecznie ;Change_hostage_mdl.amxx ;snieg.amxx ;snow.amxx ;Christmas_C4.amxx
DriveR.`
16.03.2013
Łap te sma
Jeśli nie będzie działać, napisz na PW dam ci cały plugin którego używam i robi dobrze ss
#include < amxmodx >
#include < amxmisc >
#include < fakemeta >
#include < colorchat >
#define PLUGIN "AMXBans: Screens"
#define VERSION "0.4"
#define AUTHOR "GmStaff"
new victim
new CvarMaxss, CvarInterval, CvarTimestamptype, CvarHUDText;
new CvarBanTime, CvarBanReason;
new CountMenu
new CvarCountScreens
new g_max_players
new g_user_ids[33]
new g_player[33]
public plugin_init ( ) {
register_plugin ( PLUGIN, VERSION, AUTHOR );
register_clcmd ( "amx_ssban", "cmdScreen", ADMIN_BAN, "<authid, nick or #userid> <count of screens>" );
register_clcmd ( "amx_ssbanmenu", "cmdScreenMenu", ADMIN_BAN, " - display screens menu" );
CvarMaxss = register_cvar ( "amx_maxscreens", "10" );
CvarInterval = register_cvar ( "amx_interval", "1.0" );
CvarTimestamptype = register_cvar ( "amx_stamptype", "3" );
CvarHUDText = register_cvar ( "amx_hudtext", "Cheese! " );
CvarCountScreens = register_cvar ( "amx_screenscount", "1 2 3 4 5 6 7 8 9");
CvarBanTime = register_cvar ( "amx_ssbantime", "0" );
CvarBanReason = register_cvar ( "amx_ssbanreason", "Screens, go gm-community.net" );
register_cvar ( "amxbans_ssversion", VERSION, FCVAR_SERVER | FCVAR_SPONLY );
g_max_players = get_maxplayers();
new configsDir [ 64 ];
get_configsdir ( configsDir, 63 );
server_cmd ( "exec %s/amxbans-ssban.cfg", configsDir );
}
public plugin_cfg ( ) {
new line[ 128 ], token[ 10 ], szKey[ 16 ];
get_pcvar_string ( CvarCountScreens, line, 127 );
CountMenu = menu_create ( "\rCount of screens\w", "CountScreensMenu" );
while ( contain ( line, " " ) != -1 ) {
strbreak ( line, token, 9, line, 127 );
format( szKey, charsmax ( szKey ), "Make %s screen(s)", token )
menu_additem ( CountMenu, szKey, token );
}
}
public cmdScreenMenu ( id, level, cid ) {
if ( !cmd_access ( id, level, cid, 1 ) )
return PLUGIN_HANDLED;
new menu = menu_create ( "\rChoose player", "PlayersMenu" );
new i, name[ 32 ], tempid[ 10 ];
for ( i = 1; i <= g_max_players; i++ ) {
if ( is_user_connected ( i ) ) {
get_user_name ( i, name, 31 );
num_to_str ( i, tempid, 9 );
g_user_ids[ i ] = get_user_userid ( i );
menu_additem ( menu, name, tempid, 0 );
}
}
menu_display ( id, menu, 0 );
return PLUGIN_HANDLED;
}
public PlayersMenu ( id, menu, item ) {
if ( item == MENU_EXIT ) {
return PLUGIN_HANDLED;
}
new data[ 6 ], iName[ 64 ];
new access, callback;
menu_item_getinfo ( menu, item, access, data, 5, iName, 63, callback );
g_player[ id ] = str_to_num ( data );
menu_display ( id, CountMenu, 0 );
return PLUGIN_HANDLED;
}
public CountScreensMenu ( id, menu, item ) {
if ( item == MENU_EXIT ) {
return PLUGIN_HANDLED;
}
new data[ 6 ], iName[ 64 ];
new access, callback;
new player = g_player[id];
menu_item_getinfo ( menu, item, access, data,5, iName, 63, callback );
if ( g_user_ids[ player ] == get_user_userid ( player ) ) {
client_cmd ( id, "amx_ssban #%d %s", g_user_ids[ player ], data );
}
return PLUGIN_HANDLED;
}
public cmdScreen ( id, level, cid ) {
if ( !cmd_access ( id, level, cid, 3 ) ) {
return PLUGIN_HANDLED;
}
new arg1[ 24 ], arg2[ 4 ];
read_argv ( 1, arg1, 23 );
read_argv ( 2, arg2, 3 );
new screens = str_to_num ( arg2 );
victim = cmd_target ( id, arg1, 1 );
if ( screens > get_pcvar_num ( CvarMaxss ) ) {
console_print ( id, "Gm# You cannot take that many screenshots!" );
return PLUGIN_HANDLED;
}
if ( !victim ) {
return PLUGIN_HANDLED;
}
new Float: interval = get_pcvar_float ( CvarInterval );
new array[ 2 ];
array[ 0 ] = id;
array[ 1 ] = victim;
set_task ( interval, "takeScreen", 0, array, 2, "a", screens );
set_task ( interval * screens + 1.0, "victimBan", 0, array, 2 );
return PLUGIN_HANDLED;
}
public takeScreen ( array[ 2 ] ) {
new victim = array[ 1 ];
new id = array[ 0 ];
new timestamp[ 32 ], HUDText[ 32 ], name[ 32 ], adminname[ 32 ];
get_time ( "%m/%d/%Y - %H:%M:%S", timestamp, 31 );
get_user_name ( victim, name, 31 );
get_user_name ( id, adminname, 31 );
get_pcvar_string ( CvarHUDText, HUDText, 31 );
switch( get_pcvar_num ( CvarTimestamptype ) ) {
case 0: {
ColorChat( id, RED, "Gm#^x01 Screenshot taken on player ^x03%s^x01 by admin ^x04%s^x01", name, adminname );
client_cmd ( victim, "snapshot" );
}
case 1: {
ColorChat( id, RED, "Gm#^x01 Screenshot taken on player ^x03%s^x01 by admin ^x04%s^x01 (Date: %s)", name, adminname, timestamp );
client_cmd(victim, "snapshot");
}
case 2: {
set_hudmessage( 225, 225, 225, 0.02, 0.90, 0, 1.0, 2.0 );
show_hudmessage ( victim, "%s", HUDText );
client_cmd ( victim, "snapshot" );
}
case 3: {
set_hudmessage( 225, 225, 225, 0.02, 0.90, 0, 1.0, 2.0 );
show_hudmessage ( victim, "%s", HUDText );
ColorChat ( id, RED, "Gm#^x01 Screenshot taken on player ^x03%s^x01 by admin ^x04%s^x01 (Date: %s)", name, adminname, timestamp );
client_cmd ( victim, "snapshot" );
}
}
return PLUGIN_CONTINUE;
}
public victimBan ( array[ 2 ] ) {
new Reason[ 50 ];
new victimId = get_user_userid ( array[ 1 ] );
get_pcvar_string ( CvarBanReason, Reason, 31 );
client_cmd ( array[ 0 ], "amx_ban %i #%i ^"%s^"", get_pcvar_num ( CvarBanTime ), victimId, Reason);
}
Jeśli nie będzie działać, napisz na PW dam ci cały plugin którego używam i robi dobrze ss
KarolekPL
23.03.2013
Niby działa , ale jest to samo co wcześniej nie banuje , ale nie wiem o co chodzi bo w poprzednim pluginie i w tym co mi dałeś sma moji admini robią SS i banuje automatycznie , ale jak ja zrobie SS to zrobi ale nie banuje , a jak chce zbanowac to widac go na szaro ;/
DriveR.`
23.03.2013
To może być też od głównego pluginu amxbansa np. core czy main.
Ściągnij sobie inną paczkę z plikami amxbansa i powinno działać
Ściągnij sobie inną paczkę z plikami amxbansa i powinno działać