AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   DeadChat with Admin PA system NEW 2.1 (https://forums.alliedmods.net/showthread.php?t=537)

KiN | SuicideDog 03-26-2004 23:14

DeadChat with Admin PA system NEW 2.1
 
1 Attachment(s)
This plugin will allow you to VOICE chat the other team when you are dead. Basically it turns on "all talk" to only the dead people, but people that are alive can't hear any of the dead ppl.

New version:

/* AMX Mod script.
*
* DeadChat w/ Admin_PA by SuicideDog
* This file is provided as is (no warranties).
* This plugin will allow for an admin to turn on personal all talk.
*
* If amx_admin_pa_mute is 0 then If you turn the admin PA , everyone
* in the server will hear you and you can hear them, but everyone else
* will have normal voice communitcation.
*
* If amx_admin_pa_mute is 1 (default) then only admins that have turned on
* admin PA can talk and everyone will hear them.
*
* Basically it turns on "all talk" for only the admin
*
* It also does "dead all_talk" which allows all the dead ppl to VOICE chat
* with each other (normal is only to dead teammates) and hear all of the
* alive players (normal is only alive players on the same team hear and
* talk to alive players). Note: alive players cannot hear dead players.
*
* Version 2.0 Updates:
*
* * Added compatiblity with admin_gag plugin.
* * Added Admin PA system (bind a key to admin_pa) to enable disable per user. (ADMIN_KICK req'd)
* * Added ability to mute all players when when admin is talking. (Cvar setting. Default on)
* * Support multiple admin talking at the sametime.
* * Fixed bug that would cause errors in eventlog.
*
* Version 2.1 Update:
*
* * Fixed minor bugs with the muting.
*/
Thanks to v3x and brad for supporting this plugin while I was out.

Let me know if you find any problems

New version now released

Instructions:

Bind a key to "admin_pa" .. enable then use normal voice comm.
Mute all while admin pa is on is enabled by default .. you can disable with cvar.
Deadchat can also be disabled via cvar if you want only use the Admin PA function.

BigBaller 03-26-2004 23:41

This is a good plugin, I have liked this, good to see it make it way to AMXX :)

MagicShot 03-27-2004 05:04

yeah
 
This one is good especially when you want to chat when your dead. :wink:

lobstah 06-05-2004 19:23

does the gag plugin work with this or is it just me?

KiN | SuicideDog 06-05-2004 23:58

don't know.. I never looked at it

|2ob 06-06-2004 22:42

hey, can you delay the client_print like 10 seconds because the StatsMe and StatsX messages after you die make the message disapear after about 1 second, so no1 knows that they can hear eachother till someone talks.

lobstah 06-07-2004 15:46

i will confirm that you can not gag client for more than a round with this plug-in.

By default you gag a guy for 10mins, w/deadchat on they die and respawn with voice enabled again. This totally sucks cause where this is a super plugin to have for us, it does make the option to gag a player needed that much more. In fact, if you combined the two and it worked that would give this baby some real function!

