Raised This Month: $32 Target: $400
 8% 

I need a plugin that plays .wav globally


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Clin.re
New Member
Join Date: May 2020
Old 05-14-2020 , 09:30   I need a plugin that plays .wav globally
Reply With Quote #1

I have no idea of ​​programming plugins or amx. Would someone do me the favor of making a basic plugin that with a command reproduces a .wav globally? Thank you

Last edited by Clin.re; 05-14-2020 at 09:35.
Clin.re is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-14-2020 , 13:33   Re: I need a plugin that plays .wav globally
Reply With Quote #2

Code:
#include <amxmodx> // Set the file name here - must be in the "sound" directory. new const YOUR_SOUND_HERE[] = "your_sound_here.wav" public plugin_init() {     register_plugin("Play Sound", "1.0", "OciXCrom")     register_clcmd("say /wav", "PlaySound")     register_clcmd("say_team /wav", "PlaySound") } public plugin_precache() {     precache_sound(YOUR_SOUND_HERE) } public PlaySound(id) {     client_cmd(0, "spk ^"%s.wav^"", YOUR_SOUND_HERE) }
__________________

Last edited by OciXCrom; 05-14-2020 at 13:34.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply


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 11:49.


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