#include <amxmodx>
new HIGHPING_MAX = 100 // Maksymalny dopuszczalny ping u gracza.
new HIGHPING_TIME = 1 // Czas po którym osoba z wysokim pingiem jest wyrzucana.
new HIGHPING_TESTS = 1 // Ilosc sprawdzen zanim cos zrobi.
new HIGHPING_BANTIME = 1 // Czas Bana
new iNumTests[33]
public plugin_init() {
register_plugin("High Ping Baned PL","1.1","Mis")
if (HIGHPING_TIME < 2) HIGHPING_TIME = 1
if (HIGHPING_TESTS < 2) HIGHPING_TESTS = 1
return PLUGIN_CONTINUE
}
public client_disconnect(id) {
remove_task(id)
return PLUGIN_CONTINUE
}
public client_putinserver(id) {
iNumTests[id] = 0
if (!is_user_bot(id)) {
new param[1]
param[0] = id
set_task(60.0, "showWarn", id, param, 1)
}
return PLUGIN_CONTINUE
}
kickPlayer(id) {
new name[32]
get_user_name(id, name, 31)
new uID = get_user_userid(id)
server_cmd("amx_ban %d #%d Lagujesz", HIGHPING_BANTIME, uID)
client_cmd(id, "echo ^"[HPB] Przykro mi, masz zbyt wysoki ping. Sprobuj pozniej...^"; disconnect")
client_print(0, print_chat, "[HPB] %s zostal zbanowany za wysoki ping na %s minute.", name, HIGHPING_BANTIME)
return PLUGIN_CONTINUE
}
public checkPing(param[]) {
new id = param[0]
if ((get_user_flags(id) & ADMIN_IMMUNITY) || (get_user_flags(id) & ADMIN_RESERVATION)) {
remove_task(id)
client_print(id, print_chat, "[HPB] Masz Immunited. Sprawdanie pingu Cie nie obowiazuje.")
return PLUGIN_CONTINUE
}
new p, l
get_user_ping(id, p, l)
if (p > HIGHPING_MAX)
++iNumTests[id]
else
if (iNumTests[id] > 0) --iNumTests[id]
if (iNumTests[id] > HIGHPING_TESTS)
kickPlayer(id)
return PLUGIN_CONTINUE
}
public showWarn(param[]) {
client_print(param[0], print_chat, "[HPB] Gracze z pingiem wiekszym niz %dms zostana zbanowani na %s minute.", HIGHPING_MAX, HIGHPING_BANTIME)
set_task(float(HIGHPING_TIME), "checkPing", param[0], param, 1, "b")
return PLUGIN_CONTINUE
}
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
orzel
Rejestracja: 21.08.2010Aktualnie: Nieaktywny
Poza forum Ostatnio: 05.06.2011 19:45
Statystyki
- Grupa: Użytkownik
- Całość postów: 28
- Odwiedzin: 2 185
- Tytuł: Życzliwy
- Wiek: 45 lat
- Urodziny: Maj 3, 1979
-
Płeć
Mężczyzna
-
Lokalizacja
PL
Kontakt
0
Nowy
Narzędzia użytkownika
Znajomi
orzel nie posiada znajomych
Moje tematy
brak danych na czacie / HighPingBan
27.05.2011 17:41
Na czacie nie wyswietlaja sie dane, trylko suchy tekst, np. "[HPB] Gracze z pingiem wiekszym niz 100ms zostana zbanowani na <powinno byc tu 1 a nie ma> minute." Brakuje na ile minut, ale jaki ping to jest.
Rezerwowany slot
07.03.2011 16:44
Admini mają zarezerwowany slot. Oczywiście mają go, ale jak chcę komuś dać samego slota (bez adm) to nie działa.
"STEAM_ID" "" "bz" "ce"
Jakieś pomysły?
"STEAM_ID" "" "bz" "ce"
Jakieś pomysły?
Ban bez mozliwosci odbanowania
01.03.2011 14:56
No wlasnie, jak zbanowac kogos na IP, aby zaden admin nie mogl go odbanowac? Nie chodzi mi, zeby zabierac adminom flagi odpowiedzialnej na amx_unban, bo chce, aby mogli odbanowywac. Tylko żeby nie mogli odbanowac kilku osob (o danym IP/SteamID).
Nie wiem czy w ogole taka jest mozliwosc.
Myslalem juz o pluginie co by wykonywal co przykladowo runde komende
addip "0" "xx.xx.xx.xx"
Ale nie oto teraz chodzi, najpierw chce wiedziec czy idzie tak zrobic jak napisalem na poczatku.
Nie wiem czy w ogole taka jest mozliwosc.
Myslalem juz o pluginie co by wykonywal co przykladowo runde komende
addip "0" "xx.xx.xx.xx"
Ale nie oto teraz chodzi, najpierw chce wiedziec czy idzie tak zrobic jak napisalem na poczatku.
Timed Out'y przy zmianie mapy.
28.12.2010 23:54
Po zmianie mapy wszystkim wywala Timed Out'a jakby serwer dostał crasha, lecz po znalezieniu na liście swoich serwerów owego serwera i podłączeniu się do niego (po Timed Out'cie) mapa jest ta, na ktorą zmieniał, a nie ustawiona w lini startowej, tj dd2.
Nie ja wgrywałem AmxBan i nie jestem biegły w tych sprawach, także proszę o proste wyjaśnienie i pokierowanie co jak zrobić
Wersja AMXBansa: 5.1rc
Wersja AMXMODX 1.8.1.3746
Wersja serwera: dproto
Plugins.ini
modules.ini
sql.cfg
Konsola serwera po zmianie mapy
Czasami też w konsoli pojawia się coś takiego
Nie ja wgrywałem AmxBan i nie jestem biegły w tych sprawach, także proszę o proste wyjaśnienie i pokierowanie co jak zrobić
Wersja AMXBansa: 5.1rc
Wersja AMXMODX 1.8.1.3746
Wersja serwera: dproto
Plugins.ini
adminchat.amxx ;zielony czat adminow admin_amxbans.amxx ; admin amxbans'a, nie usuwac amxbans.amxx ; amxbans ;admin.amxx ; admin base (required for any admin-related) - OFF, poniewaz jest amxbans. admincmd.amxx ; basic admin console commands adminhelp.amxx ; help command for admin console commands adminslots.amxx ; slot reservation multilingual.amxx ; Multi-Lingual management menufront.amxx ; front-end for admin menus cmdmenu.amxx ; command menu (speech, settings) plmenu.amxx ; players menu (kick, ban, client cmds.) mapsmenu.amxx ; maps menu (vote, changelevel) pluginmenu.amxx ; Menus for commands/cvars organized by plugin adminchat.amxx ; console chat commands imessage.amxx ; displays information messages adminvote.amxx ; vote commands nextmap.amxx ; displays next map in mapcycle ;mapchooser.amxx ; allows to vote for next map timeleft.amxx ; displays time left on map pausecfg.amxx ; allows to pause and unpause some plugins statscfg.amxx ; allows to manage stats plugins via menu and commands 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!) deagsmapmanage230b.amxx ;vote na mapy raty.amxx ;wymuszane ustawienia ad_manager.amxx ;informacje na czacie roundsound.amxx ;rs'y BombExplode.amxx ;muzyczka przed wybuchem bomby ultimate_ss.amxx ;ss'y ;ptb.amxx ;ptb-balans druzyn team_flash_snitch.amxx ;pokazuje kogo oslepiles/kto cie oslepil
modules.ini
mysql sqlite fun engine fakemeta geoip sockets regex nvault cstrike csx hamsandwich
sql.cfg
amx_sql_host "frag-evo.xaa.pl" amx_sql_user "fragevo_banypb" amx_sql_pass "***************" amx_sql_db "fragevo_banypb" amx_sql_table "amx" amx_sql_type "mysql"
Konsola serwera po zmianie mapy
L 12/28/2010 - 23:45:11: -------- Mapchange to de_dust -------- L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy7.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy8.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy9.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy10.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy11.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy12.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy13.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy14.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy15.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy16.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy17.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy18.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy19.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy20.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy21.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded [pogromcy22.mp3] L 12/28/2010 - 23:45:11: [roundsound.amxx] Loaded music files: 16 [AMXBANS] amxbans.cfg is executed Wznowiono 0 pluginy [AMXX] Zaladowano 10 admino z bazy danych Menu item 17 added to Menus Front-End: "Plugin Cvars" from plugin "pluginmenu.amxx" Menu item 18 added to Menus Front-End: "Plugin Commands" from plugin "pluginmenu.amxx" Dropped *THC* Kacperski Online xdd from server Reason: Timed out Dropped Kikaan[PL] from server Reason: Timed out Dropped GiBoN <img src='http://images.amxx.pl/public/style_emoticons/default/haha.gif' class='bbc_emoticon' alt='xD' />$$ from server Reason: Timed out Dropped Dziadu from server Reason: Timed out Dropped MLODY from server Reason: Timed out Dropped Dangerous Dave; from server Reason: Timed out Dropped [K]ovs[K]i from server Reason: Timed out Dropped sTyL3d. from server Reason: Timed out Dropped Bronek Malinowski from server Reason: Timed out Dropped AsYouWish. < 3 from server Reason: Timed out L 12/28/2010 - 23:45:26: [amxbans.amxx] [AMXBANS] AMXBans 5.1rc jest online 90.156.96.62:27005:reconnect [AMXBANS] Loaded 7 reasons from database 83.25.49.215:27005:reconnect 77.254.180.186:27005:reconnect 83.11.148.93:27005:reconnect L 12/28/2010 - 23:45:27: Banned 2 Maps in your mapstoban.ini file L 12/28/2010 - 23:45:27: Loaded 0 Maps into the maps that will be picked for the vote L 12/28/2010 - 23:45:27: 0 Maps were not loaded because they were the last maps played, or defined twice, or banned L 12/28/2010 - 23:45:27: Found 22 Maps in your mapcycle.txt/allmaps.txt file, 16 are available for filling slots
Czasami też w konsoli pojawia się coś takiego
L 12/28/2010 - 23:54:00: [amxbans.amxx] [Amxbans] Zapytanie nieudane! L 12/28/2010 - 23:54:00: [amxbans.amxx] [Amxbans] Blad zapyania, lokacja: 18 L 12/28/2010 - 23:54:00: [amxbans.amxx] [Amxbans] Wiadomosc: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''amxb' at line 1 (1064) L 12/28/2010 - 23:54:00: [amxbans.amxx] [Amxbans] Status zapytania:
Muzyka 10 sek przed wybuchem bomby
31.08.2010 11:36
webCompilator wywala bledy, ja nie moge ich odnalesc
#include <amxmodx>
#include <csx>
#define PLUGIN "Bomb Countdown HUD Timer"
#define VERSION "0.2"
#define AUTHOR "SAMURAI"
//
// KONFIGURACJA TUTAJ
//
#define muzyczka "sound/misc/pogromcy_boom.wav"
#define czas 10
//
//
new g_c4timer, pointnum;
new bool:b_planted = false;
new g_msgsync;
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR);
pointnum = get_cvar_pointer("mp_c4timer");
register_logevent("newRound", 2, "1=Round_Start");
register_logevent("endRound", 2, "1=Round_End");
register_logevent("endRound", 2, "1&Restart_Round_");
g_msgsync = CreateHudSyncObj();
}
public newRound()
{
g_c4timer = -1;
remove_task(652450);
b_planted = false;
}
public endRound()
{
g_c4timer = -1;
remove_task(652450);
}
public bomb_planted()
{
b_planted = true;
g_c4timer = get_pcvar_num(pointnum);
dispTime()
set_task(1.0, "dispTime", 652450, "", 0, "b");
}
public bomb_defused()
{
if(b_planted)
{
remove_task(652450);
b_planted = false;
}
}
public bomb_explode()
{
if(b_planted)
{
remove_task(652450);
b_planted = false;
}
}
public dispTime()
{
if(!b_planted)
{
remove_task(652450);
return;
}
if(g_c4timer >= 0)
{
if(g_c4timer > 13) {
set_hudmessage(0, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
}
else if(g_c4timer > 7) {
set_hudmessage(150, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
if(g_c4timer == czas) {
client_cmd(0, "spk %s", muzyczka)
}
}
else {
set_hudmessage(150, 0, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1);
}
ShowSyncHudMsg(0, g_msgsync, "BS rozdupcy sie za: %d", g_c4timer);
--g_c4timer;
}
}
public plugin_precache()
{
precache_sound(sound/misc/pogromcy_boom.wav)
return PLUGIN_CONTINUE
}
- AMXX.pl: Support AMX Mod X i SourceMod
- → Przeglądanie profilu: Tematy: orzel
- Regulamin