Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

maciek0306 - zdjęcie

maciek0306

Rejestracja: 03.04.2015
Aktualnie: Nieaktywny
Poza forum Ostatnio: 29.03.2016 10:25
-----

Moje posty

W temacie: rangicsgo.amxx

02.03.2016 18:48



mozesz podac sma plyuginu

/* Plugin generated by AMXX-Studio */
 
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <csx>
#include <ColorChat>
 
#define TASK 666
 
#define PLUGIN "RangiCSGO"
#define VERSION "1.3"
#define AUTHOR "klqs"
 
new ranga[33];
new cvar
new sync;
new const limit = 18;
new const limit_min = 1
new const rangi[][] = {
{0, "Silver I"},
{5, "Silver II"},
{15, "Silver III"},
{30, "Silver IV"},
{50, "Silver elite"},
{75, "Silver elite master"},
{100, "Gold nova I"},
{150, "Gold nova II"},
{200, "Gold nova III"},
{300, "Gold nova master"},
{500, "Master guardian I"},
{750, "Master guardian II"},
{1000, "Master guardian elite"},
{1500, "Distinguished master guardian"},
{2000, "Legendary eagle"},
{2500, "Legendary eagle master"},
{3000, "Supreme master first class"},
{5000, "THE GLOBAL ELITE"}
}
new Float:liczby[] = {0.0, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1.0, 1.05, 1.1, 1.15, 1.2, 1.25, 1.3, 1.35}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /rangi", "menu")
sync = CreateHudSyncObj()
register_cvar("rangi_kolor", "0")
}
public client_connect(id)
{
new param[1]
param[0] = id
set_task(1.0,"rank",TASK+id,param,1,"b")
}
 
public client_disconnect(id)
{
if(task_exists(TASK+id))
remove_task(TASK+id)
}
public rank(param[])
{
new id = param[0]
new stats[8]
new body[8]
get_user_stats(id, stats, body)
if(!is_user_alive(id))
{
id = pev(id, pev_iuser2);
if(!id)
id = param[0]
}
new Float:kdratio[33]
kdratio[id] = float(stats[0]) / float(stats[1])
 
if((kdratio[id] >= liczby[ranga[id]]) && (stats[0] >= rangi[ranga[id]][0]) && ranga[id] < limit)
ranga[id]++
 
else if(kdratio[id] < liczby[ranga[id]] || stats[0] < rangi[ranga[id]][0])
{
if(ranga[id] > limit_min)
ranga[id]--
}
 
new name[33]
get_user_name(id,name,32)
cvar = get_cvar_num("rangi_kolor")
switch(cvar)
{
case 0:
{
set_hudmessage(255, 255, 255, 0.01, 0.22)
ShowSyncHudMsg(id, sync, "[Nick: %s]^n[Ranga: %s]^n[Zabojstwa: %d/%d]^n[K/d ratio %0.2f%]", name , rangi[ranga[id]][1], stats[0], rangi[ranga[id]][0], kdratio[id])
}
case 1:
{
set_hudmessage(255, 0, 0, 0.01, 0.22)
ShowSyncHudMsg(id, sync, "[Nick: %s]^n[Ranga: %s]^n[Zabojstwa: %d/%d]^n[K/d ratio %0.2f%]", name , rangi[ranga[id]][1], stats[0], rangi[ranga[id]][0], kdratio[id])
}
case 2:
{
set_hudmessage(0, 255, 0, 0.01, 0.22)
ShowSyncHudMsg(id, sync, "[Nick: %s]^n[Ranga: %s]^n[Zabojstwa: %d/%d]^n[K/d ratio %0.2f%]", name , rangi[ranga[id]][1], stats[0], rangi[ranga[id]][0], kdratio[id])
}
case 3:
{
set_hudmessage(0, 0, 255, 0.01, 0.22)
ShowSyncHudMsg(id, sync, "[Nick: %s]^n[Ranga: %s]^n[Zabojstwa: %d/%d]^n[K/d ratio %0.2f]", name , rangi[ranga[id]][1], stats[0], rangi[ranga[id]][0], kdratio[id])
}
}
}
public menu(id){
new infomenu[61]
new MyMenu = menu_create("Rangi CSGO by klqs", "fMyMenu");
 
for(new i; i < sizeof(rangi); i++)
{
format(infomenu, 60, "%s", rangi[i][1], rangi[i][0])
menu_additem(MyMenu, infomenu);
}
menu_setprop(MyMenu, MPROP_EXITNAME, "Wyjscie");
menu_setprop(MyMenu, MPROP_BACKNAME, "Poprzednia strona");
menu_setprop(MyMenu, MPROP_NEXTNAME, "Nastepna strona");
menu_display(id, MyMenu);
}
public fMyMenu(id, menu, item)
{
ColorChat(id, GREEN, "By zdobyc range %s musisz miec %d fragow oraz %0.2f k/d ratio", rangi[item][1], rangi[item][0], liczby[item])
menu_display(id, menu);
}

W temacie: amxbans nie banuje

28.02.2016 15:07

