Witam mam problem chciałbym zmienić dzwięk po podłożeniu bomby ale nie wiem jak to zrobić... posiadam amx 1.70 na serwerze vgame.pl i chciałbym zeby nowy dzięk sciągał się wszystkim wchodzącym na serwer. Pozdrawiam
|
|
Witam mam problem chciałbym zmienić dzwięk po podłożeniu bomby ale nie wiem jak to zrobić... posiadam amx 1.70 na serwerze vgame.pl i chciałbym zeby nowy dzięk sciągał się wszystkim wchodzącym na serwer. Pozdrawiam
znajdz se kod do pluginu daj zmien nazwe na muzyke ktora chcesz i masz ;p
MAsz
Muzyka na 10 sekund przed wybuchem bomby
Zmień sobie nazwę muzyczki na swoja i przekompiluj sma na amxx :D
PozdRo
na ale w jakim pluginie jest zmiana pliku muzycznego jak podłozy się pake i jak wybucha?? z góry dz za odpowiedz
Jak ściągnołes to co ci podałem, to wchodzisz w plik z rozszerzeniem .sma , następnie zmieniasz nazwe muzyczki na swoją . Gdy juz to zrobisz wchodZisz na AMX Mod X - Half-Life Scripting for Pros! i przekomplikowujesz swoje .sma na amxx . Dzwięk wgrywasz do sound/misc
zrobilem wszystko jak trzeba ale nie dziala ;/
Pokaż to twoje sma ( to z tym twoiim dzwiękiem) , albo napisz jak sie ma nazywać ta twoja muzyczka to ja ci przerobie ..
Konfigurujesz w pliku configs/bombsounds.ini np.
rzecz jasna pierwszy dźwięk do podłożenia bomby drugi po rozbrojeniu :)Kod:planted "misc/bombapodlozona.wav" defused "misc/bombarozbrojona.wav"
http://cs-puchatek.pl/files/pluginy/bombsounds.rar
to jest moje sma .. dzwiek wgrany jest do cstricke/sound/misc/Bomba.wav bodajze pozdrawiam.Kod:#include <amxmodx> #include <csx> #define PLUGIN "Bomb Sound" #define VERSION "0.1" #define AUTHOR "sEba" #define muzyczka ("misc/Bomba") #define czas 11 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", "misc/Bomba.wav") } } else { set_hudmessage(150, 0, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1); } ShowSyncHudMsg(0, g_msgsync, "C4: %d", g_c4timer); --g_c4timer; } } public plugin_precache() { precache_sound("misc/Bomba.wav") return PLUGIN_CONTINUE }
to też nie działa dodałem wgralem dzięki pobralo mi je ale hmm nie działają w grze pozdrawiam.
Ostatnio edytowane przez tabus16 ; 09-09-2008 o 17:11
w dalszym ciągu nie dzialaja dzieki chociaż w amxmenu mam w 9/5/ włączone... co zrobić z góry dz za odpowiedź
Wgraj ten plugin co napisał ci seba , a to że pierwszym razem ci nie chdziło było zapewne spowodowane tym ze wgrałes dzwięki w formacie mp3 , lub żle skompilowałes .sma
wgralem 3 pluginy juz które mają uruchamiać dzięk ale ani jeden nie działa a reszta pluginów działa dlaczego??
Podam może źrudło pliku:
modules.ini
Kod:;;; ; 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 cstrike csx csrespawn
a tutaj źrudło pliku plugins.ini
niektóre mody nie działają pomimo iź wszystko jest wgrane na serwer zgodnie z instrukcją pozdrawiam.Kod:; AMX Mod X plugins ; Admin Base - Always one has to be activated 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) ; 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 akceptacja.amxx ; Akceptacja zasad admin_check.amxx ; say /admins sprawdza adminow PL ad_manager.amxx ; *reklamy* advanced_slowmo.amxx ; Spowalnia przy zabiciu amx_ip.amxx ; Sprawdzanie IP danego gracza admin_gag.amxx ; Uciszanie graczy auto_restart_knives.amxx ; 45s rr nuzowa high_ping_kicker.amxx ; Kopanie graczy z wysokim pingiem votekickbanmenu13.amxx ; amx_votemenu glosowanie na kick/ban ptb.amxx ; Wyrownywanie skladow realnadedrops.amxx ; Gracz wyrzuca wszystkie bronie, w tym granaty :] weapon_icon.amxx ; Pokazuje ikone broni ktora aktualnie uzywamy join_leave.amxx ; Pokazuje kto odchodzi a kto wbija speclist.amxx ; Pokazuje kto cie obserwuje na specu serversay.amxx ; *reklamy* knifekill.amxx ; Dziwiek po zabiciu nozem ubanmenu.amxx ; amx_unbanmenu menu banow polski_cs.amxx ; Spolszczone napisy "Terrorist Win!" "Bomb has been planted" itd. gamenamechanger.amxx ; ^^ descriptive_fire_in_the_hole_PL.amxx ; Pokazuje typ rzuconego granatu PL amx_gore_ultimate.amxx ; Duzo Krwi sillyc4.amxx ; Mozna przykleić bombe do ściany ultimate_sounds_PL.amxx ; Polskie multikill itd. cd-room.amxx ; do wkurwia*** amx_opencd nick (otwiera cd-rom) amx_closecd nick(zamyka cd-rom) :D amx_super.amxx ; Amx Super + Extensions chicken_bombs.amxx ; zzzzz frostnades.amxx ; zamrazajace granaty cut_the_right.amxx ; KABELKI! bomba_explode_sound.amxx
a tutaj jeszcze plik amxx.cfg
Kod:// AMX Mod X Configuration File 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: "Witamy na %hostname% -- Ten Serwer Używa AmxModX By PrYcZa" 600 amx_scrollmsg "Witamy na %hostname% -- AMX X By PrYcZa v1.0" 600 // Center typed colored messages (last parameter is a color in RRRGGGBBB format) // // Default values: "Welcome to %hostname%" "000255100" // "AMXX By PrYcZa" "000100255" amx_imessage "Witamy na %hostname%" "000255100" amx_imessage "Hahahahahaha" "000100255" amx_imessage "Na serwerze gramy FAIR PLAY !!" "000100255" // Frequency in seconds of colored messages // // Default value: 180 amx_freq_imessage 180 // 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 1 // 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 0 // 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 // 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 automatically inserted as the first option. // Default values: 1 5 amx_plmenu_slapdmg 0 1 5 10 25 // AFK KISS afk_kicktime 100 afk_slaytime 60 afk_minplayers 8 afk_adminimmunity 1 afk_slayplayers 1 afk_adminkickimmunity 1 afk_options 1 afk_show_counter 0 afk_rename 0 afk_speckick 1 afk_speckicktime 50 // Terro rozmawia z Counter przez mikrofon amx_alltalk 0 // maskowanie admina amx_showactivity 1 // auto_restart_knives.amxx amx_auto_rr_knives 1 // 1 - aktywuje plugin, 0 - wylancza plugin amx_auto_rr_time 45 // po jakim czasie (w sekundach) ma być rr // sXe Injected // czy sxei działa także z połączeniu z graczami z sieci lokalniej? // tutaj zdefiniuj numer ip serwera w sieci lokalnej (jeśli ma 2 ip, zewn i wewnętrzne) __sxei_internal_ip // czy sxei jest wymagane na serwerze? // 0 - nie, ale będzie się pokazywał graczom nie mającym sxei komunikat żeby zainstalowali, trochę denerwujący. // 1 - tak (domyślne) // -1 - kompletnie deaktywuje działanie pluginu. __sxei_required -1 // automatycznie sprawdzaj czy jest aktualizacja sxei server na oficjalniej stronie // 0 - nie, 1 - tak __sxei_srv_upg 1
Ostatnio edytowane przez tabus16 ; 10-09-2008 o 17:41
Ten plugin ode mnie działa na 100%
Nom on pewnie coś żle wgrał ^^ albo z serwer coś nie tak ^^
PozdRo :D
wszystko w 100 %jest dobrze wgrane plik bomba.wav jest pobierany przy wejsciu na serwer... ale nie dziala...
to jak pomoże ktoś??
| « Problem z AmxBans | problem z mini bans » |