Raised This Month: $ Target: $400
 0% 

[REQ] Round Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
S.W.A.T Slix
Member
Join Date: Dec 2007
Old 06-08-2008 , 23:07   [REQ] Round Sounds
Reply With Quote #1

I've look everywhere for this plugin ( if it exists) It's a plugin when the Round begins and you can Pick a custom sound you can put for the T and CT's instead of saying "Prepare to Fight"
__________________
S.W.A.T Slix is offline
PoSiTiOn Of PoWeR
BANNED
Join Date: May 2008
Location: RO
Old 06-09-2008 , 07:39   Re: [REQ] Round Sounds
Reply With Quote #2

roundSound
"Prepare to fight Msg"
->
PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
   
register_plugin("Prepare to fight MSG","0.1","P.Of.Pw")
   
register_logevent("roundstart"2"1=Round_Start");
}
public 
roundstart() {

   
set_hudmessage(255000.350.0806.012.0)
   
show_hudmessage(0"Prepare to fight !!!!")
   
   return 
PLUGIN_HANDLED

PoSiTiOn Of PoWeR is offline
Send a message via Yahoo to PoSiTiOn Of PoWeR
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 06-09-2008 , 07:51   Re: [REQ] Round Sounds
Reply With Quote #3

But that round sound play sound when one of teams win . Would it work on round start ?
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
PoSiTiOn Of PoWeR
BANNED
Join Date: May 2008
Location: RO
Old 06-09-2008 , 08:03   Re: [REQ] Round Sounds
Reply With Quote #4

I mean, when the round begins to hear a sound?
PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
   
register_plugin("Prepare to fight MSG","0.1","P.Of.Pw")
   
register_logevent("roundstart"2"1=Round_Start");
}
public 
roundstart() {

   
client_cmd(0,"spk misc/MySound")
   
   return 
PLUGIN_HANDLED
}

public 
plugin_precache() 
{
  
precache_sound("misc/MySound.wav")
 
  return 
PLUGIN_CONTINUE

Sorry for bad english
PoSiTiOn Of PoWeR is offline
Send a message via Yahoo to PoSiTiOn Of PoWeR
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 06-09-2008 , 08:22   Re: [REQ] Round Sounds
Reply With Quote #5

You ain't replacing the old sound... I don't know the sound file
name on the default file. But it should be like this :
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define gPLUGIN "PTF Block"
#define gVERSION "1.0"
#define gAUTHOR "[A]tomen"

new g_soundlist[]    =    "The default sound here"
new g_replace[]        =    "Your Sound Here"

public plugin_precache() precache_sound(g_replace)

public 
plugin_init()
{
    
register_plugin(gPLUGINgVERSIONgAUTHOR)
    
register_forward(FM_EmitSound"block_sound")
}

public 
block_sound(entitychannel, const sound[])
{
    if (
equali(soundg_soundlist))
    {
        
emit_sound(0CHAN_STATICg_replace0.6ATTN_NORM0PITCH_NORM)
        return 
FMRES_SUPERCEDE
    
}

    else
        return 
FMRES_IGNORED

__________________
atomen is offline
Send a message via MSN to atomen
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-09-2008 , 08:57   Re: [REQ] Round Sounds
Reply With Quote #6

'prepare to fight' sound/text is provided into miscstats plugin. If he want another sound, he has just to edit the miscstats plugin. There is nothing to do with the forward 'EmitSound'... -_-
__________________
Arkshine is offline
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 06-09-2008 , 09:48   Re: [REQ] Round Sounds
Reply With Quote #7

Thought it was cs default sound, ain't playing it nowadays.
__________________
atomen is offline
Send a message via MSN to atomen
S.W.A.T Slix
Member
Join Date: Dec 2007
Old 06-09-2008 , 14:16   Re: [REQ] Round Sounds
Reply With Quote #8

At the start of the round, I want a diff sounds for the T's and diff one for the CT's. I looked through the codes I dont its in there.

Edit:

Is this the code? I found this in miscstats.sma
PHP Code:
}

public 
eNewRound()
{
    if (
read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0,floatround_floor))
    {
        
g_firstBlood 1
        g_C4Timer 
0
        
++g_roundCount
        
        
if (RoundCounter)
        {
            
set_hudmessage(20000, -1.00.3006.06.00.50.15, -1)
            
ShowSyncHudMsg(0g_announce_sync"%L"LANG_PLAYER"PREPARE_FIGHT"g_roundCount)
        }
        
        if (
RoundCounterSound)
            
play_sound("misc/prepare")
        
        if (
KillingStreak)
        {
            new 
appl[32], ppli
            get_players
(applppl"ac")
            
            for (new 
0ppl; ++a)
            {
                
appl[a]
                
                if (
g_streakKills[i][0] >= 2)
                    
client_print(iprint_chat"* %L"i"KILLED_ROW"g_streakKills[i][0])
                else if (
g_streakKills[i][1] >= 2)
                    
client_print(iprint_chat"* %L"i"DIED_ROUNDS"g_streakKills[i][1])
            }
        }
    }
}

public 
eRestart() 
If yes, how do I make it so that when the round starts, the T and Ct's have diff sounds. Cause I want when round starts for CT, it will say "Assault" when round starts for T's it says "Defense" I have the sounds files.
__________________

Last edited by S.W.A.T Slix; 06-09-2008 at 15:52.
S.W.A.T Slix is offline
S.W.A.T Slix
Member
Join Date: Dec 2007
Old 06-09-2008 , 15:55   Re: [REQ] Round Sounds
Reply With Quote #9

Quote:
Originally Posted by PoSiTiOn Of PoWeR View Post
I mean, when the round begins to hear a sound?
PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
   
register_plugin("Prepare to fight MSG","0.1","P.Of.Pw")
   
register_logevent("roundstart"2"1=Round_Start");
}
public 
roundstart() {

   
client_cmd(0,"spk misc/MySound")
   
   return 
PLUGIN_HANDLED
}

public 
plugin_precache() 
{
  
precache_sound("misc/MySound.wav")
 
  return 
PLUGIN_CONTINUE

Sorry for bad english
Is it possible that you can have different Round sounds for the two teams?
Example:
CT round sound says: "Assault"
T round sound says: "Defense"
__________________
S.W.A.T Slix is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 06-09-2008 , 16:16   Re: [REQ] Round Sounds
Reply With Quote #10

This might work it compiles at least.

PHP Code:
#include <amxmodx>
#include <amxmisc>

new max_players

#define Twin    "misc/MyTSound.wav"
#define CTwin    "misc/MyCTSound.wav"


public plugin_init()
{
   
register_plugin("Prepare to fight MSG","0.1","Fx")
   
register_logevent("roundstart"2"1=Round_Start")
   
max_playersget_maxplayers()
}
public 
roundstart()
{
    new 
team
    
for(new i=1;i<=max_players;i++)
        if(
is_user_connected(i))
        {
            
team get_user_team(i)
            if(
team == 1)client_cmd(i,"spk %s",Twin)
            else if(
team == 2)client_cmd(i,"spk %s",CTwin)
            
        }
        
    
set_hudmessage(255000.350.0806.012.0)
    
show_hudmessage(0"Prepare to fight !!!!")
    return 
PLUGIN_HANDLED
}

public 
plugin_precache() 
{
  
precache_sound(Twin)
  
precache_sound(CTwin)
 
  return 
PLUGIN_CONTINUE

__________________
If one of my plugins become broken, contact me by mail. [email protected]

Last edited by fxfighter; 06-09-2008 at 16:19.
fxfighter is offline
Send a message via MSN to fxfighter
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:18.


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