http://przeklej.org/...mod.v1.21.1.rar sprawdź
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.
|
Wiciu1987
Rejestracja: 28.08.2014Aktualnie: Nieaktywny
Poza forum Ostatnio: 05.10.2015 18:56





Statystyki
- Grupa: Użytkownik
- Całość postów: 272
- Odwiedzin: 4 634
- Tytuł: Wszechwidzący
- Wiek: Wiek nie został ustalony
- Urodziny: Data urodzin nie została podana
-
Imię
Witek
-
Płeć
Mężczyzna
-
Lokalizacja
Sieradz
Kontakt
#706421 [ROZWIĄZANE] Szukam metamod v1.21.1-am
Napisane przez Wiciu1987
w 15.07.2015 20:27
#703235 poszukuje smoke jak w cs:Go
Napisane przez Wiciu1987
w 15.06.2015 16:05
#700661 po 15 w drużynie na de_dust2
Napisane przez Wiciu1987
w 15.05.2015 19:14
#700327 Szukam Roundsound
Napisane przez Wiciu1987
w 11.05.2015 19:47
Odp.1 http://amxx.pl/topic...962-roundsound/ świetny plugin, sam go używam i jestem zadowolony. Przeczytaj dokładniej jak go zainstalować i co jest potrzebne że by tutor zadziałał.
Odp.2 hehe miałem ten sam problem z resetem statystyk say/rs i Round Sound say/rs, jedna i ta sama komenda otwierała menu z muzyką i od razu resetowało statystyki.
Wejdź w plik sma. i tam masz takiej linijki
say /rs
say /roundsound
say_team /rs
say_team /roundsound
i teraz usuń say_team /rs, say /rs że by to wyglądało tak:
say /roundsound
say_team /roundsound
Zamknij, skompiluj i Ready
#700312 Wyrzuca graczy z nie wiadomego problemu
Napisane przez Wiciu1987
w 11.05.2015 16:52
Witam. Od którego tygodnia borykam się z problemem takiej natury że z niewiadomego problemu wyrzuca mi graczy z serwera (NS) Żadnych logów error, serwer nie kraszuje, Dproto wydaje się w porządku, server.cfg również. Prze studiowałem którą noc na forach i nie mogę znaleźć konkretnej odpowiedz co może być temu ku powodem. Nie wiem może, jednak któryś z plików wymienionych Dproto, server.cfg, albo jeszcze amxx.cfg. Mały wycinek z konsoli jak gracze wchodzą i po chwili wypadają z gry
Dropped Witek from server
Reason: Client sent 'drop'Dropped *Stattrak* VGaiMinG from serverReason: Client sent 'drop'Dropped pw3znaki from serverReason: Client sent 'drop'Dropped <Warrior> Player from serverReason: Client sent 'drop'Rcon from 185.5.98.29:53808:rcon 708546022 "sg63RBZGB2" statsCPU In Out Uptime Users FPS Players2.00 0.93 0.87 157 37 92.80 1Dropped Ninja ()! from server
Reason: Client sent 'drop'92.84.72.209:11910:reconnect
Są Mistrzowie którzy nawet po 4-5 razy próbują wejść i udaje im się, ale dopiero za 4-5 razem
Jak się już komuś uda wejść na serwer to gra kilka minut i go wyrzuca, a wiem stąd że po chwili wraca i dalej gra bądź boryka się z problemem wejścia na serwer.
Silnik Gry
Biniarki (6153), Dproto 0.9.497 Linux, AMX Mod X version 1.8.2, Metamod version 1.21p37
Server.cfg
// NOZO CFG
hostname "Serwer bla bla bla @ serwerygier.com"sv_password ""rcon_password "sg63RBZGB2"///////////////////////////////////////////////////////////////////////////////////////////////////// disable clients' ability to pause the serverpausable 0// default server name. Change to "Bob's Server", etc.// Komendysv_downloadurl "http://fastdl.serwer...m/s527/cstrike"sv_allowdownload "1"sv_allowupload "1"sv_gravity "800"sv_maxrate "0"sv_maxupdaterate "0"sv_minrate "0"sv_minupdaterate "0"sv_maxunlag "1"sv_voicecodec "voice_speex"sv_voiceenable "1"sv_voicequality "3"sv_alltalk "1"mp_autoteambalance "0"mp_buytime "0.10"mp_footsteps "1"mp_payerid "0"mp_roundtime "1.50"mp_timelimit "25"sv_maxspeed "320"mp_freezetime "0"mp_chattime "3"mp_forcecamera "0"sv_spectatormaxspeed "500"sv_allowupload "1"mp_decals "999"// �adowanie Ban�wexec banned.cfg // laduj bany steamid/wonidexec listip.cfg // laduj bany na ip
Dproto.cfg
# DPROTO CONFIGURATION
# ========================================================
#
# General rule for modifying this file:
# DONT CHANGE ANYTHING IF YOU DONT KNOW WHAT IT MEANS!
#
# ========================================================
# AUTHID MANAGEMENT
# ========================================================
# ClientID types (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 these options to set authid's for clients
# for HLTV (default is HLTV [7])
cid_HLTV = 7
# for p.47 clients that do not support unique id generation (default is VALVE_ by IP [4])
cid_NoSteam47 = 4
# for p.48 clients that do not support unique id generation (default is VALVE_ by IP [4])
cid_NoSteam48 = 4
# For Legit Steam clients (default is real STEAM_xx:xx:xx [1])
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)
# default is STEAM_ID_PENDING [9]
cid_SteamPending = 9
# For players having revEmu ( >= 9.74) on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_RevEmu = 1
# For players having RevEmu 2013 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_RevEmu2013 = 1
# For players having SteamClient 2009 / revEmu > 9.82 on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SC2009 = 1
# For players having old revEmu on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_OldRevEmu = 1
# For players having hCupa's SteamEmu on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_SteamEmu = 1
# For players having AVSMP (Cracked Steam) on client-side:
# default is real STEAM_xx:xx:xx [1]
cid_AVSMP = 1
# For SETTI ServerScanner
# default is STEAM_xx:xx:xx generated by IP [3]
cid_Setti = 3
# For SXEI Clients
# default is real STEAM_xx:xx:xx [1]
cid_SXEI = 1
# EnableSXEIdGeneration (0 / 1)
# Turns on steamid generation based on info sent by sXeI client
# Enable this only if you have sXeI server installed!
EnableSXEIdGeneration = 0
# SC2009_RevCompatMode (0 / 1)
# Enable fix to make steamids generated for SC2009 compatible with revEmu
SC2009_RevCompatMode = 1
# 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
# SteamIdHashSalt (string)
# Salt string for SteamIDs hashing. Irreversibly changes SteamIDs. Applies only to SteamIDs generated by emulators.
# Should be more than 16 chars length. If string is empty, hashing is not applied.
SteamIdHashSalt =
# IPGen_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by IP
IPGen_Prefix1 = 0
# IPGen_Prefix2 (int)
# STEAM_a:b:c
# second prefix (