I really loved this one too :( i had vote_alltalk on there, but people start ghosting. sigh...

KiN | SuicideDog 06-07-2004 19:00

that feature could be added.. but I'm not going to do it. This plugin is real simple and I want to keep it that way. We had problems with ppl not shutting up on our server too. The way we fixed it is that we warn ppl once, kicked twice, banned perma third time around. Worked wonders.

if they get the native working in 2.0 I will completely redo this plugin.

|2ob 06-17-2004 19:21

Quote:

Originally Posted by |2ob
hey, can you delay the client_print like 10 seconds because the StatsMe and StatsX messages after you die make the message disapear after about 1 second, so no1 knows that they can hear eachother till someone talks.


^^^^ update plugin please, my users are speaking strategy to the other team without knowing it.

Ðiego 06-17-2004 20:52

Quote:

my users are speaking strategy to the other team without knowing it
Erm..TeamSpeak? Ventrilo?


Ð :S:

KiN | SuicideDog 06-17-2004 21:08

Quote:

Originally Posted by |2ob
Quote:

Originally Posted by |2ob
hey, can you delay the client_print like 10 seconds because the StatsMe and StatsX messages after you die make the message disapear after about 1 second, so no1 knows that they can hear eachother till someone talks.


^^^^ update plugin please, my users are speaking strategy to the other team without knowing it.

I'm not going to mess with the plugin for now. Like I said I will completely redo it when .20 comes out. There will be a new native that will allow me to do all kinds of stuff.

|2ob 06-17-2004 21:10

ok cool, make the dev team work faster!

Naslund 07-12-2004 00:35

I cant get this plugin to work without engine module, & engine crashes my server. Any1 have a engine module that works.
[AMMX] Function not found (name "set_name") (plugin "deadchat.amx")
is what i get in my logs,
unknown unknown unknown deadchat.amx bad load
is what i get in console.

lobstah 07-12-2004 03:12

well when it does deadchat+working gag will be the shiz!

KiN | SuicideDog 07-12-2004 13:11

It's not going to work without it. You need the engine. It's what does the voice stuff. Like I said when 2.0 comes out I will recode this from the ground up.. and I will either add gag.. or make sure it works with the other gag plugins.

Naslund 07-12-2004 19:43

So does this plugin work at all, cuz I cant enable engine module without crashing server.

KiN | SuicideDog 07-12-2004 23:16

This plugin works perfectly if you run the engine module. Why you can't run the engine module when just about everyone else can't I don't know. Sounds like you have a problem with your install or server. Just to let you know that most of the plugins that have effects will require the engine module. Hell there's a bunch that don't even have effects and still require it. I would suggest getting the engine module working rather than trying to find work arounds.

Naslund 07-13-2004 14:43

Thank you, got it working, was another plugin that was crashing server.
This is awesome plugin!!!

KiN | SuicideDog 07-13-2004 18:31

no prob.. glad you like it.

Janzert 10-04-2004 12:06

Is anyone using this with 0.20?

It compiles and seems to run fine, but the server seems to crash a couple minutes after enabling it.

Janzert

Kamikaze 10-10-2004 12:51

AMXX 0.20:

L 10/09/2004 - 15:44:05: [AMXX] Run time error 10 (native) on line 26 (file "C:\Documents and Settings\Brad.ADMIN-WINXP\Desktop\scripting\deadchat.sma").
L 10/09/2004 - 15:44:05: [Engine] Invalid player 6

Coding:

Code:
public alive(id){ if ( get_cvar_num("amx_deadchat")!=1 ) return  PLUGIN_CONTINUE set_speak(id, SPEAK_NORMAL)  <------- Line 26 return PLUGIN_CONTINUE }

mdehamer 12-02-2004 13:56

Can anyone confirm that this plugin works with the newest version of AMX Mod X?

Thanks!

spode 12-06-2004 10:44

Have you tried it?
I am using it and it seems to work fine. Very popular on our Pub Server.

lobstah 02-23-2005 02:58

Another great plugin that doesnt work in 1.0. Can someone fix this to work w/gag or just work? Why leave it here otherwise? Uncheck this one or something?

v3x 02-23-2005 03:00

Nice, didn't see this until just now :).

lobstah 02-23-2005 16:32

got it working w/1.0...it was loading stopped for some reason.

gag still doesn't work w/it.

s.w.a.t 03-22-2005 13:14

L 03/21/2005 - 23:01:10: [AMXX] Native error in "set_speak" on line 26 (plugin "deadchat.amxx").
L 03/21/2005 - 23:01:10: [ENGINE] Invalid player 1
L 03/21/2005 - 23:10:13: [mapchooser.amxx] Vote: Voting for the nextmap started
L 03/21/2005 - 23:10:18: [afkkicker.amxx] -=TA=-[WeEd}{WiZaRd] was kicked for being AFK longer than 90 seconds
L 03/21/2005 - 23:10:28: [mapchooser.amxx] Vote: Voting for the nextmap finished. Map aim_ak-colt will be extended to next 15 minutes
L 03/21/2005 - 23:12:25: [AMXX] Native error in "set_speak" on line 26 (plugin "deadchat.amxx").
L 03/21/2005 - 23:12:25: [ENGINE] Invalid player 18

; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)

; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
;adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management

; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)

; Chat / Messages
adminchat.amxx ; console chat commands
;antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands

; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map

; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands

; Counter-Strike
restmenu.amxx ; restrict weapons menu
statsx.amxx ; stats on death or round end (CSX Module required!)
miscstats.amxx ; bunch of events announcement for Counter-Strike
stats_logging.amxx ; weapons stats logging (CSX Module required!)


; Custom - Add 3rd party plugins here
warcraft3FT.amxx debug
;lastmanbets.amxx
breakable_doors.amxx
deadchat.amxx debug
;psrank.amxx
afkkicker.amxx
server_rules.amxx
RunPlanting.amxx debug
emptyserver.amxx
specbugfix.amxx
awp_map_control.amxx debug
dgcawpmap.amxx
hostage_events.amxx
;statssounds.amxx
loadingsound.amxx
;adminlisten.amxx
psycholisten.amxx debug
;amx_rocket.amxx
;admin_flash.amxx

; AMX Mod X Modules
; You can specify both linux & win32 modules here
; To enable a module, remove the semi-colon from the line

; ------------------------------
; Fun - provides extra functions
; ------------------------------
fun_amxx_i386.so
fun_amxx.dll
fun_amxx_amd64.so

; ----------------------------------------------------
; Engine - provides engine functions core to Half-Life
; ----------------------------------------------------
;engine_amxx_i386.so
engine_amxx.dll
;engine_amxx_amd64.so

; ----------------------------------------------------------
; Fakemeta - provides a massive interface into the HL engine
; ----------------------------------------------------------
;fakemeta_amxx_i386.so
;fakemeta_amxx.dll
;fakemeta_amxx_amd64.so

; -------------------------------------------
; Database Access - only enable one of these
; -------------------------------------------
; MySQL
;mysql_amxx_i386.so
mysql_amxx.dll
;mysql_amxx_amd64.so
; PostgreSQL
;pgsql_amxx_i386.so
;pgsql_amxx.dll
; Microsoft SQL
;mssql_amxx.dll
; SQLite
;sqlite_amxx.dll
;sqlite_amxx_i386.so
;sqlite_amxx_amd64.so

; ---------------------------------------------
; GeoIP - determines the country of ip adresses
; ---------------------------------------------
;geoip_amxx_i386.so
;geoip_amxx.dll
;geoip_amxx_amd64.so

; ------------------------------------
; Array - advanced arrays in scripting
; ------------------------------------
;array_amxx_i386.so
;array_amxx.dll
;array_amxx_amd64.so

; --------------------------------
; Sockets - network socket support
; --------------------------------
;sockets_amxx_i386.so
;sockets_amxx.dll
;sockets_amxx_amd64.so

; --------------------------
; Regular Expression support
; --------------------------
;regex_amxx_i386.so
;regex_amxx.dll
;regex_amxx_amd64.so

; ----------------------------------------------------------
; Counter-Strike - adds functions specific to Counter-Strike
; ----------------------------------------------------------
cstrike_amxx_i386.so
cstrike_amxx.dll
cstrike_amxx_amd64.so

; -----------------------------------------------------
; CSX - adds functionality for CS statistics and events
; -----------------------------------------------------
csx_amxx_i386.so
csx_amxx.dll
csx_amxx_amd64.so

war3ft_amxx.dll


metamod 1.17.4 and latest amxx version

Brad 06-11-2005 15:52

Uh, head's up if it's not working for you. You have to have sv_alltalk set to 0 for this to work.

bmann_420 07-12-2005 05:21

This Works great, the only thing is i was wondering why i got this every now and then?
Code:

L 07/12/2005 - 22:06:53: [AMXX] Native error in "set_speak" on line 26 (file "deadchat.sma").
L 07/12/2005 - 22:06:53: [Engine] Invalid player 11

Code:

