Raised This Month: $ Target: $400
 0% 

Sound problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mr Dzx
Junior Member
Join Date: Feb 2010
Old 11-08-2011 , 16:29   Sound problem
Reply With Quote #1

I've got a problem regarding sounds.
I've edited plugin called 'Map-end sounds' quite abit to suit my likings but when I was near finished and tested it, it didn't work. So I made few other changes and still it doesn't work, any advice?

Code:
#include <amxmodx>
#include <amxmisc>
#include < cstrike.inc >
#define MAX_PLAYERS 33

new PLUGIN[]="Mapend Sounds"
new AUTHOR[]="ntfs"
new VERSION[]="1.33"

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_cvar("mapend_sounds", VERSION, FCVAR_SERVER)
    set_task(1.0, "exec_sound", 0, "", 1, "d", 1)
    register_cvar("amx_mapend_sounds_advert", "1")
}

public plugin_precache() {
    precache_sound("drunkenninja.wav");
}

public exec_sound()
{
    client_cmd(0, "spk drunkenninja.wav");
}
Mr Dzx is offline
 


Thread Tools
Display Modes

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 14:18.


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