IPGen_Prefix2 = 4
# Native_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by native auth method (Steam)
Native_Prefix1 = 0;
# RevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by Steamclient 2009
SC2009_Prefix1 = 1;
# RevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by RevEmu
RevEmu_Prefix1 = 2;
# RevEmu2013_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by RevEmu2013
RevEmu2013_Prefix1 = 3;
# OldRevEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by old RevEmu
OldRevEmu_Prefix1 = 4;
# SteamEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids generated by SteamEmu
SteamEmu_Prefix1 = 5;
# SteamEmu_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for AVSMP Clients (Cracked steam)
AVSMP_Prefix1 = 6;
# Setti_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for Setti server scanner
Setti_Prefix1 = 7;
# SXEI_Prefix1 (int)
# STEAM_a:b:c
# first prefix (a) for authids assigned for sXeI clients
SXEI_Prefix1 = 8;
# Note that banid will use steamid WITHOUT any prefixes!
# ========================================================
# ATTACKS SUPRESSION
# ========================================================
# FakePlayers_AntiReconnect (0/1)
# Enables detection of fakeplayers that reconnects quickly (every < 10 seconds)
# before fake players checks have completed.
# Default is 1 (ON).
FakePlayers_AntiReconnect = 1
# FakePlayers_BanTime (minutes)
# Dproto will ban IP spamming fakeplayers for time (in minutes) specified in this variable
# Default is 120 minutes.
# Use 0 for permanent ban.
# Use negative vaules to disable ban (fake players will only be kicked).
FakePlayers_BanTime = 1
# Exploits_CheckDownloads (0/1)
# Enable checking of requested download files against precached resources.
# Default is 1 (ON).
Exploits_CheckDownloads = 1
# Exploits_DisableUploads (0/1)
# Disable file uploads (not customizations) to the server.
# Default is 1 (ON).
Exploits_DisableUploads = 1
# ========================================================
# OTHER STUFF
# ========================================================
# LoggingMode:
# 0 = None
# 1 = Console
# 2 = Log Files
# 3 = Both
LoggingMode = 2
# ThreatsLoggingMode (0/1)
# Enable logging of threats details.
# Default is 0 (OFF).
ThreatsLoggingMode = 0
# 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/2)
# 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 - Server is visible anywhere, but there are 3 packets generated for every serverinfo request
ServerInfoAnswerType = 2
# 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 displaying 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
# HLTVExcept_IP (ip addr)
# HLTV from this IP will be able to join the server even if cid_HLTV is set to 5 (deprecated)
HLTVExcept_IP = 5.135.177.135
Plugins.ini
; Admin Base - Always one has to be activated
advanced_bans.amxx ; Adventure Bans
admin.amxx ; admin base (required for any admin-related)
;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)
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
ad_manager.amxx ;Dodatkowe informacje w hud
team-semiclip.amxx ;Mo?na przechodzi? przez swoj? dru?yn?
resetscore.amxx ;Reset statystyk say/rs
;AMXX-Booster.amxx ;Ping Boster
RoundSound.amxx ;Muzyka na koniec rundy
hpk.amxx ;Kontrola Pingu max. 135ms
spawn_protection_pl.amxx ;Ochrona na respie
AutoRRound.amxx ;Auto Restart
galileo.amxx ;Plugin do Votowania Map
abd.amxx ;Wida� zadawane obra�enia
amx_gore_ultimate.amxx ;Efekt zabicia
admin_check.amxx ;Admin Online say/admin
nadegiver.amxx ;Darmowy granat
hud_customizer.amxx ;Plugin usuwa czas i pieni�dze
grenade_trail.amxx ;Kolorowe linie za granatem
;team_join.amxx ;Automatyczne dojście do Teamu
;ptb.amxx ;Plugin wyr�wnj�cy Teamy
;reklama.amxx ;Zakaz Reklamowania
polski_cs.amxx ;Spolszczony cs
amxx.cfg
echo Executing AMX Mod X Configuration File
// Default access for all non admin players (see users.ini for access details)
//
// Default value: "z"
amx_default_access "z"
// Name of setinfo which should store a password on a client (you should change this)
// Note: Always prefix the field with an underscore (aka: "_")
// (Example: setinfo _pw "password")
//
// Default value: "_pw"
amx_password_field "_pw"
// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
//
// Default value: 1
amx_mode 1
// Show admins activity
// 0 - disabled
// 1 - show without admin name
// 2 - show with name
//
// Default value: 2
amx_show_activity 2
// Frequency in seconds and text of scrolling message
//
// Default value: "Welcome to %hostname% -- This server is using AMX Mod X" 200
amx_scrollmsg "############################" 270
// Center typed colored messages (last parameter is a color in RRRGGGBBB format)
//
// Default values: "Welcome to %hostname%" "000255100"
// "This server is using AMX ModXnVisit http://www.amxmodx.org""000100255"
//amx_imessage "Witamy na %hostname%" "000255100"
//amx_imessage "Ten serwer uzywa AMX Mod XnOdwiedz http://www.amxx.pl""000100255"
// Frequency in seconds of colored messages
//
// Default value: 180
amx_freq_imessage 180
// Ban times for the main ban menu (amx_banmenu)
// Use 0 for permanent ban
// Default values: 0 5 10 15 30 45 60
amx_plmenu_bantimes 0 5 10 15 30 45 60
// Slap damage amounts for the main slap menu (amx_slapmenu)
// Slay is automaticall inserted as the first option
// Default values: 0 1 5
amx_plmenu_slapdmg 0 1 5
// Set in seconds how fast players can chat (chat-flood protection)
//
// Default value: 0.75
amx_flood_time 0.75
// Amount of slots to reserve.
//
// Default value: 0
amx_reservation 0
// If you set this to 1, you can hide slots on your server.
// If server "full" of public slots and slots hidden, you must manually connect with connect console command
//
// Default value: 0
amx_hideslots 0
// Displaying of time remaining
// a - display white text on bottom
// b - use voice
// c - don't add "remaining" (only in voice)
// d - don't add "hours/minutes/seconds" (only in voice)
// e - show/speak if current time is less than this set in parameter
//
// Default value: "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"
amx_time_display "ab 1200" "ab 600" "ab 300" "ab 180" "ab 60" "bcde 11"
// Announce "say thetime" and "say timeleft" with voice, set to 0 to disable.
//
// Default value: 1
amx_time_voice 1
// Minimum delay in seconds between two voting sessions
//
// Default value: 10
amx_vote_delay 10
// How long voting session goes on
//
// Default value: 10
amx_vote_time 10
// Display who votes for what option, set to 0 to disable, 1 to enable.
//
// Default value: 1
amx_vote_answers 1
// Some ratios for voting success
// Default value: 0.40
amx_votekick_ratio 0.40
// Default value: 0.40
amx_voteban_ratio 0.40
// Default value: 0.40
amx_votemap_ratio 0.40
// Default value: 0.02
amx_vote_ratio 0.02
// Max. time to which map can be extended
//
// Default value: 90
amx_extendmap_max 90
// Step for each extending
//
// Default value: 15
amx_extendmap_step 15
// If you set this to 0, clients cannot chose their language, instead they use
// whatever language the server is configured to use.
//
// Default value: 1
amx_client_languages 8
// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
//
// Default value: 1
amx_debug 1
// Plugin MultiLingual Debug
// To debug a language put its 2 letter code between quotes ("en", "de", etc)
// "" means disabled
//
// Default value: ""
amx_mldebug ""
//
// Beginning of Counter-Strike package specific configurations.
//
// Rank mode
// 0 - by nick
// 1 - by authid
// 2 - by ip
//
// Default value: 1
csstats_rank 1
// Max size of the stats file
//
// Default value: 3500
csstats_maxsize 3500
// Whether or not to rank bots with csstats - set to 1 to rank bots, 0 otherwise.
//
// Default value: 0
csstats_rankbots 0
// Duration of HUD-statistics
//
// Default value: 12.0
amx_statsx_duration 12.0
// HUD-statistics display limit relative round freeze end
// Negative time will clear the HUD-statstics before the round freeze time has ended
//
// Default value: -2.0
amx_statsx_freeze -2.0
// VoiceTransCoder
sv_voicevolume_speex 1.0 // dla zwi�kszenia g�osu dla konwersji Speex->SILK (warto�� domy�lna 1.0)
sv_voicevolume_silk 1.0 // dla zwi�kszenia g�osu dla konwersji SILK->Speex (warto�� domy�lna 1.0)
sv_voicefloodms 0 // minimalny czas mi�dzy pakietami g�osowymi (warto�� domy�lna to 30, aktualnie zalecam ustawi� 0)
Proszę o pilną pomoc
#697227 [ROZWIĄZANE] Edycja Pluginu Round Sound
Napisane przez Wiciu1987
w 12.04.2015 20:07
#696959 [ROZWIĄZANE] Edycja Pluginu Round Sound
Napisane przez Wiciu1987
w 11.04.2015 16:16
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <tutor> #include <ColorChat> #define PLUGIN "RoundSound" #define VERSION "2.0 BETA" #define AUTHOR "speedkill" new Array:g_PathCT, Array:g_PathTT, Array:g_SoundNameCT, Array:g_SoundNameTT; new bool:g_RoundSound[33], bool:g_ShowAds[33], bool:g_FirstPlay, bool:g_MusicPlaying; new g_LastSong[96], g_Prefix[64], g_ShowInfo[33], g_ArraySize[4], g_Pcvar[4], g_ValueTeam[2], g_ShowType, g_MaxPlayers, g_PlaylistType, g_RandomMusic; new const g_ShowNames[][]={ "Brak", "Tutor", "Czat" }; new const g_CvarName[][]={ "Roundsound_ads_time", "Roundsound_prefix", "Roundsound_random_music", "Roundsound_show_type" }; new const g_CvarValue[][]={ "180", "RoundSound", "0", "1" }; new const g_LangCmd[][]={ "say /rs", "say /roundsound", "say_team /rs", "say_team /roundsound" }; new const g_LastLangCmd[][]={ "say /last", "say_team /last" }; enum{ Tutor_Msg = 1, Chat_Msg }; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); for(new i = 0; i < sizeof g_LangCmd; i++){ register_clcmd(g_LangCmd[i], "ShowRsMenu"); } for(new i = 0; i < sizeof g_LastLangCmd; i++){ register_clcmd(g_LastLangCmd[i], "ShowLastSong"); } register_event("SendAudio", "PlaySoundTT", "a", "2&%!MRAD_terwin"); register_event("SendAudio", "PlaySoundCT", "a", "2&%!MRAD_ctwin"); register_logevent("RoundStart", 2, "1=Round_Start"); tutorInit(); for(new i = 0; i < sizeof g_CvarName; i++){ g_Pcvar[i] = register_cvar(g_CvarName[i], g_CvarValue[i]); } } public plugin_precache(){ g_PathCT = ArrayCreate(128); g_PathTT = ArrayCreate(128); g_SoundNameCT = ArrayCreate(96); g_SoundNameTT = ArrayCreate(96); LoadSounds(); tutorPrecache(); } public plugin_cfg(){ get_pcvar_string(g_Pcvar[1], g_Prefix, charsmax(g_Prefix)); g_ShowType = get_pcvar_num(g_Pcvar[3]); g_RandomMusic = get_cvar_num(g_Pcvar[2]); g_MaxPlayers = get_maxplayers(); set_task(get_pcvar_float(g_Pcvar[0]), "ShowAds",.flags = "b"); g_ValueTeam[0] = g_ValueTeam[1] = -1; } public client_authorized(id){ g_RoundSound[id] = true; g_ShowAds[id] = true; g_ShowInfo[id] = g_ShowType; } public LoadSounds(){ new g_Path[128]; formatex(g_Path[ get_configsdir(g_Path, charsmax(g_Path)) ], charsmax(g_Path), "/RoundSound.ini"); if(file_exists(g_Path)){ new g_Line[256], g_SoundPath[128], g_Name[96], g_Team[3], g_Len; for(new i = 0; read_file(g_Path, i, g_Line, charsmax(g_Line), g_Len); i++){ if(!g_Len || !g_Line[0] || g_Line[0] == ';'){ continue; } parse(g_Line, g_SoundPath, charsmax(g_SoundPath), g_Name, charsmax(g_Name), g_Team, charsmax(g_Team)); new g_Value = strlen(g_SoundPath) - 4; log_amx("Path: %s | Title: %s | Team: %s | Format: %s", g_SoundPath, g_Name, g_Team, g_SoundPath[ g_Value ]); if(equal(g_SoundPath[ g_Value ], ".mp3") || equal(g_SoundPath[ g_Value ], ".wav")){ if(equal(g_SoundPath[ g_Value ], ".mp3")){ format(g_SoundPath, charsmax(g_SoundPath), "sound/%s", g_SoundPath); precache_generic(g_SoundPath); } else{ precache_sound(g_SoundPath); } /* Check team */ if(equal(g_Team, "CT")){ ArrayPushString(g_PathCT, g_SoundPath); ArrayPushString(g_SoundNameCT, g_Name); } else if(equal(g_Team, "TT")){ ArrayPushString(g_PathTT, g_SoundPath); ArrayPushString(g_SoundNameTT, g_Name); } log_amx("File %s has a good format", g_SoundPath); } else{ log_amx("File %s has a bad format", g_SoundPath); } } } else{ /* Houston, We've Got a Problem. */ set_fail_state("File RoundSound.ini not exist in configs/"); } GetArraySize(); } public GetArraySize(){ g_ArraySize[0] = ArraySize(g_PathCT); g_ArraySize[1] = ArraySize(g_PathTT); g_ArraySize[2] = ArraySize(g_SoundNameCT); g_ArraySize[3] = ArraySize(g_SoundNameTT); } public ShowRsMenu(id){ new g_FormatText[64]; new g_Menu = menu_create("\wRoundSound ustawienia", "MenuChoose"); formatex(g_FormatText, charsmax(g_FormatText), "\yRoundsound: \r[\d%s\r]", g_RoundSound[id] ? "ON" : "OFF"); menu_additem(g_Menu, g_FormatText); menu_additem(g_Menu, "\rOdsluchaj utwory \yCT \d[\yPlaylista\d]"); menu_additem(g_Menu, "\yOdsluchaj utwory \rTT \d[\rPlaylista\d]"); formatex(g_FormatText, charsmax(g_FormatText), "\rReklamy: \y[\d%s\y]", g_ShowAds[id] ? "ON" : "OFF"); menu_additem(g_Menu, g_FormatText); formatex(g_FormatText, charsmax(g_FormatText), "\yWyswietlanie nazwy \rutworu: \y[\d%s\y]", g_ShowNames[ g_ShowInfo[id] ]); menu_additem(g_Menu, g_FormatText); menu_setprop(g_Menu, MPROP_EXITNAME, "Wyjscie"); menu_display(id, g_Menu); } public MenuChoose(id, g_Menu, g_Item){ if(g_Item == MENU_EXIT){ menu_destroy(g_Menu); return PLUGIN_HANDLED; } switch(g_Item){ case 0:{ g_RoundSound[id] = !g_RoundSound[id]; ColorChat(id, TEAM_COLOR, "[%s]^x04 Roundsound:^x03 %s", g_Prefix, g_RoundSound[id] ? "wlaczony" : "wylaczony"); ShowRsMenu(id); } case 1..2:{ ShowPlaylist(id, g_Item); } case 3:{ g_ShowAds[id] = !g_ShowAds[id]; ColorChat(id, TEAM_COLOR, "[%s]^x04 Reklamy:^x03 %s", g_Prefix, g_ShowAds[id] ? "wlaczone" : "wylaczone"); ShowRsMenu(id); } case 4:{ if(g_ShowInfo[id] >= 2){ g_ShowInfo[id] = -1; } g_ShowInfo[id]++; ShowRsMenu(id); } } menu_destroy(g_Menu); return PLUGIN_HANDLED; } public ShowPlaylist(id, g_Type){ new g_FormatText[64], g_Name[96]; formatex(g_FormatText, charsmax(g_FormatText), "Playlista \d%s", g_Type == 1 ? "CT" : "TT"); new g_Menu = menu_create(g_FormatText, "PlaylistChoose"); switch(g_Type){ case 1:{ for(new g_Item = 0; g_Item < g_ArraySize[2]; g_Item++){ ArrayGetString(g_SoundNameCT, g_Item, g_Name, charsmax(g_Name)); menu_additem(g_Menu, g_Name); } } case 2:{ for(new g_Item = 0; g_Item < g_ArraySize[3]; g_Item++){ ArrayGetString(g_SoundNameTT, g_Item, g_Name, charsmax(g_Name)); menu_additem(g_Menu, g_Name); } } } g_PlaylistType = g_Type; menu_setprop(g_Menu, MPROP_BACKNAME, "Powrot"); menu_setprop(g_Menu, MPROP_NEXTNAME, "Dalej"); menu_setprop(g_Menu, MPROP_EXITNAME, "Wyjscie"); menu_setprop(g_Menu, MPROP_NUMBER_COLOR, "\r"); menu_display(id, g_Menu); } public PlaylistChoose(id, g_Menu, g_Item){ if(g_Item == MENU_EXIT){ menu_destroy(g_Menu); return PLUGIN_HANDLED; } new g_SoundPath[128]; ArrayGetString(g_PlaylistType == 1 ? g_PathCT : g_PathTT, g_Item, g_SoundPath, charsmax(g_SoundPath)); new g_Format = strlen(g_SoundPath) - 4; if(equal(g_SoundPath[ g_Format ], ".mp3")){ client_cmd(id, "mp3 play %s", g_SoundPath); } else{ client_cmd(id, "spk %s", g_SoundPath); } ShowPlaylist(id, g_PlaylistType); return PLUGIN_CONTINUE; } public ShowLastSong(id){ if(g_FirstPlay){ ColorChat(id, TEAM_COLOR, "[%s]^x04 Ostatni utwor:^x03 %s", g_Prefix, g_LastSong); } else{ ColorChat(id, TEAM_COLOR, "[%s]^x04 Nie zostala odegrana zadna^x03 piosenka!", g_Prefix); } } public RoundStart(){ g_MusicPlaying = false; } public PlaySoundTT(){ CheckMusic(1); } public PlaySoundCT(){ CheckMusic(2); } public CheckMusic(g_Type){ if(!g_MusicPlaying){ RandMusic(g_Type); g_MusicPlaying = true; } } public RandMusic(g_Type){ if(!g_FirstPlay){ g_FirstPlay = true; } new g_SoundPath[128], g_SoundName[128], g_Name[96], g_Format, g_FileFormat; switch(g_Type){ case 1:{ if(g_RandomMusic){ g_ValueTeam[0] = random(g_ArraySize[1]); } else{ g_ValueTeam[0]++; if(g_ValueTeam[0] >= g_ArraySize[1]){ g_ValueTeam[0] = 0; } } ArrayGetString(g_PathTT, g_ValueTeam[0], g_SoundPath, charsmax(g_SoundPath)); ArrayGetString(g_SoundNameTT, g_ValueTeam[0], g_Name, charsmax(g_Name)); } case 2:{ if(g_RandomMusic){ g_ValueTeam[1] = random(g_ArraySize[0]); } else{ g_ValueTeam[1]++; if(g_ValueTeam[1] >= g_ArraySize[0]){ g_ValueTeam[1] = 0; } } ArrayGetString(g_PathCT, g_ValueTeam[1], g_SoundPath, charsmax(g_SoundPath)); ArrayGetString(g_SoundNameCT, g_ValueTeam[1], g_Name, charsmax(g_Name)); } } /* if(equal(g_LastSoundPath, g_SoundPath)){ RandMusic(g_Type); return PLUGIN_HANDLED; } */ copy(g_LastSong, charsmax(g_LastSong), g_Name); g_Format = strlen(g_SoundPath) - 4; if(equal(g_SoundPath[ g_Format ], ".mp3")){ g_FileFormat = 1; } else{ g_FileFormat = 2; } formatex(g_SoundName, charsmax(g_SoundName), "Teraz gramy: %s", g_Name); for(new i = 1; i <= g_MaxPlayers; i++){ if(is_user_connected(i) && g_RoundSound[i]){ switch(g_FileFormat){ case 1:{ client_cmd(i, "mp3 play %s", g_SoundPath); } case 2:{ client_cmd(i, "spk %s", g_SoundPath); } } switch(g_ShowInfo[i]){ case Tutor_Msg:{ tutorMake(i, TUTOR_GREEN, 3.0, g_SoundName); } case Chat_Msg:{ ColorChat(i, TEAM_COLOR, "[%s]^x04 %s", g_Prefix, g_SoundName); } } } } return PLUGIN_CONTINUE; } public ShowAds(){ for(new i = 1; i <= g_MaxPlayers; i++){ if(is_user_connected(i) && g_ShowAds[i]){ switch(random(4)){ case 0:{ ColorChat(i, TEAM_COLOR, "[%s]^x04 Chcesz %s roundsound? Napisz^x03 /roundsound ^x04lub^x03 /rs", g_Prefix, g_RoundSound[i] ? "wylaczyc" : "wlaczyc"); } case 1:{ ColorChat(i, TEAM_COLOR, "[%s]^x04 Podobala Ci sie ostatnia piosenka, a nie pamietasz jej nazwy? Napisz^x03 /last", g_Prefix); } case 2:{ ColorChat(i, TEAM_COLOR, "[%s]^x04 Chcesz posluchac utworow CT / TT? Napisz^x03 /roundsound ^x04lub^x03 /rs", g_Prefix); } case 3:{ ColorChat(i, TEAM_COLOR, "[%s]^x04 Chcesz wylaczyc reklamy? Napisz^x03 /roundsound ^x04lub^x03 /rs", g_Prefix); } } } } } public plugin_end(){ ArrayDestroy(g_PathCT); ArrayDestroy(g_PathTT); ArrayDestroy(g_SoundNameCT); ArrayDestroy(g_SoundNameTT); }
Aaaa no widzisz, jak się myśli o du*** Maryni to tak jest

