Raised This Month: $404 Target: $400
 101% 

Funny HL Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 07-30-2009 , 10:14   Funny HL Sounds
Reply With Quote #1

Funny HL Sounds
(from Half-Life)




Description:

- This plugin is like SankSounds but, has only sounds from Half-Life. The sounds are great, because i selected only cool sounds from Half-Life.
- This plugin has a menu, and you can choose your sound to play for all players.(see image bellow)
- Plugin have a 'little' antiflood because some players are tryin' to flood the server with this sounds. The plugin can be set for admin-only.(by cvar).
- You can edit the menu items and sounds from .ini file.




Commands:

* say or say_team: /fhshelp - show you a little help in a motd.
* console: fhsmenu - display the funny sounds menu

Also you can bind a <key> to open menu faster. Like: bind slot10 fhsmenu




Cvars:

- fhs_enabled - 1 - enabled / 0- disabled
- fhs_admin - 1 - sounds only for admins / 0 - for all players
- fhs_advertise - 1 - display a info message when player joined game / 0 - disabled
- fhs_advertise_time - 7 - seconds before player can see info message when joined
- fhs_delay - 10 - seconds until can use a sound again



How to install:

Install the plugin normal, but put the FHS.ini file in your /configs dir.
Put the FHS.txt file in your /lang dir.




Credits:

- Alka
- joaquimandrade



Images:

[IMG]http://img132.**************/img132/7992/menucqz.th.png[/IMG] [IMG]http://img194.**************/img194/9494/helpqhg.th.png[/IMG]


The sounds doesn't need to be precached, they are default from Half-Life!

Attached Files
File Type: ini FHS.ini (3.6 KB, 3300 views)
File Type: txt FHS.txt (4.7 KB, 3001 views)
File Type: sma Get Plugin or Get Source (FHS.sma - 6109 views - 5.7 KB)
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx


Last edited by tuty; 08-23-2009 at 19:32.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-30-2009 , 10:44   Re: Funny HL Sounds
Reply With Quote #2

You should allow in the config to create submenu, so people can organize the menu more easily because almost 100 sounds in one menu is a bit annoying.
__________________
Arkshine is offline
pirvu
Senior Member
Join Date: Apr 2009
Location: Here and There [ro]
Old 07-30-2009 , 10:44   Re: Funny HL Sounds
Reply With Quote #3

Cool +karma ;))
__________________
Http://pirvu.mybrute.com <- Try my BRUTE! If you dare!
pirvu is offline
Send a message via Yahoo to pirvu Send a message via Skype™ to pirvu
`666
AlliedModders Donor
Join Date: Jan 2006
Location: UK
Old 07-30-2009 , 10:46   Re: Funny HL Sounds
Reply With Quote #4

i thought amxx speech does the same :S

Code:
; Menu configuration file
; File location: $moddir/addons/amxmodx/configs/speech.ini
; To use with Commands Menu plugin

; NOTE: By default in all settings the access level is set to "u".
;       However you can change that, to limit the access to some settings.

; Commands Menu: ; < description > < command > < flags > < access level >
; "a" - execute from server console
; "b" - execute from admin console
; "c" - execute on all clients
; "d" - back to menu when executed 

"Hello!"			"spk \'vox/hello\'"			"cd"	"u"
"Don't think so"		"spk \'barney/dontguess\'"		"cd"	"u"
"Don't ask me"			"spk \'barney/dontaskme\'"		"cd"	"u"
"Hey! Stop that!"		"spk \'barney/donthurtem\'"		"cd"	"u"
"Yup"				"spk \'barney/yup\'"			"cd"	"u"
"Nope"				"spk \'barney/nope\'"			"cd"	"u"
"Maybe"				"spk \'barney/maybe\'"			"cd"	"u"
"Seeya"				"spk \'barney/seeya\'"			"cd"	"u"
"Man that sounded bad"		"spk \'barney/soundsbad\'"		"cd"	"u"
"Hello and die"			"spk \'vox/hello and die\'"		"cd"	"u"
"Move!"				"spk \'hgrunt/move! _comma yessir!\'"	"cd"	"u"
"You will definitely pay!"	"spk \'hgrunt/c2a2_hg_chat5a\'"		"cd"	"u"
"Laughter"			"spk \'hgrunt/c2a3_hg_laugh\'"		"cd"	"u"
"Silence!"			"spk \'hgrunt/silence!\'"		"cd"	"u"
"You talk too much"		"spk \'barney/youtalkmuch\'"		"cd"	"u"
"You thinkin?"			"spk \'barney/thinking\'"		"cd"	"u"
"Open fire Gordon!"		"spk \'barney/openfire\'"		"cd"	"u"
"Couldnt make a bigger mess"	"spk \'barney/bigmess\'"		"cd"	"u"
"I have a Bad feeling"		"spk \'barney/badfeeling\'"		"cd"	"u"
"Yes sir!"			"spk \'hgrunt/yessir!\'"		"cd"	"u"
"No sir"			"spk \'barney/nosir\'"			"cd"	"u"
__________________

`666 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-30-2009 , 10:53   Re: Funny HL Sounds
Reply With Quote #5

