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

[CS:GO] Play sound at the beginning of the first round of the card


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Altaj
Junior Member
Join Date: May 2017
Old 09-09-2017 , 17:07   [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #1

Need a plugin.
Play sound at the beginning of the first round of the card.

Last edited by Altaj; 09-09-2017 at 17:09.
Altaj is offline
Cruze
Veteran Member
Join Date: May 2017
Old 09-10-2017 , 01:07   Re: [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #2

card?
__________________
Taking paid private requests! Contact me
Cruze is online now
Altaj
Junior Member
Join Date: May 2017
Old 09-10-2017 , 04:32   Re: [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #3

Quote:
Originally Posted by Cruze View Post
card?
At the beginning of the first round of the card, the sound plays in the config
Altaj is offline
fiction
Member
Join Date: May 2017
Old 09-10-2017 , 04:39   Re: [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #4

Quote:
Originally Posted by Altaj View Post
At the beginning of the first round of the card, the sound plays in the config
Yeah, what do you mean "card" can you use another word or explain more?
fiction is offline
Altaj
Junior Member
Join Date: May 2017
Old 09-10-2017 , 04:54   Re: [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #5

Quote:
Originally Posted by fiction View Post
Yeah, what do you mean "card" can you use another word or explain more?
Sorry. Card=map
Altaj is offline
fraise
Member
Join Date: Sep 2016
Location: Paris, France
Old 09-10-2017 , 08:01   Re: [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #6

PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <emitsoundany>
#include <autoexecconfig>

ConVar g_path;

public 
void OnPluginStart()
{
    
AutoExecConfig_SetFile("music");
    
AutoExecConfig_SetCreateFile(true);
    
    
g_path=AutoExecConfig_CreateConVar("music""sound/music/example.mp3""Choose the path of the music");
    
    
AutoExecConfig_ExecuteFile();
    
AutoExecConfig_CleanFile();
}

public 
OnMapStart()
{
    
char dl_path[32];
    
char path[32];
    
g_path.GetString(pathsizeof(path));
    
Format(dl_pathsizeof(dl_path), "sound/%s"path);
    
AddFileToDownloadsTable(dl_path);
    
PrecacheSoundAny(path);
    
EmitSoundToAll(path);


when you launch the plugins, a config file should be create, you just have to add the "path" of your sound =)
__________________
\o/
fraise is offline
fiction
Member
Join Date: May 2017
Old 09-10-2017 , 09:00   Re: [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #7

Quote:
Originally Posted by fraise View Post
when you launch the plugins, a config file should be create, you just have to add the "path" of your sound =)
You should post some links to those custom includes too, people posting in this sub forum usually don't know what to do when the compiler gives them errors for that.
fiction is offline
fraise
Member
Join Date: Sep 2016
Location: Paris, France
Old 09-10-2017 , 09:12   Re: [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #8

this include aren't in the sourcemod files by default ?
__________________
\o/
fraise is offline
fiction
Member
Join Date: May 2017
Old 09-10-2017 , 09:16   Re: [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #9

Quote:
Originally Posted by fraise View Post
this include aren't in the sourcemod files by default ?
emitsoundany and colors are both third party includes.
fiction is offline
Altaj
Junior Member
Join Date: May 2017
Old 09-11-2017 , 09:37   Re: [CS:GO] Play sound at the beginning of the first round of the card
Reply With Quote #10

Quote:
Originally Posted by fraise View Post
PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <emitsoundany>
#include <autoexecconfig>

ConVar g_path;

public 
void OnPluginStart()
{
    
AutoExecConfig_SetFile("music");
    
AutoExecConfig_SetCreateFile(true);
    
    
g_path=AutoExecConfig_CreateConVar("music""sound/music/example.mp3""Choose the path of the music");
    
    
AutoExecConfig_ExecuteFile();
    
AutoExecConfig_CleanFile();
}

public 
OnMapStart()
{
    
char dl_path[32];
    
char path[32];
    
g_path.GetString(pathsizeof(path));
    
Format(dl_pathsizeof(dl_path), "sound/%s"path);
    
AddFileToDownloadsTable(dl_path);
    
PrecacheSoundAny(path);
    
EmitSoundToAll(path);


when you launch the plugins, a config file should be create, you just have to add the "path" of your sound =)
Вoes not work. Sound is downloaded, but does not play.
Sound is downloaded every map but in the folder with the game it is not.

Last edited by Altaj; 09-11-2017 at 09:45.
Altaj 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 08:09.


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