Raised This Month: $ Target: $400
 0% 

Sound not worked


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pewex
Senior Member
Join Date: Dec 2010
Location: AlliedMods
Old 01-04-2013 , 11:36   Sound not worked
Reply With Quote #1

Code:
#include <amxmodx>


    set_task(600.0,"PlaySound", 0)

new const yoursound1[] = "sound/misc/czs.wav" 
new const yoursound2[] = "sound/misc/czd.wav" 
new const yoursound3[] = "sound/misc/cze.wav" 

public plugin_precache() 
{ 
    precache_sound(yoursound1) 
    precache_sound(yoursound2) 
    precache_sound(yoursound3) 
} 

public plugin_init() 
{
    register_plugin("Press", "1.0.0", "")
    
    register_clcmd("+voicerecord", "PlaySound")
}

public PlaySound() 
{ 
switch(random_num(1, 3))
{
case 1:
{
    client_cmd(0, "spk ^"%s^"", yoursound1)
}
case 2:
{
    client_cmd(0, "spk ^"%s^"", yoursound2)
}
case 3:
{
    client_cmd(0, "spk ^"%s^"", yoursound3)
}
}

    return PLUGIN_HANDLED
}
Plugin not work well...

Please help

Last edited by pewex; 01-05-2013 at 09:19.
pewex is offline
 



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 13:39.


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