#696944 Obserwowanie wrogów po smierci
Napisane przez Wiciu1987
w 11.04.2015 13:23
#693673 Auto-Respawn nie działa
Napisane przez Wiciu1987
w 21.03.2015 10:55
#692976 CTF bez broni?
Napisane przez Wiciu1987
w 15.03.2015 20:04
#692671 [ROZWIĄZANE] Zmiana mapy dopiero po zwycięstwie i brak vote
Napisane przez Wiciu1987
w 14.03.2015 11:51
#691603 Potrzebuję pewnych pluginów
Napisane przez Wiciu1987
w 06.03.2015 19:08
http://amxx.pl/vipgenerator/ <Tutaj sobie zrobisz VIPa
http://amxx.pl/topic...hron-parachute/ <Spadochron
http://amxx.pl/topic/57494-licznik-c4/ <C4 i tam masz do wyboru
http://amxx.pl/topic...-grenade-trail/ <Smuga za granatem
http://amxx.pl/topic...kam-pluingu-rs/ <Reset statystyk
http://amxx.pl/topic/661-back-weapons/ >Broń na plecach
Resztę sobie znajdziesz w google.pl
#688648 Jak konsole wyboru broni DeathMatch?
Napisane przez Wiciu1987
w 15.02.2015 21:20
#688619 [KOSZ] Bardzo poważny problem z serwerem.
Napisane przez Wiciu1987
w 15.02.2015 19:40
#680574 Problem z odbanowaniem
Napisane przez Wiciu1987
w 04.01.2015 10:37
- AMXX.pl: Support AMX Mod X i SourceMod
- → Przeglądanie profilu: Reputacja: Wiciu1987
- Regulamin