Raised This Month: $ Target: $400
 0% 

Someone know how plugn use to change sounds "bomb has been planted" and "...defused"?


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-23-2008 , 14:49   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #11

works for me
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
molotovas
Senior Member
Join Date: Jan 2008
Old 02-23-2008 , 15:53   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #12

So whats wrong... :/ to other dont work.
molotovas is offline
Mifuntm
Senior Member
Join Date: Feb 2008
Location: in space...
Old 02-24-2008 , 14:14   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #13

connorr you can write what i should do with this ???????????
Or maby someone know some plugin to replace this sounds??




#include <amxmodx>

new g_szPlantSound[100], g_szDefSound[100]

public
plugin_precache()
{
new
szFile[64]
get_localinfo("amxx_configsdir", szFile, 63)
format(szFile, 63, "%s/bombsounds.ini", szFile)

new
File = fopen(szFile, "rt")
if(!
File)
{
pause("ad")
return
}

new
Text[128], Witch[8], Sound[100]
while(!
feof(File))
{
fgets(File, Text, 127)
trim( Text )
if(!
Text[0] || Text[0] == ';' || (Text[0] == '/' && Text[1] == '/'))
continue
parse(Text, Witch, 7, Sound, 99)
if(!
g_szPlantSound[0] && equal(Witch, "planted"))
{
copy(g_szPlantSound, 99, Sound)
}
if(!
g_szDefSound[0] && equal(Witch, "defused"))
{
copy(g_szDefSound, 99, Sound)
}
}
fclose(File)

if(
g_szPlantSound[0])
precache_sound(g_szPlantSound)
if(
g_szDefSound[0])
precache_sound(g_szDefSound)
}

public
plugin_init()
{
register_plugin("Bomb Sounds", "0.1", "ConnorMcLeod")
register_message( get_user_msgid("SendAudio"), "Hook_SendAudio")
}

public
Hook_SendAudio(MSG_ID, MSG_DEST, MSG_ENT)
{
if(
MSG_ENT)
return
PLUGIN_CONTINUE

static szSound[32]
get_msg_arg_string(2, szSound, 31)

static const
MRAD_BOMBP[] = "%!MRAD_BOMBP"
static const MRAD_BOMBDEF[] = "%!MRAD_BOMBDEF"

if(equal(szSound, MRAD_BOMBP) && g_szPlantSound[0])
{
set_msg_arg_string(2, g_szPlantSound)
return
PLUGIN_HANDLED
}
if(
equal(szSound, MRAD_BOMBDEF) && g_szDefSound[0])
{
set_msg_arg_string(2, g_szDefSound)
return
PLUGIN_HANDLED
}
return
PLUGIN_CONTINUE
}

Last edited by Mifuntm; 02-25-2008 at 16:22.
Mifuntm is offline
molotovas
Senior Member
Join Date: Jan 2008
Old 02-27-2008 , 19:23   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #14

So, somebody maby know why to other dont work this plugin
molotovas is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-27-2008 , 19:32   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #15

remove return PLUGIN_HANDLED
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
molotovas
Senior Member
Join Date: Jan 2008
Old 02-28-2008 , 02:30   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #16

OK i will try.

EDIT: Still not work

Last edited by molotovas; 02-28-2008 at 02:48.
molotovas is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-29-2008 , 17:43   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #17

Code edited, test again
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
molotovas
Senior Member
Join Date: Jan 2008
Old 03-01-2008 , 07:30   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #18

Dont work :/
molotovas is offline
MustD1e
Senior Member
Join Date: Apr 2010
Old 05-16-2012 , 12:11   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #19

Hello, I get (when bomb has been planted)
Quote:
FATAL ERROR
PW_WRITE_STRING_I_called with no active message
And there too http://forums.alliedmods.net/showthread.php?t=82881
__________________

Fly with us

Last edited by MustD1e; 05-16-2012 at 12:21.
MustD1e is offline
Killingfire28
Junior Member
Join Date: May 2012
Location: Mars,Sector 4
Old 05-23-2012 , 02:04   Re: Someone know how plugn use to change sounds "bomb has been planted" and "...defus
Reply With Quote #20

TRY TO REPLACE THE AUDIO FILE
sound\radio\bombdef.wav
sound\radio\bombpl.wav

RECORD USING MIC OR DOWNLOAD AUDIO FILES CREATE AN BACKUP
__________________
Gta Forums Account : Warpain28
Gameclub : M_O_V_A_B_L_E
Dod Plugins : Killingfire

Note: Press Ctrl+W If You Are using chrome LOL
Killingfire28 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 01:04.


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