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

AdminListen 2.3x (Maxim)


Post New Thread Reply   
 
Thread Tools Display Modes
Dzyzus
Senior Member
Join Date: Mar 2004
Location: Lithuania
Old 11-22-2006 , 11:45   Re: AdminListen 2.3x (Maxim)
Reply With Quote #51

1.76a
Code:
L 11/22/2006 - 18:54:57: [AMXX] Displaying debug trace (plugin "adminlisten.amxx")
L 11/22/2006 - 18:54:57: [AMXX] Run time error 4: index out of bounds 
L 11/22/2006 - 18:54:57: [AMXX]    [0] adminlisten.sma::catch_say (line 62)
__________________
Dzyzus is offline
Pamaliska
Senior Member
Join Date: Apr 2006
Location: Edinburgh, UK
Old 02-14-2007 , 18:41   Re: AdminListen 2.3x (Maxim)
Reply With Quote #52

any updates?
Pamaliska is offline
nemesis5858
New Member
Join Date: Mar 2007
Old 03-28-2007 , 11:29   Re: AdminListen 2.3x (Maxim)
Reply With Quote #53

when I try to close the listening with amx_adminlisten_voice 0 I can still see the say and team_say. how can I close them?
nemesis5858 is offline
kidKendude
Member
Join Date: May 2007
Old 06-17-2007 , 19:21   Re: AdminListen 2.3x (Maxim)
Reply With Quote #54

Is there anyway I can just read the team_say and not say?

I've got ghost chat on my server, and if you have this plugin in also, it will say it twice, and it gets annoying. I just need it for team_say.
kidKendude is offline
Qlim4X
Member
Join Date: Jun 2007
Old 07-17-2007 , 01:51   Re: AdminListen 2.3x (Maxim)
Reply With Quote #55

Hi

i install the 2.3x version in my amx mod x servers

i just want to have a command to turn on or off the chat for clan match or tours

the voice part i dont use it.

any ideas???

edited

my litle try with a command and cvar.

now i need with some way to control the say method with the cvar

help pliz

Quote:
//ported by Oj@eKiLLzZz
// ********************************************* **********************************
// Admin Listen 2.3x, Also Copyright 2004, /dev/ urandom. No Warranties,
// either expressed or implied.
// Props to Maxim for the remake of Luke Sankeys original plugin.
// Props to Luke Sankey for the original AdminMod plugin (SankListen).
// Inspired by PsychoListen by PsychoGuard
//
// Allows administrators (with flag "n") to see all team chats, and dead chats.
//
// Use amx_adminlisten_voice 0|1 to turn off and on the hearing of voicecomms

// In 2.0 the Chat Engine was totally rewritten from ground up,
// a different, more efficent method, was used to pick up say messages,
// also fewer calculations and variables in this version.
//
// 2.1 - VoiceComm rewrite, fixed a few typos in the comments.
//
// 2.2 - Updated for Condition Zero 1.2, Note that while I've attempted to keep
// backwards compatability with other mods, I cannot vouch for it working
// in other mods as I only have a CS:CZ server to test it in.
//
// 2.3 - Updated to work with Counter-Strike after steams update June 14, 2004.
// ********************************************* **********************************


#include <amxmodx>
#include <amxmisc>
#include <engine>

// Counter for the SayText event.
new count[32][32]
new g_voice_status[2]

public catch_say(id)
{

new reciever = read_data(0) //Reads the ID of the message recipient
new sender = read_data(1) //Reads the ID of the sender of the message
new message[151] //Variable for the message
new channel[151]
new sender_name[32]

if (is_running("czero")||is_running("cstrike"))
{
read_data(2,channel,150)
read_data(4,message,150)
get_user_name(sender, sender_name, 31)
} else {
read_data(2,message,150)
}

// DEBUG.
// console_print(0, "DEBUG MESSAGE: %s", message)
// console_print(0, "DEBUG channel: %s", channel)
// console_print(0, "DEBUG sender: %s, %i", sender_name, sender)
// console_print(0, "DEBUG receiver: %i", reciever)

//With the SayText event, the message is sent to the person who sent it last.
//It's sent to everyone else before the sender recieves it.

// Keeps count of who recieved the message
count[sender][reciever] = 1
// If current SayText message is the last then...
if (sender == reciever)
{
new player_count = get_playersnum() //Gets the number of players on the server
new players[32] //Player IDs
get_players(players, player_count, "c")

for (new i = 0; i < player_count; i++)
{
// If the player is an admin...
if (get_user_flags(players[i]) & ADMIN_BAN)
{
// If the player did not recieve the message then...
if (count[sender][players[i]] != 1)
{
message_begin(MSG_ONE, get_user_msgid("SayText"),{0,0,0},players[i])
// Appends the ID of the sender to the message, so the engine knows what color to make the name.
write_byte(sender)
// Appends the message to the message (depending on the mod).
if (is_running("czero")||is_running("cstrike"))
{
write_string(channel)
write_string(sender_name)
}
write_string(message)
message_end()
}
}
count[sender][players[i]] = 0 //Set everyone's counter to 0 so it's ready for the next SayText
}
}

return PLUGIN_CONTINUE
}

