AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Silent Nades .:silence is your friend:. (https://forums.alliedmods.net/showthread.php?t=54110)

regalis 04-17-2007 08:58

Silent Nades .:silence is your friend:.
 
1 Attachment(s)
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


regalis 04-17-2007 10:02

Re: Silent-Nades
 
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

Ryu2877 04-18-2007 02:58

Re: Silent-Nades
 
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"

VEN 04-18-2007 06:08

Re: Silent-Nades
 
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.

regalis 04-18-2007 06:11

Re: Silent-Nades
 
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 :o)
I'm working on that ;)

Dark Kingdom 04-18-2007 08:42

Re: Silent-Nades
 
Good plugin.

regalis 04-18-2007 15:44

Re: Silent-Nades
 
Quote:

Originally Posted by VEN (Post 466676)
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

SubStream 04-18-2007 17:07

Re: Silent-Nades
 
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!

Deviance 04-18-2007 17:07

Re: Silent-Nades
 
Gj regalis, this is quite useful :)

regalis 04-18-2007 17:56

Re: Silent-Nades
 
Thank not me, thank Angelina...she has the idea i only coded it.. :oops:
And to be true, it wasn't that hard :wink:

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

greetz regalis


All times are GMT -4. The time now is 04:54.

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