Raised This Month: $ Target: $400
 0% 

voice rules ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
killler
Junior Member
Join Date: Sep 2008
Old 09-04-2008 , 09:34   voice rules ?
Reply With Quote #1

hi, first I'm sorry for my english.

my question is..
There is a situation , that when i write some code in the consol..
the code will activated media file ??

(i want do record "voice rules")
killler is offline
Old 09-05-2008, 01:20
killler
This message has been deleted by YamiKaitou. Reason: bump
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 09-05-2008 , 09:57   Re: voice rules ?
Reply With Quote #2

At first, you should convert your media file (in your situation sound) into correct HL format. Then you should write a script that will activate this sound.
TheRadiance is offline
Send a message via ICQ to TheRadiance
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 09-05-2008 , 10:15   Re: voice rules ?
Reply With Quote #3

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

new const plname[]="voice_rules"
new const plvers[]="1.0"
new const plauth[]="killer"

#define ACCESS ADMIN_LEVEL_A //Admin with flag "m".

public plugin_init()
{
    
register_plugin(plname,plvers,plauth)
    
register_concmd("amx_vrules","cmdSound",ACCESS)
}

public 
plugin_precache()
    
precache_sound("sound/misc/firstblood.wav"//your sound in HL format instead of "firstblood.wav".

public cmdSound(id,level,cid)
{
    if(!
cmd_access(id,level,cid,1))
        return 
PLUGIN_HANDLED
    emit_sound
(id,CHAN_VOICE,"sound/misc/firstblood.wav",1.0,ATTN_NORM,0,PITCH_NORM // Non-standart files must be precached!
    
client_print(id,print_console,"[AMXX] Voice Rules!."//Your text for example.
    
return PLUGIN_HANDLED

After typing "amx_vrules" in console, your sound will be played.

Last edited by TheRadiance; 09-05-2008 at 10:22.
TheRadiance is offline
Send a message via ICQ to TheRadiance
killler
Junior Member
Join Date: Sep 2008
Old 09-05-2008 , 12:10   Re: voice rules ?
Reply With Quote #4

first , ty !!


I'm sorry that I so idiot ..


I Need to save the thing that you give to me as amxx file , put it in amxmodx/plugins/ and write the file name.amxx in the plugins.ini ?

killler is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 09-06-2008 , 04:03   Re: voice rules ?
Reply With Quote #5

Quote:
first , ty !!


I'm sorry that I so idiot ..


I Need to save the thing that you give to me as amxx file , put it in amxmodx/plugins/ and write the file name.amxx in the plugins.ini ?
voice_rules.amxx --> /addons/amxmodx/plugins/
voice_rules.amxx --> /addons/amxmodx/configs/plugins.ini

If you want your own sound to be played, just give me it and i'll include it into plugin.
Attached Files
File Type: amxx voice_rules.amxx (2.9 KB, 113 views)

Last edited by TheRadiance; 09-06-2008 at 04:11.
TheRadiance is offline
Send a message via ICQ to TheRadiance
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-06-2008 , 04:24   Re: voice rules ?
Reply With Quote #6

but he wanted not that, he want, when you starting speak in mic, it shows rules in chat like, no flood, no music or smth
__________________
xPaw is offline
killler
Junior Member
Join Date: Sep 2008
Old 09-06-2008 , 05:50   Re: voice rules ?
Reply With Quote #7

yes , I want my own sound plz..

http://ormaoz.off.co.il/voice_rules.wav
killler is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 09-06-2008 , 07:30   Re: voice rules ?
Reply With Quote #8

Quote:
but he wanted not that, he want, when you starting speak in mic, it shows rules in chat like, no flood, no music or smth
hmm

Quote:
...that when i write some code in the consol..
the code will activated media file ??
Quote:
yes , I want my own sound plz..
wait a minute
TheRadiance is offline
Send a message via ICQ to TheRadiance
killler
Junior Member
Join Date: Sep 2008
Old 09-06-2008 , 09:18   Re: voice rules ?
Reply With Quote #9

killler is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 09-07-2008 , 02:28   Re: voice rules ?
Reply With Quote #10

You must convert your sound in HL format.
HL format is: 176 kbps, 022 KHz
TheRadiance is offline
Send a message via ICQ to TheRadiance
Old 09-07-2008, 07:07
killler
This message has been deleted by killler.
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:18.


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