Raised This Month: $12 Target: $400
 3% 

Saysound´s


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
P-Town
Junior Member
Join Date: Jul 2007
Old 07-28-2007 , 05:40   Saysound´s
Reply With Quote #1

Hi
I want a plugin that when i say lol it comes a sound "lol"
I have download sanksounds and psychosounds and when i restart my server my server doesnt work because of this i wont a new plugin what work on my server
Sry 4 my bad english -.-
P-Town is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 07-28-2007 , 08:32   Re: Saysound´s
Reply With Quote #2

I did this about a month ago for another person, just search. There's all kinds of threads on this.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
P-Town
Junior Member
Join Date: Jul 2007
Old 07-29-2007 , 03:27   Re: Saysound´s
Reply With Quote #3

I have search but i dont find only sank sounds and psychosounds but this plugins doesnt works on my server.
P-Town is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 07-29-2007 , 08:15   Re: Saysound´s
Reply With Quote #4

This is just a quick and dirty example. But it's basicly only for one sound. You can add more.
Code:
#include <amxmodx> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "Drak" #define SAY_TEXT1 "/lol" #define SOUND_FILE "spk sounds/lol.wav" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say","say_handle"); } public say_handle(id) {     new text[128]     read_args(text,127);         if(equali(text,SAY_TEXT1)) {         client_cmd(0,SOUND_FILE);         return PLUGIN_HANDLED     } }

Replace "SAY_TEXT" with the text you want to active the sound.
And replace "SOUND_FILE" to where the sound is located. (When the text is typed)

(You must keep "spk" in the SOUND_FILE define)
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
P-Town
Junior Member
Join Date: Jul 2007
Old 07-29-2007 , 10:02   Re: Saysound´s
Reply With Quote #5

I have make it and want to compile it and i cant compile it -.-

i test it only whit a lol sound:

#include <amxmodx>
#define PLUGIN "lool"
#define VERSION "1.0"
#define AUTHOR "Drak"
#define SAY_TEXT1 "lol"
#define SOUND_FILE "spk sounds/misc/lol.wav"
public plugin_init() {
register_plugin(lool)
register_clcmd("say","saylol");
}
public say_handle(id)
{
new text[128]
read_args(text,127);

if(equali(text,SAY_TEXT1)) {
client_cmd(lol.wav);
return PLUGIN_lol
}
}


and where can i make this whit code ? sry but im a newbe
P-Town is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 07-29-2007 , 11:14   Re: Saysound´s
Reply With Quote #6

Code:
#include <amxmodx>
 
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Drak"
 
#define SAY_TEXT1 "lol"
#define SOUND_FILE "spk sounds/misc/lol.wav"
 
public plugin_init() {
  register_plugin(PLUGIN, VERSION, AUTHOR)
  register_clcmd("say","say_handle");
}
 
public say_handle(id)
{
  new text[128]
  read_args(text,127);
 
  if(equali(text,SAY_TEXT1)) {
      client_cmd(0,SOUND_FILE);
      return PLUGIN_HANDLED
  }
}
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.

Last edited by |PJ| Shorty; 07-29-2007 at 11:23.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
P-Town
Junior Member
Join Date: Jul 2007
Old 07-29-2007 , 14:20   Re: Saysound´s
Reply With Quote #7

why ou have post the same code
P-Town is offline
|PJ| Shorty
Veteran Member
Join Date: Aug 2005
Location: Bavaria, Germany
Old 07-29-2007 , 16:02   Re: Saysound´s
Reply With Quote #8

it´s not the same...
__________________
There are only 10 types of people in the world:
Those who understand binary, and those who don´t.
|PJ| Shorty is offline
Send a message via ICQ to |PJ| Shorty Send a message via AIM to |PJ| Shorty Send a message via MSN to |PJ| Shorty Send a message via Yahoo to |PJ| Shorty Send a message via Skype™ to |PJ| Shorty
P-Town
Junior Member
Join Date: Jul 2007
Old 07-29-2007 , 17:26   Re: Saysound´s
Reply With Quote #9

the plugin works but when i tip lol i hear no sound
P-Town is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 07-29-2007 , 20:57   Re: Saysound´s
Reply With Quote #10

We have no idea where the sound is, how about you give us were the sound is located.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
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 15:40.


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