Raised This Month: $100 Target: $400
 25% 

Silent Nades .:silence is your friend:.


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   VEN (29)
regalis
Veteran Member
Join Date: Jan 2007
Old 04-17-2007 , 09:58   Silent Nades .:silence is your friend:.
Reply With Quote #1

Silent Nades


Quote:
/********************************************* *************************************
* Author: regalis ([email protected])
*
* Version: 1.0
*
*
* Description:
* This plugin removes the message "Fire in the hole" and the sound "Fire in the hole" for every nade.
* Every player can for himself choose if he want to hear/read the Nade-Sounds/Messages by simple client-commands
* Thats all
*
*
* CVARS:
* -amx_snilentnades 1|0 (1 = enabled | 0 = disabled)
* -amx_sn_mode 0|1|2 (0 = S:OFF M:OFF | 1 = S:OFF M:ON | 2 = S:ON M:OFF)
*
*
* Console-Commands available for admins:
* -amx_sntoggle - Toggles Silent-Nades ON|OFF
* -amx_snmode - Toggles between the 3 Silent-Nades Modes (S:ON M:OFF | S:OFF M:ON | S:OFF M:OFF)
*
*
* Commands available for each player:
* say "/fithmsg" to toggle Nade-messages ON/OFF
* say "/fithsnd" to toggle Nade-sounds ON/OFF
* say "/fith" for an info message on how to enable/disable the sounds/messages
*
*
* Changelog:
* V0.1.0
* @Release
*
* V0.2.0
* +Added CS:CZ support, requested and suggested by mogel and Ryu2877
*
* V0.2.5
* +Added Client commands so that everyone can choose for himself if want to hear/read the Nade-sounds/messages
* +Added a welcome-message with the client command to get help
* +Added a help-message which displays info on how to enable/disable the sounds/messages
*
* V0.3.0
* +Added Admin commands to disable/enable the whole plugin
* +Added Admin commands to toggle between 3 modes:
* 1. Sound: ON / Messages: OFF
* 2. Sound: OFF / Messages: ON
* 3. Sound: OFF / Messages: OFF
*
*
* V0.3.5
* +Added ShowSyncHudMsg() support
* +Added set_user_info() support for saving settings even after roundstart|reconnect
*
* V1.0
* !Optimized code a little
* @Got approved and therefore changed Version to 1.0
*
*
* Known Bugs:
* -NONE-
*
*
* TODO:
* +Add a procedure to save the player preferences so they will not be cleared on changelevel or reconnect.
*
*
* Credits:
* Angelina for the initial idea to make this plugin!
* mogel and Ryu2877 for giving me the hint to adjust the argument number to 6 for CS:CZ support
* VEN for the idea that everyone should be able to enable/disable the Messages/Sounds for himself
* "Message Logging 1.17" by Damaged Soul VERY usefull!!! *omg*
* http://wiki.alliedmods.net/Main_Page
* http://www.amxmodx.org/doc/
*
********************************************* **************************************/
.
.
.
Have fun and enjoy the silence ;)
greetz regalis
.
.
All views: 34

Attached Files
File Type: sma Get Plugin or Get Source (silent_nades.sma - 6260 views - 10.7 KB)
__________________

Last edited by regalis; 05-14-2007 at 10:38. Reason: NEW Version 1.0 uploaded
regalis is offline
Old 04-17-2007, 10:52
Angelina
This message has been deleted by Angelina.
regalis
Veteran Member
Join Date: Jan 2007
Old 04-17-2007 , 11:02   Re: Silent-Nades
Reply With Quote #2

Nice to get positive feedback
Makes me feel good *hihi*

But though i had to fix a little bug!
Now it should work flawlessly ;)

Thanks allot
regalis
__________________

Last edited by regalis; 04-17-2007 at 12:04. Reason: Updated first post because of bug fixing
regalis is offline
Old 04-17-2007, 13:20
godlike
This message has been deleted by Brad. Reason: godlike, STFU. if you think a plugin is lame, don't bother commenting on it. how dumb are you?
Old 04-17-2007, 13:25
regalis
This message has been deleted by Brad. Reason: godlike, STFU. if you think a plugin is lame, don't bother commenting on it. how dumb are you?
Old 04-17-2007, 13:33
godlike
This message has been deleted by Brad. Reason: godlike, STFU. if you think a plugin is lame, don't bother commenting on it. how dumb are you?
Ryu2877
Member
Join Date: Sep 2006
Location: China
Old 04-18-2007 , 03:58   Re: Silent-Nades
Reply With Quote #3

subjective instance: you may add a estimation of mod ( CZ | CS ) to make this plugin work in both of them.
Quote:
public block_FITH_message()
{
if(get_msg_args() == 5)
{
if(get_msg_argtype(5) == ARG_STRING)
{
new value[64]
get_msg_arg_string(5 ,value ,63)
in CZ mod, this paramater is ">5" or "6"
Ryu2877 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-18-2007 , 07:08   Re: Silent-Nades
Reply With Quote #4

This plugin would be even more useful if you allow to control on/off/text/audio modes for the whole server as well as for any client for himself.
VEN is offline
regalis
Veteran Member
Join Date: Jan 2007
Old 04-18-2007 , 07:11   Re: Silent-Nades
Reply With Quote #5

Thanks for the information,
you are right, i already working on that ;)

btw: it`s made...now it supports CS:CZ


greetz regalis

@VEN: thats just exactly the same idea i had yesterday under the shower! *g*
Thanks for the suggestion, now i have to credit you )
I'm working on that ;)
__________________

Last edited by regalis; 04-18-2007 at 07:15. Reason: answer VENīs suggestion
regalis is offline
Dark Kingdom
BANNED
Join Date: Apr 2007
Location: VT
Old 04-18-2007 , 09:42   Re: Silent-Nades
Reply With Quote #6

Good plugin.
Dark Kingdom is offline
regalis
Veteran Member
Join Date: Jan 2007
Old 04-18-2007 , 16:44   Re: Silent-Nades
Reply With Quote #7

Quote:
Originally Posted by VEN View Post
This plugin would be even more useful if you allow to control on/off/text/audio modes for the whole server as well as for any client for himself.
-New Version uploaded!
-Now with client commands to enable/disable sound and/or messages.
-Also a CVAR added to enable/disable the whole plugin functionality.

If anyone know a good feature which it misses..do me a pleasure and tell me

greetz regalis
__________________
regalis is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 04-18-2007 , 18:07   Re: Silent-Nades
Reply With Quote #8

Awesome stuff dude! This is an excellent idea! I hate "Fire In The Hole!" when I'm on an he_map and there's constant legal nade spamming!
SubStream is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-18-2007 , 18:07   Re: Silent-Nades
Reply With Quote #9

Gj regalis, this is quite useful
Deviance is offline
regalis
Veteran Member
Join Date: Jan 2007
Old 04-18-2007 , 18:56   Re: Silent-Nades
Reply With Quote #10

Thank not me, thank Angelina...she has the idea i only coded it..
And to be true, it wasn't that hard

Thank you very much guys for your compliments on this plugin!

greetz regalis
__________________
regalis 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 05:19.


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