public set_adminchat(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED

new set_chat[32]
read_argv(1, set_chat, 31)

set_cvar_string("amx_chat_admin", set_chat)
server_cmd("amx_chat The Admin Spectate chat is ^"%s^"", set_chat)

server_exec()

return PLUGIN_CONTINUE

}

public plugin_init(){
register_plugin("AdminListen","2.3x","/dev/ urandom")
register_srvcmd("amx_adminlisten_voice","voic e_status")
register_event("SayText","catch_say","b")
register_concmd("pro_chat", "set_adminchat", ADMIN_BAN, "<1/0>")
register_cvar("amx_chat_admin","0",FCVAR_ARCH IVE|FCVAR_PROTECTED)
return PLUGIN_CONTINUE
}

public plugin_modules(){
require_module("engine")
}

// *********************
// VoiceComm Stuff
// *********************

public client_infochanged(id)
{
if ((get_user_flags(id) & ADMIN_BAN) && equal(g_voice_status,"1")) set_speak(id, 4)
}

public client_connect(id)
{
if ((get_user_flags(id) & ADMIN_BAN) && equal(g_voice_status,"1")) set_speak(id, 4)
}

public voice_status(){
read_argv(1,g_voice_status,1)
new player_count = get_playersnum()
new players[32] //Player IDs
get_players(players, player_count, "c")
for (new i = 0; i < player_count; i++) {
if ((get_user_flags(players[i]) & ADMIN_BAN)){
if (equal(g_voice_status,"0")) set_speak(players[i], 0)
if (equal(g_voice_status,"1")) set_speak(players[i], 4)
}
}
}

Last edited by Qlim4X; 07-17-2007 at 12:08.
Qlim4X is offline
Old 07-26-2007, 02:51
Lee
This message has been deleted by Lee.
AJIekceu4
Junior Member
Join Date: Jan 2006
Old 08-11-2007 , 13:21   Re: AdminListen 2.3x (Maxim)
Reply With Quote #56

Hello All!
The help in small updating AdminListen 2.3 is necessary.
Prompt, that is necessary to change in a code that the admin could see all chat dead and alive players from an opposite team, only after a small time interval, for example, 2 minutes. Thus he cannot prevent their command game.
I think, that it is necessary to change this piece of a code, having added set_task:

PHP Code:
// If the player did not recieve the message then...
if (count[sender][players[i]] != 1)

message_begin(MSG_ONEget_user_msgid("SayText"),{0,0,0},players[i])
// Appends the ID of the sender to the message, so the engine knows what color to make the name.
write_byte(sender)
// Appends the message to the message (depending on the mod).
if (is_running("czero")||is_running("cstrike"))
{
write_string(channel)
write_string(sender_name)
}
write_string(message)
message_end()
}
}
count[sender][players[i]] = //Set everyone's counter to 0 so it's ready for the next SayText

But I am not familiar with programming, therefore it I can not make myself.
I apologize for my bad English, not English-speaking.
AJIekceu4 is offline
V I R U S
Senior Member
Join Date: Jul 2004
Location: Russia / Germany
Old 12-16-2007 , 00:10   Re: AdminListen 2.3x (Maxim)
Reply With Quote #57

No one can help us here?! Is that so hard for some ppl here?!
__________________
V I R U S is offline
Send a message via ICQ to V I R U S
kaotiksz
New Member
Join Date: Feb 2008
Old 02-21-2008 , 23:08   Re: AdminListen 2.3x (Maxim)
Reply With Quote #58

i have a problem. this plugin makes it so when i talk or anyone elses talk it appears twice.
kaotiksz is offline
qali
New Member
Join Date: Nov 2007
Old 03-16-2008 , 08:40   Re: AdminListen 2.3x (Maxim)
Reply With Quote #59

I installed this plug-in for my server. it was working. But I upgraded my amx mode from 1.76a to 1.8.0. I tried to use it after upgrade. But altought everything is Ok, it isn't workin.

I didn't change any step while installing this plug-in. Please help! I need it!
qali is offline
V I R U S
Senior Member
Join Date: Jul 2004
Location: Russia / Germany
Old 03-25-2008 , 23:50   Re: AdminListen 2.3x (Maxim)
Reply With Quote #60

Use this one : http://forums.alliedmods.net/showthread.php?t=67866
__________________
V I R U S is offline
Send a message via ICQ to V I R U S
Reply



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 08:07.


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