AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   sounds (https://forums.alliedmods.net/showthread.php?t=13581)

Hotkakes 05-21-2005 22:20

sounds
 
ok how would i set a command up were if somone says something in chat like gtg, or hey, it plays a noise? what would i have to do?

v3x 05-21-2005 23:28

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Chat sounds","0.1","v3x")     register_clcmd("say","handle_say",-1) } public plugin_precache(id) {     precache_sound("misc/gtg.wav") // EDIT THIS } public handle_say(id) {     new message[164]     read_args(message,163)     if(equali(message,"gtg")) {         client_cmd(0,"spk misc/gtg.wav") // EDIT THIS     }     return PLUGIN_CONTINUE }

And if you wanted more than 1..

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Chat sounds","0.1","v3x")     register_clcmd("say","handle_say",-1) } public plugin_precache() {     precache_sound("misc/gtg.wav") // EDIT THIS - 1     precache_sound("misc/brb.wav") // EDIT THIS - 2 } public handle_say(id) {     new message[164]     read_args(message,163)     if(equali(message,"gtg")) {         client_cmd(0,"spk misc/gtg.wav") // EDIT THIS - 1     }     if(equali(message,"brb")) {         client_cmd(0,"spk misc/brb.wav") // EDIT THIS - 2     }     return PLUGIN_CONTINUE }
And so on..

Hotkakes 05-22-2005 00:25

wooowhoadoakldk;lasdj ????????????? wtf?? dude i have no clue what do do with that or were to put it... (im sorry im a noob at this :( )

Front Line 05-22-2005 00:28

send me or vex the files and we can
a) edit the code to your needs.
b) modify the code to your needs...
c) all of the above...

v3x 05-22-2005 01:04

1) Edit
2) Compile
3) Upload the .amxx file and the sound(s)
4) Add the .amxx file to plugins.ini
5) Change map

Front Line 05-22-2005 01:06

he doesn't know man dunt worry.

Hotkakes 05-22-2005 15:06

what do you meen vex files? got my server from funservers.com, but i have a FTP access to it... and i have all of the sounds :D

Hotkakes 05-30-2005 00:00

HELP
 
ok well will you help me or what...

Yuri 05-30-2005 00:19

2 Attachment(s)
Okay, enough, I will settle this.

Plugin Description:
Adds any server sound that you desire.

Credits: Ludwig Van - For the usage of his source code.

Installing sounds:
go to addons/amxx/sounds.cfg.

Plugin Installation:
cut and paste the plugin to your addons/amxx/plugins folder and go to addons/amxx/config/plugins.ini and add:
Yr_sound.amxx
Put sounds.cfg In your addons/amxx folder.

Adding sounds:
add these lines for example:

---
pd_sound "hello" "scientist/hello2"
pd_sound "hello" "scientist/greetings"
pd_sound "hello" "scientist/hello" // These do not need to have the .wav Included.
---

You can add many more. such as
pd_sound "haha" "misc/haha.wav"
pd_sound "penis" "misc/penis.wav"

{NM}Jason 05-30-2005 00:21

Quote:

Originally Posted by Yuri
Okay, enough, I will settle this.

Plugin Description:
Adds any server sound that you desire.

Installing sounds:
go to addons/amxx/sounds.cfg.

add these lines for example:

---
pd_sound "hello" "scientist/hello2"
pd_sound "hello" "scientist/greetings"
pd_sound "hello" "scientist/hello" // These do not need to have the .wav Included.
---

You can add many more. such as
pd_sound "haha" "misc/haha.wav"
pd_sound "penis" "misc/penis.wav"

if your going to post this please Post the SMA file. or Remove the Download. Thank you.


All times are GMT -4. The time now is 16:42.

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