Raised This Month: $ Target: $400
 0% 

sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hotkakes
Junior Member
Join Date: May 2005
Old 05-21-2005 , 22:20   sounds
Reply With Quote #1

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?
Hotkakes is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-21-2005 , 23:28  
Reply With Quote #2

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..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Hotkakes
Junior Member
Join Date: May 2005
Old 05-22-2005 , 00:25  
Reply With Quote #3

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 )
Hotkakes is offline
Front Line
Senior Member
Join Date: Jan 2005
Old 05-22-2005 , 00:28  
Reply With Quote #4

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...
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-22-2005 , 01:04  
Reply With Quote #5

1) Edit
2) Compile
3) Upload the .amxx file and the sound(s)
4) Add the .amxx file to plugins.ini
5) Change map
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Front Line
Senior Member
Join Date: Jan 2005
Old 05-22-2005 , 01:06  
Reply With Quote #6

he doesn't know man dunt worry.
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
Hotkakes
Junior Member
Join Date: May 2005
Old 05-22-2005 , 15:06  
Reply With Quote #7

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
Hotkakes is offline
Hotkakes
Junior Member
Join Date: May 2005
Old 05-30-2005 , 00:00   HELP
Reply With Quote #8

ok well will you help me or what...
Hotkakes is offline
Yuri
Senior Member
Join Date: May 2005
Location: Yuri's Cyber Cafe
Old 05-30-2005 , 00:19  
Reply With Quote #9

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"
Attached Files
File Type: zip yr_sounds.zip (11.7 KB, 110 views)
File Type: sma Get Plugin or Get Source (yr_sounds.sma - 762 views - 8.8 KB)
Yuri is offline
{NM}Jason
AMX Mod X Beta Tester
Join Date: Mar 2004
Location: Texas
Old 05-30-2005 , 00:21  
Reply With Quote #10

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.
__________________
http://forums.alliedmods.net/showthr...396#post451396
Quote:
Originally Posted by BAILOPAN View Post
Shortly after posting that image, Jason crushed the truck into a ball with his hands, and tossed it over his shoulder.
{NM}Jason is offline
Send a message via ICQ to {NM}Jason Send a message via AIM to {NM}Jason Send a message via MSN to {NM}Jason Send a message via Yahoo to {NM}Jason
Reply



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 16:42.


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