public alive(id){
                if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE
                set_speak(id, SPEAK_NORMAL)
                return PLUGIN_CONTINUE

every now and then, just wondering what it was and if i can get rid of it, thankx

v3x 07-12-2005 05:35

Code:
#include <amxmodx> #include <engine> public death(){         if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE         new id = read_data(2)         if( !is_user_connected(id) ) return PLUGIN_CONTINUE         set_speak(id, SPEAK_LISTENALL)         client_print(id,print_center,"You are dead now, you can chat with other team via voice")         return PLUGIN_CONTINUE }   public alive(id){         if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE         if( !is_user_connected(id) ) return PLUGIN_CONTINUE         set_speak(id, SPEAK_NORMAL)         return PLUGIN_CONTINUE }   public plugin_init() {     register_plugin("Dead_Can_Talk","0.1","SuicideDog")     register_event("DeathMsg","death","a")     register_event("ResetHUD","alive","b")     register_cvar("amx_deadchat","1") }
:wink:

bmann_420 07-12-2005 15:19

Is that the whole thing? all of it? (ready to compile) sry :wink:

v3x 07-12-2005 15:20

Yea, I took out the comments but you can add them back in if you want. :P

bmann_420 07-12-2005 15:21

That was the fastest reply ive ever seen in my life :D (20 sec reply) Such a cool guy v3x is :D :D I just replaced it, thankx

Brad 07-12-2005 20:23

Thanks for the correction to the file v3x. I use this plugin and didn't even realize it had a problem.

v3x 07-12-2005 21:01

Lots of plugins do.

Brad 08-19-2005 11:30

I've taken v3x's code and made it specifically compatible with the admin gag and voicecomm ban plugins (both created by EKS). The code below is generically compatible with any plugin that mutes a player.

One caveat. When the player is allowed to speak again, they will be able to speak according to the server's setting as opposed to if they are dead or alive, until such time that they die or respawn.

Code:
/* AMX Mod script. * * DeadChat by SuicideDog * Minor revisions by v3x and Brad Jones * This file is provided as is (no warranties). * This plugin will allow you to voice chat the other team when you are dead. * Basically it turns on "all talk" to only the dead people, but people that alive * can't hear any of the dead ppl. * * This plugin is good for those more social servers! * */ #include <amxmodx> #include <engine> public death(){         if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE         new id = read_data(2)         if( !is_user_connected(id) || get_speak(id) == SPEAK_MUTED ) return PLUGIN_CONTINUE         set_speak(id, SPEAK_LISTENALL)         client_print(id,print_center,"You are dead now, you can chat with other team via voice")         return PLUGIN_CONTINUE }     public alive(id){         if ( get_cvar_num("amx_deadchat")!=1 ) return PLUGIN_CONTINUE         if( !is_user_connected(id) || get_speak(id) == SPEAK_MUTED ) return PLUGIN_CONTINUE         set_speak(id, SPEAK_NORMAL)         return PLUGIN_CONTINUE } public plugin_init() {     register_plugin("Dead_Can_Talk","0.1","SuicideDog")     register_event("DeathMsg","death","a")     register_event("ResetHUD","alive","b")     register_cvar("amx_deadchat","1") }

Bonesmuggler 09-14-2005 22:40

error message in logs
 
anyone help me with this , I get this error and it won't work on my server:

L 09/14/2005 - 21:18:46: [AMXX] Plugin uses an unknown function (name "set_speak") - check your modules.ini. (plugin "deadchat.amxx")
L 09/14/2005 - 21:18:46: [AMXX] Plugin uses an unknown function (name "set_speak") - check your modules.ini. (plugin "adminlisten.amxx")

Also what is this
#include <engine>
where do I get this or do I already have not really sure :)


Thanks
Bonesmuggler

v3x 09-14-2005 23:45

You already have Engine, you need to go to your modules file and remove the ';' in front of the proper one.

Captain Tuffy 09-24-2005 09:44

Little trouble
 
I love this plugin, but I also love the voicecomm ban plugin. I have an older version of the voicecomm ban plugin that has always worked and I am using amxx 1.01 still. When I installed this plugin, it worked properly, however the voicecomm ban plugin although still displaying as working correctly, does not actually ban their voice.

I know that the half-life voice module is limited and it may not be possible to get them both to work. However if their was a way, like simply loading one plugin before the other, I would appreciate it if someone knew.

Thank you

Quote:

The apple never lies far from the tree.
-Common Sense
http://www.serverspy.net/bin/hmon/63...15/0/image.png

MattOG 02-16-2006 07:14

if i set sv_alltalk to 1, will this allow dead--->dead chat and alive-->alive chat ONLY???? basically I want a plugin that allows voice comms to all people (sv_alltalk 1) when alive, but then when u die, only the dead can hear you.


All times are GMT -4. The time now is 10:18.

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