Wpisałeś wszystko dobrze do sql.cfg i przy php? 
Powody: złe hasło albo brak uprawnień dla tego użytkownika 

Wszysto wpisane dobrze nwm co moze byc nie tak do tej pory wszystko dobrze działało i nagle sie zepsuło 

 

oto moje sql;

 

/ SQL configuration file
// File location: $moddir/addons/amxmodx/configs/sql.cfg
 
// *NOTE* Linux users may encounter problems if they specify "localhost" instead of "127.0.0.1"
// We recommend using your server IP address instead of its name
 
// *NOTE* amx_sql_type specifies the DEFAULT database type which admin.sma will use.
 
 
 
 
 
 
amx_sql_host "cs-umanka.xaa.pl" 
amx_sql_user "csumanka_amxbans"
amx_sql_pass "haslo"
amx_sql_db "csumanka_amxbans"
amx_sql_table "amx"
amx_sql_type "mysql"
 
amxbans.cfg
 
// Plik Konfiguracyjny AMXBans
 echo [AMXBans] laduje plik amxbans.cfg
 
 // Prefix bazy
 // Nota: Prefiks wpisany w sql.cfg nie jest ju� u�ywany przez AMXBans
 amx_sql_prefix "amx"
 
 //U�ywanie oznacze� 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 �aduje admin�w
 amxbans_use_admins_file 1
 
// AMXBans pr�buje pobiera� Ip automatycznie (Tak, wida� ;/)
 // Mo�esz ustawi� inne iP -np. "<ip>:<port>"
 amxbans_server_address ""
 
// Tak naprawdę ten cvar jest niezle pomylony niby chodzi o czas a ustawia w�asny pow�d bana 
 // -1 aby wy�aczy�, 0 aby w�aczy� w�asny pow�d bana
 amxbans_custom_statictime 0
 
 // Wpisz jaka ma byc wy�wietlana nazwa serwera na stronie gdy gracz dostanie bana .
 // np. amxbans_servernick "M�j za***isty serwer"
 // Pozostaw puste aby czyta�o domy�lna nazwe hosta z server.cfg
 amxbans_servernick ""
 
 // Ustaw 1 / 2 / 3 aby w��czy� powiadomienia o debugach w logach.
 // nie ustawiaj na 3 bo Ci konsole zaspamuje, ustaw 2 bedzie normal
 amxbans_debug 3
 
// Nie wpisuj "http://". Plugin sam sobie to wpisze 
 amxbans_complain_url "www.cs-umanka.xaa.pl"
 
 // Ustaw na 1 aby mapa by�a pokazywana w nazwie serwera
 amxbans_add_mapname_in_servername 1
 
 // Ustaw na 1 aby w czacie HLSW by� 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 najwy�szy czas bana jaki mo�e ustawi� admina.
 amxbans_higher_ban_time_admin "n"
 
 // Ustawia jaka flaga odpowiada za to aby nie by� pokazywany nick admina kt�ry zbanowa� gracza
 amxbans_admin_mole_access "r"
 
 // Je�li admin ma ustawiony admin_mole_access, ma pokazywa� jego nick przy zbanowanym graczu?
 amxbans_show_name_evenif_mole 1
 
 // Pokazuje adminowi w chacie czy gracz by� wczesniej zbanowany, 0 aby wy��czy�
 amxbans_show_prebanned 1
 
 // Ile razy powiadamia admina o wcze�niejszym banie gracza
 amxbans_show_prebanned_num 2
 
 // Obecnie nie wiadomo  // Tak napisali w oryginale :D
 amxbans_default_ban_reason unknown
 
 // Czy mo�na banowa� w przypadku gdy gracz si� roz�aczy . 1 aby w�aczy� 0 aby wy�aczyc // Jest to na koncu menu admina, Menu Roz��cze�
 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"
 
 // D�ugo�ci ban�w dla admin�w z flag� -d, ustaw najwieksze jakie maj� byc przy komendzie "amxbans_consolebanmax"
 // UWAGA: ustawiaj wartosci od NAJMNIEJSZEJ do NAJWI�KSZEJ . Mozesz wybrac 14 warto�ci
 // "0 m" = PERM 
 // Wartosci jakich mozesz u�y� :
 // 1 - 59 dla flagi m to minuty
 // 1 - 23 dla flagi h to godziny
 // 1 - 6 dla flagi d to dni
 
plugins.ini
 
; AMX Mod X plugins
 