Also, some minor things :

- Use ML
- Use the new file natives
- Using 'new const' for PLUGIN_NAME/PLUGIN_VERSION is pointless, the strings are repeated only one time. Use #define.
- If you want to know the length of a wav sound, you can see here.
__________________
Arkshine is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 07-30-2009 , 11:17   Re: Funny HL Sounds
Reply With Quote #6

Cool!

+ my usual thing

MultiLangual
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 07-30-2009 , 12:11   Re: Funny HL Sounds
Reply With Quote #7

Quote:
Originally Posted by `666 View Post
i thought amxx speech does the same :S
@ amx speech sux

@ arkshine:
* .. i read from this forum ... the new const for new plugin is good enough then #define.. wtf?:/
* i dont want to know the wave lenght, is not sanksounds is my plugin.
* Use the new file natives why??? :/ plugin works well with this one's

-------------------

Updated!

Added ML
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx


Last edited by tuty; 07-30-2009 at 12:39.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-30-2009 , 13:04   Re: Funny HL Sounds
Reply With Quote #8

Quote:
i read from this forum ... the new const for new plugin is good enough then #define.. wtf?:/
From my knowledge ( If I'm right ), since the string is not repeating severals time, it's pointless to use "new const" to optimize the DATA section.

Quote:
amx speech sux
Except the delay and all players options, your plugin does the same thing... Basically nothing new, more minor things, so your plugin sucks too ?
You could add submenu like I've suggested in the second post, it would be more interesting and unique.

Quote:
i dont want to know the wave lenght, is not sanksounds is my plugin.
The purpose to know the sound length is to force player to not play a sound while another sound is still playing. You cvar is 10 by default, so if a sound length is 1 second he will have to wait 9 secondes. Knowing the lenght allows to play another sound right after or delayed a bit from this moment. For me it makes more sense to put a delay after the end of a sound.

Quote:
Use the new file natives why??? :/ plugin works well with this one's
You should see the source of read_files() natives and imagine that executed ~100 times. It will more efficient to use fopen/fgets/fclose.

write_file() you can keep it here and you could use one native : write_file( szFile, "#^n# Funny HL Sounds^n#^n", -1 );
Btw, you forget to add else {} after the check if the file exists or not.

As suggestion, you should not hardcode the max sounds, use dynamic array.
__________________

Last edited by Arkshine; 07-30-2009 at 13:14.
Arkshine is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 07-30-2009 , 13:30   Re: Funny HL Sounds
Reply With Quote #9

Code:
Except the delay and all players options, your plugin does the same thing... Basically nothing new, more minor things, so your plugin sucks too ? :mrgreen:
NO
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 07-30-2009 , 13:37   Re: Funny HL Sounds
Reply With Quote #10

Spanish translation

Quote:
[es]
FHS_ADVERTISE_1 = Este server esta usando Sonidos Divertidos de HL!
FHS_ADVERTISE_2 = Escribe '/fhshelp' para saber como usarlo.
FHS_DISABLED = Los Sonidos Divertidos de HL estan desactivados!
FHS_ADMIN_ONLY = Los Sonidos Divertidos de HL son solo para Admins!
FHS_WAIT = Tenes que esperar %d segundos para poder usar los sonidos devuelta!
FHS_TITLE = Sonidos Divertidos de HL
FHS_MOTD_LN1 = Escribe en la <u>consola</u> <font color=^"red^">fhsmenu</font> Para abrir el menu de Sonidos Divertidos de HL
FHS_MOTD_LN2 = O puedes bindear una<u>tecla</u>para<font color=^"red^">fhsmenu</font>
FHS_MOTD_LN3 = Por ejemplo: <u>bind</u> <i><font color=^"red^">=</font></i> <u><font color=^"red^">fhsmenu</font></u>
FHS_MOTD_LN4 = Escribe en el <u>chat</u> <font color=^"red^">/fhshelp</font> para reabrir esta ventana.
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
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 13:09.


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