AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   End Round Sounds (https://forums.alliedmods.net/showthread.php?t=6784)

OciXCrom 02-16-2017 14:01

Re: End Round Sounds
 
Well, if you used the same names after you converted the sounds, the old ones are probably still in your game directory, aren't they?

ZEDD_Intensity 02-17-2017 22:09

Re: End Round Sounds
 
Quote:

Originally Posted by OciXCrom (Post 2495933)
Well, if you used the same names after you converted the sounds, the old ones are probably still in your game directory, aren't they?

Ofcourse not! I would not be that dumb to keep the files that get my plugin broken.

Anyways,
Code:

BUILD 6153 SERVER (0 CRC)
Server # 1
Missing RIFF/WAVE chunks
Missing RIFF/WAVE chunks
Missing RIFF/WAVE chunks

I think this error is getting insane. I have NO idea why is this happening.

I had a NON-STEAM Server before, And it worked like a Charm in Seconds! This time, something's going wrong. I also tried putting roundsound.amxx on the Top of 3rd Party plugins in plugins.ini, but

All the console spams is the Missing thing.

I can't really release the Final Edition of the server because of this error, and I'll sure need someone's help to get this fixed.

NOTE : I'm Probably starting a NON-STEAM DEATHRUN server later, So, If it won't work there as well, Expect me in your replies lol.

Waiting for cooperation.

Kind regards,
ZEDD

OciXCrom 02-18-2017 07:51

Re: End Round Sounds
 
Try using my plugin. You need to put the sounds in configs/REMusic.ini. If it doesn't work - you did NOT convert them properly or you have the old ones in your game/server/downloadurl, so at least change their names.

Code:
#include <amxmodx> #include <amxmisc> #include <nvault> #define PLUGIN_VERSION "2.2" new const g_szPrefix[] = "^4[REMusic]^1" new Array:g_aSounds,     g_iArraySize,     g_iVault,     g_iSound,     g_pRandom,     g_msgSayText     new g_iBlocked[33] enum {     TYPE_INVALID = 0,     TYPE_WAV,     TYPE_MP3 } public plugin_init() {     register_plugin("Round End Music", PLUGIN_VERSION, "OciXCrom")     register_cvar("REMusic", PLUGIN_VERSION, FCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)     register_logevent("OnRoundEnd", 2, "1=Round_End")     register_clcmd("say /ers", "cmdMute")     register_clcmd("say_team /ers", "cmdMute")     g_pRandom = register_cvar("remusic_random", "1")     g_msgSayText = get_user_msgid("SayText")     g_iVault = nvault_open("REMusic") } public plugin_precache() {     g_aSounds = ArrayCreate(32, 1)     fileRead() } public plugin_end()     ArrayDestroy(g_aSounds) public client_putinserver(id) {     g_iBlocked[id] = 0     UseVault(id, 1) } public client_disconnect(id)     UseVault(id, 0) UseVault(id, iType) {            new szAuthId[32], szData[2]     get_user_authid(id, szAuthId, charsmax(szAuthId))         switch(iType)     {         case 0:         {             num_to_str(g_iBlocked[id], szData, charsmax(szData))             nvault_set(g_iVault, szAuthId, szData)         }         case 1:         {             nvault_get(g_iVault, szAuthId, szData, charsmax(szData))             g_iBlocked[id] = str_to_num(szData)         }     } }     public OnRoundEnd() {     new szSound[32], iPlayers[32], iPnum, blRandom = get_pcvar_num(g_pRandom) == 1     ArrayGetString(g_aSounds, blRandom ? random(g_iArraySize) : g_iSound, szSound, charsmax(szSound))     get_players(iPlayers, iPnum)         new iType = get_sound_type(szSound)         for(new i; i < iPnum; i++)     {         if(g_iBlocked[iPlayers[i]] == 1)             ColorChat(iPlayers[i], "Round end sounds are turned off for you. Type ^3/ers ^1to enable them.")         else             client_cmd(iPlayers[i], "%s%s", iType == TYPE_WAV ? "spk " : "mp3 play ", szSound)     }         if(!blRandom)     {         g_iSound = g_iSound == g_iArraySize - 1 ? 0 : g_iSound + 1         client_print(0, print_chat, "%i", g_iSound)     } } public cmdMute(id) {     g_iBlocked[id] = (g_iBlocked[id] == 1) ? 0 : 1     ColorChat(id, "Round end sounds have been ^3turned %s^1.", (g_iBlocked[id] == 1) ? "off" : "on")     return PLUGIN_HANDLED } fileRead() {     new szConfigsName[256], szFilename[256]     get_configsdir(szConfigsName, charsmax(szConfigsName))     formatex(szFilename, charsmax(szFilename), "%s/REMusic.ini", szConfigsName)     new iFilePointer = fopen(szFilename, "rt")         if(iFilePointer)     {         new szData[128]                 while(!feof(iFilePointer))         {             fgets(iFilePointer, szData, charsmax(szData))             trim(szData)                         switch(szData[0])             {                 case EOS, ';': continue                 default:                 {                     switch(get_sound_type(szData))                     {                         case TYPE_WAV: precache_sound(szData)                         case TYPE_MP3:                         {                             format(szData, charsmax(szData), "sound/%s", szData)                             precache_generic(szData)                         }                         case TYPE_INVALID:                         {                             log_amx("Skipping invalid sound file: %s", szData)                             continue                         }                     }                                         ArrayPushString(g_aSounds, szData)                 }             }            }                 g_iArraySize = ArraySize(g_aSounds)         fclose(iFilePointer)     } } get_sound_type(szSound[]) {     if(szSound[strlen(szSound) - 4] != '.')         return TYPE_INVALID             switch(szSound[strlen(szSound) - 1])     {         case 'v', 'V': return TYPE_WAV         case '3': return TYPE_MP3     }         return TYPE_INVALID } ColorChat(const id, const szInput[], any:...) {     new iPlayers[32], iCount = 1     static szMessage[191]     vformat(szMessage, charsmax(szMessage), szInput, 3)     format(szMessage[0], charsmax(szMessage), "%s %s", g_szPrefix, szMessage)         replace_all(szMessage, charsmax(szMessage), "!g", "^4")     replace_all(szMessage, charsmax(szMessage), "!n", "^1")     replace_all(szMessage, charsmax(szMessage), "!t", "^3")         if(id)         iPlayers[0] = id     else         get_players(iPlayers, iCount, "ch")         for(new i; i < iCount; i++)     {         if(is_user_connected(iPlayers[i]))         {             message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, iPlayers[i])             write_byte(iPlayers[i])             write_string(szMessage)             message_end()         }     } }

yunuss85 02-19-2017 05:43

Re: End Round Sounds
 
T' stealing.
Your CT's radio is not working.
thx for your help

OciXCrom 02-19-2017 08:16

Re: End Round Sounds
 
What?

yunuss85 02-21-2017 12:12

Re: End Round Sounds
 
Some music is not playing.

format: wav, 0,5 sc.

OciXCrom 02-21-2017 12:28

Re: End Round Sounds
 
Read my previous comments.

Internet Exploder 05-26-2018 14:37

Re: End Round Sounds
 
i dont hear any sound, does it have a command to play/stop?

rx1983 03-22-2020 10:29

Re: End Round Sounds
 
Quote:

Originally Posted by Arkshine (Post 875709)

trash ?


All times are GMT -4. The time now is 09:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.