Raised This Month: $51 Target: $400
 12% 

RoundSound SMX


Post New Thread Reply   
 
Thread Tools Display Modes
Author
R4nd0mT!m3r
Junior Member
Join Date: Apr 2008
Plugin ID:
360
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Unapprover:
    Reason for Unapproving:
    Redundant code (OnMapStart is enough for download tables). No version Cvar, no description of the plugin.
    Old 04-22-2008 , 20:49   RoundSound SMX
    Reply With Quote #1

    RoundSound SMX by TanaToS

    Idea are from a other plugin at cs1.6 roundsound.amxx by PaintLancer, and never seed this on any source mod no eventscript, sourcemod or other then i just start to lern coding for source with eventscript and i made ones for it.

    Installing:

    • cstrike.rar unzip and put in cstrike folder
    OR

    • roundsound.smx -> addons/sourcemod/plugins.smx
    • roundsound.sp -> addons/sourcemod/plugins.sp
    • sounds.rar unzip and put in cstrike folder

    Things To Do:

    • Modify able sounds
    • Enable/Disable Convar
    • User Enable/Disable Function

    Changelog:
    -0.1 - 2.0:
    • - Somthing with EventScripts Shell
    -2.1 +:
    • - Somthing with EventScripts Python
    -4.0:
    • - Recoded at SourceMod(SourcePawn)
    Attached Files
    File Type: rar sounds.rar (1.12 MB, 3326 views)
    File Type: rar cstrike.rar (1.12 MB, 3025 views)
    File Type: sp Get Plugin or Get Source (roundsound.sp - 3417 views - 2.1 KB)
    File Type: smx roundsound.smx (2.5 KB, 1261 views)
    R4nd0mT!m3r is offline
    toazron1
    Senior Member
    Join Date: Oct 2006
    Old 04-22-2008 , 22:43   Re: RoundSound SMX
    Reply With Quote #2

    you don't need to have AddFileToDownloadsTable in both OnPluginStart and OnMapStart
    __________________
    toazron1 is offline
    Send a message via AIM to toazron1
    R4nd0mT!m3r
    Junior Member
    Join Date: Apr 2008
    Old 04-22-2008 , 23:11   Re: RoundSound SMX
    Reply With Quote #3

    rly don't know but OnPluginStart is that not just on start of plugin?

    Last edited by R4nd0mT!m3r; 04-22-2008 at 23:32.
    R4nd0mT!m3r is offline
    toazron1
    Senior Member
    Join Date: Oct 2006
    Old 04-23-2008 , 08:43   Re: RoundSound SMX
    Reply With Quote #4

    Quote:
    Originally Posted by R4nd0mT!m3r View Post
    rly don't know but OnPluginStart is that not just on start of plugin?
    I'm not sure what this means, but it is redundant to have it in both OnPluginsStart AND OnMapStart.
    __________________
    toazron1 is offline
    Send a message via AIM to toazron1
    franzcis066
    Member
    Join Date: Nov 2007
    Old 05-15-2008 , 11:40   Re: RoundSound SMX
    Reply With Quote #5

    If you want this approved remove the AddFileToDownloadStable on plugin start and add a CVAR for the version of this plugin..
    franzcis066 is offline
    alega2005
    New Member
    Join Date: Dec 2004
    Location: lvov
    Old 05-21-2008 , 13:54   Re: RoundSound SMX
    Reply With Quote #6

    when we be able to add own sounds , man comeon
    alega2005 is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 05-21-2008 , 14:01   Re: RoundSound SMX
    Reply With Quote #7

    Care to explain what this does for those who don't know?
    bl4nk is offline
    FlyingMongoose
    Veteran Member
    Join Date: Mar 2004
    Old 06-15-2008 , 01:41   Re: RoundSound SMX
    Reply With Quote #8

    Please, explain what this does so I can have a reason to approve it.
    __________________
    Please do NOT PM for support.

    Only ask for support in plugin threads.

    TunedChaos.com - Precision Tuned Game Servers
    FlyingMongoose is offline
    punkrocker
    New Member
    Join Date: Feb 2010
    Old 02-06-2010 , 21:46   Re: RoundSound SMX
    Reply With Quote #9

    It doesn't work

    When bomb is blowing - I don't hear any music, and have a message in console:

    Failed to load sound "misc\twinnar3.wav", file probably missing from disk/repository

    How can I fix it?

    In my Counter-Strike Source\cstrike\sound\misc folder I have only ctwinnar2.wav file.

    Sorry for my poor English

    I found reason:
    It happens when I try to use sv_downloadurl in my server.cfg

    Last edited by punkrocker; 02-06-2010 at 22:18.
    punkrocker is offline
    Rezusek
    New Member
    Join Date: Dec 2010
    Old 12-29-2010 , 08:46   Re: RoundSound SMX
    Reply With Quote #10

    I added new music...

    Plugin in server play old ...

    This is my roundsound.sp

    Code:
    // File:   roundsound.sp
    // Author: TanaToS
    // Copyright (C) by TanaToS
    #pragma semicolon 1
    
    #include <sourcemod>
    #include <sdktools>
    
    #define PLUGIN_VERSION "4.0 SMX"
    
    public Plugin:myinfo = {
    	name = "RoundSound SMX",
    	author = "TanaToS",
    	description = "RoundSound SMX Plugin",
    	version = PLUGIN_VERSION,
    	url = "http://addons.eventscripts.com/addons/view/RoundSound--v3--TanaToS"
    };
    
    public OnPluginStart() {
    	HookEvent("round_end", EventRoundEnd, EventHookMode_Post);
    	AddFileToDownloadsTable("sound/misc/silesia1.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia2.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia3.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia4.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia5.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia6.mp3");
    }
    
    public OnMapStart() {
    	AddFileToDownloadsTable("sound/misc/silesia1.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia2.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia3.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia4.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia5.mp3");
    	AddFileToDownloadsTable("sound/misc/silesia6.mp3");
    }
    
    public EventRoundEnd(Handle:event, const String:name[], bool:dontBroadcast) {
    	new winner = GetEventInt(event, "winner");
    	new random = GetRandomInt(1, 3);
    	if(winner == 2) {
    		for(new userid = 1; userid <= GetMaxClients(); userid++) {
    			if(IsClientInGame(userid) && !IsFakeClient(userid)) {
    				if(random == 1) {
    					ClientCommand(userid, "play misc/silesia1");
    				} if(random == 2) {
    					ClientCommand(userid, "play misc/silesia2");
    				} if(random == 3) {
    					ClientCommand(userid, "play misc/silesia3"); }
    			}
    		}
    	} else if(winner == 3) {
    		for(new userid = 1; userid <= GetMaxClients(); userid++) {
    			if(IsClientInGame(userid) && !IsFakeClient(userid)) {
    				if(random == 1) {
    					ClientCommand(userid, "play misc/silesia4");
    				} if(random == 2) {
    					ClientCommand(userid, "play misc/silesia5");
    				} if(random == 3) {
    					ClientCommand(userid, "play misc/silesia6"); }
    			}
    		}
    	}
    }
    Please help !
    Rezusek 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 20:34.


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