Raised This Month: $ Target: $400
 0% 

voice rules ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 09-05-2008 , 10:15   Re: voice rules ?
Reply With Quote #4

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
 



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