Kod:
#include <amxmodx>
new const sounds_ct[][] = {"sound/misc/netshos.mp3","sound/misc/chalos.mp3"}
new const sounds_terro[][] = {"sound/misc/neting.mp3","sound/misc/nesthos.mp3"}
public plugin_init()
{
register_plugin("RoundSoundy","1","Sal")
register_event("SendAudio", "ct", "a", "2&%!MRAD_ctwin")
register_event("SendAudio", "terro", "a", "2&%!MRAD_terwin")
}
public plugin_precache()
{
new i
for(i = 0; i < sizeof sounds_ct; i++)
precache_generic(sounds_ct[i])
new u
for(u = 0; u < sizeof sounds_terro; u++)
precache_generic(sounds_terro[u])
}
public ct()
{
client_cmd(0,"stopsound")
client_cmd(0, "mp3 stop")
client_cmd(0, "mp3 play %s", sounds_ct[random_num(0, charsmax(sounds_ct))] )
}
public terro()
{
client_cmd(0,"stopsound")
client_cmd(0, "mp3 stop")
client_cmd(0, "mp3 play %s", sounds_terro[random_num(0, charsmax(sounds_terro))] )
}
Muzyka po prostu nie rusza.
Szczegóły co do muzyki:
Bitrate: 128
Sample Size: 16
Sample Rate: 44,1
Stereo
Albo mi powiedzcie jak przekonwertować dźwięki, albo poskładajcie mi te soundy w innym pluginie. Bo próbowałem na wszystkich roundsoundachmp3 jakie znam. Czyli m.in alt_end_round_sound i plugin napisany przez sebe. Było też kilka innych, i na żadnym nie działało.
Daje też zawartość plugins.ini, może inny plugin zawadza?
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
sound_mp3.amxx ; Rsound
mini_bans.amxx ; Powody bana
admin_freelook.amxx ; admin widzi all
amx_super.amxx ; paczka komend dla adma
amx_banconfig.amxx ; ban na konfig amx_banconfig nick czas
amx_super_nospeed.amxx ; super
;amxx_zoom_shop.amxx ; nie wiem
armordrop.amxx ; dropi kamizelke
;blindfury.amxx ; nie wiem
;css_zoom.amxx ; zoom z cs
;dropallweapons.amxx ; dropi wszystko
;easyinfo.amxx ; proste info o rankingu
flashbang.amxx ; aaa piszczy
;kdf.amxx ; I Don't Know
lastround.amxx ; pozwala dokonczyc rounde
M_Antirusher_2.5.amxx ; arasher
mutemenu.amxx ; menu wyciszania
noz_speed.amxx ; speed z nozem
;raty.amxx ; jakies raty
Round_Left.amxx ; nie weim
sprzedaz.amxx ; sprzedaje bron
ultimate_sounds.amxx ; HEAD SHOOT!!
;teammoney.amxx
winik.amxx
unbanmenu.amxx
grenade_trail.amxx
ex.interp.amxx
error.amxx
;dib3.amxx
autoreload_on_newround.amxx
amx_gore2.amxx
advanced_slowmo.amxx
ad_manager.amxx
VIPpart1.amxx
realnadedrops.amxx
descriptive_fire_in_the_hole.amxx
;Antyrash
M_Antirusher.amxx