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

Sank Sounds (Luke Sankey) (v1.8.4)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   devicenull (200)
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 08-20-2004 , 10:35   Sank Sounds (Luke Sankey) (v1.9.1)
Reply With Quote #1

This is a port of the Sank Sounds Plugin from AdminMod to AMXX
it has all its features + some new ones (MP3 SUPPORT)

Players can use keyword in chat and than wav files will be played keyword/wavfile combos are stored in SND-LIST.CFG and not hardcoded.

Put the configfile (snd_list.cfg) into this folder: "addons/amxmodx/configs"

The rar file contains some sounds (original sank sounds + new) and the SND-LIST.7z contains an example SND-LIST.CFG.

Code:
/*
* Credits:
*    - Luke Sankey                ->    original author
*    - HunteR                ->    modifications
*
* Functions included in this plugin:
*    mp_sank_sounds_download    1/0        -    turn internal download system on/off
*    amx_sound                -    turn Sank Sounds on/off
*    amx_sound_help                -    prints all available sounds to console
*    amx_sound_play <dir/sound>        -    plays a specific wav/mp3/speech
*    amx_sound_add <keyword> <dir/sound>    -    adds a word/wav/mp3/speech
*    amx_sound_reload <filename>        -    reload your snd-list.cfg or custom .cfg
*    amx_sound_remove <keyword> <dir/sound>    -    remove a word/wav/mp3
*    amx_sound_write <filename>        -    write all settings to custom .cfg
*    amx_sound_reset <player>        -    resets quota for specified player
*    amx_sound_debug                -    prints debugs (debug mode must be on, see define below)
*    amx_sound_ban <player>            -    bans player from using sounds for current map
*    amx_sound_unban <player>        -    unbans player from using sounds for current map
*    amx_sound_top <x>            -    shows the top <x> most played keywords (leave <x> away for top 10)
*
* Config file settings:
*    SND_WARN                 -     The number at which a player will get warned for playing too many sounds each map
*    SND_MAX                    -    The number at which a player will get muted for playing too many sounds each map
*    SND_MAX_DUR                -    The maximum amount of seconds a player can play sounds each map (float )
*    SND_JOIN                -    The Sounds to play when a person joins the game
*    SND_EXIT                -    The Sounds to play when a person exits the game
*    SND_DELAY                -    Minimum delay between sounds (float)
*    SND_MODE XX                -    Determinates who can play and who can hear sounds (see readme.txt for details)
*    SND_IMMUNITY "XYZ"            -    Determine the access levels which shall have immunity to warn/kick/ban
*    SND_OBEY_DUR XX                -    Determine who shall obey duration before next sound will be played
*    EXACT_MATCH 1/0                -    Determinates if plugin triggers on exact match, or partial speech match
*    ADMINS_ONLY 1/0                -    Determinates if only admins are allowed to play sounds
*    DISPLAY_KEYWORDS 1/0            -    Determinates if keywords are shown in chat or not
*    FREEZE_TIME_CON XX            -    Time in seconds to wait till first sounds are played (applies only to connect/disconnect sounds)
*
* Commands available for each player:
*    amx_sound_help                -    prints all available sounds to console
*    say "/soundson"                -    now the player can hear sounds again
*    say "/soundsoff"            -    player disables ability to hear sounds
*    say "/sounds"                -    shows a list of all sounds
*
History:
VERY IMPORTANT ( 29.02.2008 )
Download the help.zip and READ it (English and German version included)

Previous downloads:


Updating to 1.9.0 or greater will require some little cfg file changes ( sry about that )
just add "sound/" (without quotes) to every WAV (so <mod-dir> is root)
eg: misc/haha.wav should now be sound/misc/haha.wav

Since 1.9.0 new configs were added and CVARs removed. Check changelog or help.7z for more info.

Source is also available at github: https://github.com/ZTHawk/HL1_SankSounds
Attached Files
File Type: rar sounds.rar (690.3 KB, 77825 views)
File Type: 7z SND-LIST.7z (575 Bytes, 1804 views)
File Type: 7z help.7z (6.5 KB, 1468 views)
File Type: sma Get Plugin or Get Source (sank_sounds.sma - 1418 views - 79.8 KB)
__________________
alias White Panther

Last edited by karlos; 07-12-2021 at 08:17.
karlos is offline
martinrb
Junior Member
Join Date: Jun 2004
Old 08-20-2004 , 13:31  
Reply With Quote #2

works very nicely

thank god theres sanks sounds plugin again.
there was this sychosound plugin for amxx but that worked like a pile of wet horseshit.
give it a 5 outta 5
martinrb is offline
Jedi
Member
Join Date: Mar 2004
Location: Houston, TX
Old 08-21-2004 , 11:51  
Reply With Quote #3

Thanks for porting this - great plugin.
Jedi is offline
narcussist
Senior Member
Join Date: Jul 2004
Location: Canton, Ohio
Old 08-21-2004 , 16:42  
Reply With Quote #4

for some reason when ever i use this plugin or at that matter any sound d/l plugin, it always freezes people at the verifying resources. And way to fix this?
__________________
narcussist is offline
Send a message via AIM to narcussist Send a message via MSN to narcussist Send a message via Yahoo to narcussist
supermj
Senior Member
Join Date: May 2004
Location: Georgia
Old 08-21-2004 , 18:37  
Reply With Quote #5

Mine locks up shortly after round starts. CZ Windows server. No error messages in amxx log.

Also tried another plug that did sound and cuss filter, and it locked up before map could even start.
supermj is offline
narcussist
Senior Member
Join Date: Jul 2004
Location: Canton, Ohio
Old 08-21-2004 , 19:10  
Reply With Quote #6

mine would lock up like i said at verifying recorses, i would look on the console screen and it would show nothing wrong, like they was just connected, but they would stay there till they exited, no timeout nothing
__________________
narcussist is offline
Send a message via AIM to narcussist Send a message via MSN to narcussist Send a message via Yahoo to narcussist
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 08-21-2004 , 22:20  
Reply With Quote #7

@narcussist: only with this or other plugins too? try cl_allowupload 1 and download 1, maybe this helps

@supermj: lock up cause of this plugin or do u have it with other too? cant test it on CZ (dont have it) but it should work, maybe something else is wrong
__________________
alias White Panther
karlos is offline
supermj
Senior Member
Join Date: May 2004
Location: Georgia
Old 08-21-2004 , 22:24  
Reply With Quote #8

As soon as I enable it, at mapchange, a few seconds it, it locks up. Disable, restart server...it's good.
supermj is offline
narcussist
Senior Member
Join Date: Jul 2004
Location: Canton, Ohio
Old 08-21-2004 , 22:36  
Reply With Quote #9

Quote:
Originally Posted by karlos
@narcussist: only with this or other plugins too? try cl_allowupload 1 and download 1, maybe this helps
always have that set like that, i even have sv_downloadurl set also
__________________
narcussist is offline
Send a message via AIM to narcussist Send a message via MSN to narcussist Send a message via Yahoo to narcussist
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 08-22-2004 , 10:52  
Reply With Quote #10

sry guys but i dont know whats wrong, i tested with STEAM: cs 1.6 and natural selection, WON: opfor and cs 1.5, all working

maybe its something with CZ or there r other probs, sry guys
__________________
alias White Panther
karlos 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 10:31.


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