Raised This Month: $ Target: $400
 0% 

[CSS] RoundSound MP3 Fixed


Post New Thread Reply   
 
Thread Tools Display Modes
Author
The Nameless One
Junior Member
Join Date: Apr 2014
Location: Nicosia, Cyprus
Plugin ID:
4177
Plugin Version:
1.2.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A fixed version of RoundSound++. You are now able to use MP3.
    Old 04-25-2014 , 14:55   [CSS] RoundSound MP3 Fixed
    Reply With Quote #1

    Description:
    A fixed version of RoundSound++. You are now able to use MP3.

    CVars:
    The version of RoundSound++ MP3 Fixed - sm_roundsound_version
    Enables or Disables the plugin - sm_roundsound_enable


    Installation:
    Copy the files of RoundSound++MP3Fixed to your cstrike folder

    Extra:
    Add sounds to cstrike/sound/misc/round/
    The sound needs to be 44.100 khz and
    mp3 format

    Credits:
    Originally Posted by credits
    Original Counter-Strike: 1.6 AMXX Plugin Creator PaintLancer
    New CS: Source Creator TanaToS aka ANTiCHRiST from ES, ESP
    Thanks to NAT for his help
    Shit on shoe for his source code.

    Note:
    Any feedback would be appreciated!


    Attached Files
    File Type: zip RoundSound++MP3Fixed.zip (9.0 KB, 2384 views)

    Last edited by The Nameless One; 05-02-2014 at 12:32.
    The Nameless One is offline
    Send a message via Skype™ to The Nameless One
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 04-25-2014 , 15:15   Re: [CSS] RoundSound MP3 Fixed
    Reply With Quote #2

    1. Your font size is violating the forum rules.
    2. There is no plugin attached.
    3. Duplicates existing plugin functionality, according to your list of features.
    4. You supposedly changed absolutely nothing and were going to post the version posted here as noted in your credits.
    5. Even if you did change anything it wouldn't have been significant enough to warrant a new thread.
    6. If everyone decided to post a "fixed" version of something this place would be a mess.

    Last edited by Sreaper; 04-25-2014 at 15:45.
    Sreaper is offline
    The Nameless One
    Junior Member
    Join Date: Apr 2014
    Location: Nicosia, Cyprus
    Old 04-25-2014 , 15:34   Re: [CSS] RoundSound MP3 Fixed
    Reply With Quote #3

    Actually I have...

    Last edited by The Nameless One; 04-25-2014 at 15:41.
    The Nameless One is offline
    Send a message via Skype™ to The Nameless One
    The Nameless One
    Junior Member
    Join Date: Apr 2014
    Location: Nicosia, Cyprus
    Old 04-25-2014 , 15:42   Re: [CSS] RoundSound MP3 Fixed
    Reply With Quote #4

    But can you please tell me how to delete this... I cant find anywhere the delete button
    The Nameless One is offline
    Send a message via Skype™ to The Nameless One
    andre2843
    Member
    Join Date: Apr 2011
    Old 04-27-2014 , 00:36   Re: [CSS] RoundSound MP3 Fixed
    Reply With Quote #5

    this plugin not work in css
    andre2843 is offline
    The Nameless One
    Junior Member
    Join Date: Apr 2014
    Location: Nicosia, Cyprus
    Old 04-30-2014 , 11:51   Re: [CSS] RoundSound MP3 Fixed
    Reply With Quote #6

    Quote:
    Originally Posted by andre2843 View Post
    this plugin not work in css
    What do you mean, it does not work?
    Please provide details
    The Nameless One is offline
    Send a message via Skype™ to The Nameless One
    mazdarx8
    Veteran Member
    Join Date: Aug 2014
    Old 08-05-2014 , 15:07   Re: [CSS] RoundSound MP3 Fixed
    Reply With Quote #7

    Dont work. I add new sounds:
    /* *
    * ANTiCHRiST RoundSound++
    * -------------------------
    * Changelog
    * changelog.txt
    * Readme
    * readme.txt
    * Credits
    * Old CS 1.6 Plugin
    * by "PaintLancer"
    * Thxs
    * To NAT for his help!
    * -------------------------
    * by TanaToS aka ANTiCHRiST
    * Edited by: The Nameless One
    */
    #include <sourcemod>
    #include <sdktools>
    #include <sdktools_sound>
    #include <console>
    #include <string>

    #pragma semicolon 1

    #define PLUGIN_VERSION "1.1.0.0 Fixed"
    #define MAX_FILE_LEN 256

    new Handle:g_hEnabled = INVALID_HANDLE;
    new bool:g_bEnabled = true;

    public Plugin:myinfo = {
    name = "RoundSound",
    author = "ANTiCHRiST",
    description = "Plays a Sound at RoundEnd.",
    version = PLUGIN_VERSION,
    url = "http://passionfighters.de"
    };

    public OnPluginStart() {
    CreateConVar("sm_roundsound_version", PLUGIN_VERSION, "RoundSound++ version.", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FC VAR_NOTIFY);
    g_hEnabled = CreateConVar("sm_roundsound_enable", "1", "RoundSound++ Enable/Disable CVar.", FCVAR_PLUGIN|FCVAR_NOTIFY);

    HookEvent("round_end", EventRoundEnd);
    HookConVarChange(g_hEnabled, CVarEnabled);
    }

    public OnMapStart()
    {
    decl String:tewin_snd1[MAX_FILE_LEN];
    decl String:tewin_snd2[MAX_FILE_LEN];
    decl String:tewin_snd3[MAX_FILE_LEN];
    decl String:tewin_snd4[MAX_FILE_LEN];
    decl String:tewin_snd5[MAX_FILE_LEN];
    decl String:tewin_snd6[MAX_FILE_LEN];
    decl String:tewin_snd7[MAX_FILE_LEN];
    decl String:tewin_snd8[MAX_FILE_LEN];
    decl String:tewin_snd9[MAX_FILE_LEN];
    decl String:tewin_snd10[MAX_FILE_LEN];
    decl String:ctwin_snd1[MAX_FILE_LEN];
    decl String:ctwin_snd2[MAX_FILE_LEN];
    decl String:ctwin_snd3[MAX_FILE_LEN];
    decl String:ctwin_snd4[MAX_FILE_LEN];
    decl String:ctwin_snd5[MAX_FILE_LEN];
    decl String:ctwin_snd6[MAX_FILE_LEN];
    decl String:ctwin_snd7[MAX_FILE_LEN];
    decl String:ctwin_snd8[MAX_FILE_LEN];
    decl String:ctwin_snd9[MAX_FILE_LEN];
    decl String:ctwin_snd10[MAX_FILE_LEN];

    Format(tewin_snd1, sizeof(tewin_snd1), "sound/misc/round/endround04.mp3");
    Format(tewin_snd2, sizeof(tewin_snd2), "sound/misc/round/endround05.mp3");
    Format(tewin_snd3, sizeof(tewin_snd3), "sound/misc/round/endround06.mp3");
    Format(tewin_snd4, sizeof(tewin_snd4), "sound/misc/round/endround07.mp3");
    Format(tewin_snd5, sizeof(tewin_snd5), "sound/misc/round/endround08.mp3");
    Format(tewin_snd6, sizeof(tewin_snd6), "sound/misc/round/endround09.mp3");
    Format(tewin_snd7, sizeof(tewin_snd7), "sound/misc/round/endround010.mp3");
    Format(tewin_snd8, sizeof(tewin_snd, "sound/misc/round/endround011.mp3");
    Format(tewin_snd9, sizeof(tewin_snd9), "sound/misc/round/endround012.mp3");
    Format(tewin_snd10, sizeof(tewin_snd10), "sound/misc/round/endround013.mp3");
    Format(ctwin_snd1, sizeof(ctwin_snd1), "sound/misc/round/endround014.mp3");
    Format(ctwin_snd2, sizeof(ctwin_snd2), "sound/misc/round/endround015.mp3");
    Format(ctwin_snd3, sizeof(ctwin_snd3), "sound/misc/round/endround016.mp3");
    Format(ctwin_snd4, sizeof(ctwin_snd4), "sound/misc/round/endround017.mp3");
    Format(ctwin_snd5, sizeof(ctwin_snd5), "sound/misc/round/endround018.mp3");
    Format(ctwin_snd6, sizeof(ctwin_snd6), "sound/misc/round/endround019.mp3");
    Format(ctwin_snd7, sizeof(ctwin_snd7), "sound/misc/round/endround020.mp3");
    Format(ctwin_snd8, sizeof(ctwin_snd, "sound/misc/round/endround021.mp3");
    Format(ctwin_snd9, sizeof(ctwin_snd9), "sound/misc/round/endround022.mp3");
    Format(ctwin_snd10, sizeof(ctwin_snd10), "sound/misc/round/endround023.mp3");

    if(FileExists(tewin_snd1) && FileExists(tewin_snd2) && FileExists(tewin_snd3) && FileExists(tewin_snd4)&&FileExists(tewin_snd5 )&&FileExists(tewin_snd6)&&FileExists(tewin_s nd7)&&FileExists(tewin_snd&&FileExists(tewi n_snd9)&&FileExists(tewin_snd10)&&FileExists( ctwin_snd1) && FileExists(ctwin_snd2) &&FileExists(ctwin_snd3) &&FileExists(ctwin_snd4) && FileExists(ctwin_snd5) &&FileExists(ctwin_snd6) &&FileExists(ctwin_snd7) &&FileExists(ctwin_snd &&FileExists(ctwin_snd9) &&FileExists(ctwin_snd10)) {
    AddFileToDownloadsTable(tewin_snd1);
    AddFileToDownloadsTable(tewin_snd2);
    AddFileToDownloadsTable(tewin_snd3);
    AddFileToDownloadsTable(tewin_snd4);
    AddFileToDownloadsTable(tewin_snd5);
    AddFileToDownloadsTable(tewin_snd6);
    AddFileToDownloadsTable(tewin_snd7);
    AddFileToDownloadsTable(tewin_snd;
    AddFileToDownloadsTable(tewin_snd9);
    AddFileToDownloadsTable(tewin_snd10);
    AddFileToDownloadsTable(ctwin_snd1);
    AddFileToDownloadsTable(ctwin_snd2);
    AddFileToDownloadsTable(ctwin_snd3);
    AddFileToDownloadsTable(ctwin_snd4);
    AddFileToDownloadsTable(ctwin_snd5);
    AddFileToDownloadsTable(ctwin_snd6);
    AddFileToDownloadsTable(ctwin_snd7);
    AddFileToDownloadsTable(ctwin_snd;
    AddFileToDownloadsTable(ctwin_snd9);
    AddFileToDownloadsTable(ctwin_snd10);

    PrecacheSound("misc/round/endround04.mp3", true);
    PrecacheSound("misc/round/endround05.mp3", true);
    PrecacheSound("misc/round/endround06.mp3", true);
    PrecacheSound("misc/round/endround07.mp3", true);
    PrecacheSound("misc/round/endround08.mp3", true);
    PrecacheSound("misc/round/endround09.mp3", true);
    PrecacheSound("misc/round/endround010.mp3", true);
    PrecacheSound("misc/round/endround011.mp3", true);
    PrecacheSound("misc/round/endround012.mp3", true);
    PrecacheSound("misc/round/ctwinnar013.mp3", true);
    PrecacheSound("misc/round/endround014.mp3", true);
    PrecacheSound("misc/round/endround015.mp3", true);
    PrecacheSound("misc/round/endround016.mp3", true);
    PrecacheSound("misc/round/endround017.mp3", true);
    PrecacheSound("misc/round/endround018.mp3", true);
    PrecacheSound("misc/round/endround019.mp3", true);
    PrecacheSound("misc/round/endround020.mp3", true);
    PrecacheSound("misc/round/endround021.mp3", true);
    PrecacheSound("misc/round/endround022.mp3", true);
    PrecacheSound("misc/round/endround023.mp3", true);

    }
    else {
    LogError("Not all sound files exists.");
    LogError("Unload the Plugin.");
    ServerCommand("sm plugins unload \"RoundSound++.smx\"");
    }
    }

    public OnConfigsExecuted() {
    if(GetConVarBool(g_hEnabled)) {
    g_bEnabled = true;
    }
    else if(!GetConVarBool(g_hEnabled)) {
    g_bEnabled = false;
    }
    else {
    g_bEnabled = true;
    LogError("False value plugin continued");
    }
    }

    public CVarEnabled(Handle:convar, const StringldValue[], const String:newValue[]) {
    if(GetConVarBool(g_hEnabled)) {
    g_bEnabled = true;
    }
    else if(!GetConVarBool(g_hEnabled)) {
    g_bEnabled = false;
    }
    else {
    g_bEnabled = true;
    LogError("False value plugin continued");
    }
    }

    public EventRoundEnd(Handle:event, const String:name[], bool:dontBroadcast) {
    new rnd_sound = GetRandomInt(1, 10);
    new ev_winner = GetEventInt(event, "winner");
    if(g_bEnabled) {
    if(ev_winner == 2) {
    if(rnd_sound == 1) {
    EmitSoundToAll("misc/round/endround04.mp3");
    }
    else if(rnd_sound == 2) {
    EmitSoundToAll("misc/round/endround05.mp3");
    }
    else if(rnd_sound == 3) {
    EmitSoundToAll("misc/round/endround06.mp3");
    }
    else if(rnd_sound == 4) {
    EmitSoundToAll("misc/round/endround07.mp3");
    }
    else if(rnd_sound == 5) {
    EmitSoundToAll("misc/round/endround08.mp3");
    }
    else if(rnd_sound == 6) {
    EmitSoundToAll("misc/round/endround09.mp3");
    }
    else if(rnd_sound == 7) {
    EmitSoundToAll("misc/round/endround10.mp3");
    }
    else if(rnd_sound == {
    EmitSoundToAll("misc/round/endround011.mp3");
    }
    else if(rnd_sound == 9) {
    EmitSoundToAll("misc/round/endround012.mp3");
    }
    else if(rnd_sound == 10) {
    EmitSoundToAll("misc/round/endround013.mp3");
    }
    else {
    LogError("Ramdom Sound CVar Error.");
    }
    }
    else if(ev_winner == 3) {
    if(rnd_sound == 1) {
    EmitSoundToAll("misc/round/endround014.mp3");
    }
    else if(rnd_sound == 2) {
    EmitSoundToAll("misc/round/endround015.mp3");
    }
    else if(rnd_sound == 3) {
    EmitSoundToAll("misc/round/endround016.mp3");
    }
    else if(rnd_sound == 4) {
    EmitSoundToAll("misc/round/endround017.mp3");
    }
    else if(rnd_sound == 5) {
    EmitSoundToAll("misc/round/endround018.mp3");
    }
    else if(rnd_sound == 6) {
    EmitSoundToAll("misc/round/endround019.mp3");
    }
    else if(rnd_sound == 7) {
    EmitSoundToAll("misc/round/endround020.mp3");
    }
    else if(rnd_sound == {
    EmitSoundToAll("misc/round/endround021.mp3");
    }
    else if(rnd_sound == 9) {
    EmitSoundToAll("misc/round/endround022.mp3");
    }
    else if(rnd_sound == 10) {
    EmitSoundToAll("misc/round/endround023.mp3");
    }
    else {
    LogError("Ramdom Sound CVar Error.");
    }
    }
    else {
    LogError("No team has win the round.");
    }
    }
    }



    Compile it..but it dont load the sounds.
    Sounds are in misc/round
    mazdarx8 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 04:28.


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