; Admin Base - Always one has to be activated
amxbans_core.amxx
amxbans_main.amxx
;admin.amxx              ;  admin base (required for any admin-related)   
;admin_sql.amxx          ;  admin base - SQL version (comment admin.amxx
;admin_amxbans.amxx ; AmxBans own SQL version of admin_sql if you are using amxbans web interface to manage admins
 
 
; Basic
amxbans.amxx        ; AmxBans main plugin, enable to use bans saved in SQL
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management
 
ReasonKicker.amxx
; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
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
restmenu.amxx
 
; 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
 
; Enable to use AMX Mod plugins
;amxmod_compat.amxx ; AMX Mod backwards compatibility layer
 
 
; pluginy dla adminow
 
admin_spec_esp.amxx
amx_ip_zmienne.amxx
admin_chat_colors.amxx
extreme_bancfg2.amxx
ReasonKicker.amxx
show_ips.amxx
 
; Anty czit, anty reklama
 
anti_sayEN.amxx
dontsayips.amxx
No_advertisement.amxx
speedhack_detector.amxx
reklama.amxx
 
; Pozostale
 
abd.amxx
afkbombtransfer.amxx
Allow_round_finish.amxx
 
 
Bardzo proszę o pomoc

 

W temacie: amxbans nie banuje

26.02.2016 20:47

Pomorze ktoś pls 

W temacie: amxbans nie banuje

25.02.2016 15:40

Nadal nie działa :(

 

W temacie: Amxbans nie banuje

06.01.2016 16:00

jest wgrane od nowa amxbans 

oto logi 

L 01/06/2016 - 15:54:14: [amxbans_main.amxx] [AMXBans] Polaczenie nie powiodlo sie!
L 01/06/2016 - 15:54:14: [amxbans_main.amxx] [AMXBans] Blad zapytania , Miejsce: 17
L 01/06/2016 - 15:54:14: [amxbans_main.amxx] [AMXBans] Wiadomosc: Access denied for user 'csumanka_amxbans'@'151.80.103.45' (using password: YES) (1045)
L 01/06/2016 - 15:54:14: [amxbans_main.amxx] [AMXBans] Raport zapytania: 

L 01/06/2016 - 15:56:36: [amxbans_main.amxx] [AMXBans] Polaczenie nie powiodlo sie!
L 01/06/2016 - 15:56:36: [amxbans_main.amxx] [AMXBans] Blad zapytania , Miejsce: 16
L 01/06/2016 - 15:56:36: [amxbans_main.amxx] [AMXBans] Wiadomosc: Access denied for user 'csumanka_amxbans'@'151.80.103.45' (using password: YES) (1045)
L 01/06/2016 - 15:56:36: [amxbans_main.amxx] [AMXBans] Raport zapytania:

 

moje sql 

/ SQL configuration file
// File location: $moddir/addons/amxmodx/configs/sql.cfg
 
// *NOTE* Linux users may encounter problems if they specify "localhost" instead of "127.0.0.1"
// We recommend using your server IP address instead of its name
 
// *NOTE* amx_sql_type specifies the DEFAULT database type which admin.sma will use.
 
 
 
 
 
 
amx_sql_host    "cs-umanka.xaa.pl" 
amx_sql_user    "csumanka_amxbans"
amx_sql_pass    "*****"
amx_sql_db    "csumanka_amxbans"
amx_sql_table    "amx"
amx_sql_type    "mysql"
 
moje plugins
; AMX Mod X plugins
 
; Admin Base - Always one has to be activated
amxbans_core.amxx
amxbans_main.amxx
;admin.amxx              ;  admin base (required for any admin-related)   
;admin_sql.amxx          ;  admin base - SQL version (comment admin.amxx
;admin_amxbans.amxx ; AmxBans own SQL version of admin_sql if you are using amxbans web interface to manage admins
 
 
; Basic
amxbans.amxx        ; AmxBans main plugin, enable to use bans saved in SQL
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management
 
ReasonKicker.amxx
; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
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
restmenu.amxx
 
; 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
 
; Enable to use AMX Mod plugins
;amxmod_compat.amxx ; AMX Mod backwards compatibility layer
 
 
; pluginy dla adminow
 
admin_spec_esp.amxx
amx_ip_zmienne.amxx
admin_chat_colors.amxx
extreme_bancfg2.amxx
ReasonKicker.amxx
show_ips.amxx
 
; Anty czit, anty reklama
 
anti_sayEN.amxx
dontsayips.amxx
No_advertisement.amxx
speedhack_detector.amxx
reklama.amxx
 
; Pozostale
 
abd.amxx
afkbombtransfer.amxx
Allow_round_finish.amxx
ad_manager.amxx
noshield.amxx
;galileo.amxx
flash.amxx
polski_cs.amxx
C4timer.amxx
killer.amxx
descriptive_fire_in_the_hole.amxx
RoundSound.amxx
spec_hud_info.amxx
przychodzi.amxx
interpchanger.amxx
zegarek.amxx
rangiCSGO.amxx
kill_assist.amxx
statsx.amxx
parachute.amxx
vip.amxx
GHW_Weapon_Replacement.amxx
ptb.amxx
TotalTimeConnection.amxx
ptb.amxx
Best_player.amxx
bs_limiter.amxx
warmuppro.amxx
grenade_trail.amxx
unbanmenu.amxx
Najlepszy.amxx
Czapka.amxx
Zloz_Zamowienie_v1.0.amxx
ankieta.amxx
Christmas_C4.amxx
snowNew.amxx
ultimate_sounds_PL.amxx
KP.amxx
wins_limit.amxx
losowanievip.amxx
round_stats_info.amxx
HUD_info.amxx
dib3.amxx
ResetStatystyk.amxx
amx_ssban.amxx
 
moje modules
;;;
; To enable a module, remove the semi-colon (;) 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
hamsandwich