Raised This Month: $ Target: $400
 0% 

[CS:GO] Start round sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sHoC
Senior Member
Join Date: Nov 2015
Location: Italy
Old 12-08-2015 , 12:28   [CS:GO] Start round sound
Reply With Quote #1

As title say, can someone make this plugin for me ?
I want a plugin that plays a sound when the round starts.
__________________
sHoC is offline
nhnkl159
Senior Member
Join Date: Jul 2012
Location: Israel 3>
Old 12-08-2015 , 12:49   Re: [CS:GO] Start round sound
Reply With Quote #2

i have not check it :

Code:
#include <sourcemod> 
#include <sdktools> 

#pragma semicolon 1 
#define MAX_FILE_LEN 80 

new const String:FULL_SOUND_PATH[] = "sound/CS-GO/round.mp3";
new const String:RELATIVE_SOUND_PATH[] = "*/CS-GO/round.mp3";

#define PLUGIN_VERSION "1.0" 
public Plugin:myinfo =  
{ 
    name = "[CS:GO] Start Round Sound", 
    author = "nhnkl159", 
    description = "Sound for start round", 
    version = PLUGIN_VERSION, 
    url = "-none-" 
}; 
public OnPluginStart() 
{ 
	HookEvent("round_start", Event_RoundStart);
} 


public Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
    	for (new i = 1; i <= MaxClients; i++)
    	{
        	if (IsClientInGame(i) && IsPlayerAlive(i))
        	{
        		EmitSoundToClient(i, RELATIVE_SOUND_PATH );
        	}
    	}
	
}

public OnMapStart()
{
	AddFileToDownloadsTable( FULL_SOUND_PATH );
	FakePrecacheSound( RELATIVE_SOUND_PATH );
}
 
 
stock FakePrecacheSound( const String:szPath[] )
{
	AddToStringTable( FindStringTable( "soundprecache" ), szPath );
}
__________________
nhnkl159 is offline
Send a message via Skype™ to nhnkl159
sHoC
Senior Member
Join Date: Nov 2015
Location: Italy
Old 12-08-2015 , 12:57   Re: [CS:GO] Start round sound
Reply With Quote #3

Quote:
Originally Posted by nhnkl159 View Post
i have not check it :

Code:
#include <sourcemod> 
#include <sdktools> 

#pragma semicolon 1 
#define MAX_FILE_LEN 80 

new const String:FULL_SOUND_PATH[] = "sound/CS-GO/round.mp3";
new const String:RELATIVE_SOUND_PATH[] = "*/CS-GO/round.mp3";

#define PLUGIN_VERSION "1.0" 
public Plugin:myinfo =  
{ 
    name = "[CS:GO] Start Round Sound", 
    author = "nhnkl159", 
    description = "Sound for start round", 
    version = PLUGIN_VERSION, 
    url = "-none-" 
}; 
public OnPluginStart() 
{ 
	HookEvent("round_start", Event_RoundStart);
} 


public Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
    	for (new i = 1; i <= MaxClients; i++)
    	{
        	if (IsClientInGame(i) && IsPlayerAlive(i))
        	{
        		EmitSoundToClient(i, RELATIVE_SOUND_PATH );
        	}
    	}
	
}

public OnMapStart()
{
	AddFileToDownloadsTable( FULL_SOUND_PATH );
	FakePrecacheSound( RELATIVE_SOUND_PATH );
}
 
 
stock FakePrecacheSound( const String:szPath[] )
{
	AddToStringTable( FindStringTable( "soundprecache" ), szPath );
}
ty i will test.
__________________
sHoC is offline
sHoC
Senior Member
Join Date: Nov 2015
Location: Italy
Old 12-08-2015 , 13:26   Re: [CS:GO] Start round sound
Reply With Quote #4

the plugin dosent work, he download the sound but i cant hear in game. there is not sound when the round start
__________________
sHoC is offline
Hallucinogenic Troll
Senior Member
Join Date: Apr 2015
Old 12-08-2015 , 16:55   Re: [CS:GO] Start round sound
Reply With Quote #5

If you want a "Round Start Sound", like you said, you can try this plugin, since it works on CS:GO --> https://forums.alliedmods.net/showthread.php?t=224316

But here you have the option for what do you want + some that casual and competitive servers have.

I have tested it on my server and its working perfectly.
Hallucinogenic Troll is offline
sHoC
Senior Member
Join Date: Nov 2015
Location: Italy
Old 12-08-2015 , 17:29   Re: [CS:GO] Start round sound
Reply With Quote #6

Quote:
Originally Posted by Hallucinogenic Troll View Post
If you want a "Round Start Sound", like you said, you can try this plugin, since it works on CS:GO --> https://forums.alliedmods.net/showthread.php?t=224316

But here you have the option for what do you want + some that casual and competitive servers have.

I have tested it on my server and its working perfectly.
I will try this plugin.
__________________
sHoC is offline
sHoC
Senior Member
Join Date: Nov 2015
Location: Italy
Old 12-10-2015 , 12:58   Re: [CS:GO] Start round sound
Reply With Quote #7

help someone can make this plugin ?
__________________
sHoC 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 03:27.


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