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

[REQ] Admin Sess All Chats


Post New Thread Reply   
 
Thread Tools Display Modes
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 07-21-2012 , 16:16   Re: [REQ] Admin AllChat
Reply With Quote #11

I`ve tested that plugin and it doesn`t work properly.
Will someone do that what I want ?
Lolz0r is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 08-04-2012 , 18:00   Re: [REQ] Admin AllChat
Reply With Quote #12

Everyone ?

I found allchat plugin for all players, but I want only for admins..
Lolz0r is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-05-2012 , 05:26  
Reply With Quote #13

Quote:
Originally Posted by Lolz0r View Post
Everyone ?

I found allchat plugin for all players, but I want only for admins..
Post it and maybe someone will mod it
Doc-Holiday is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 08-05-2012 , 06:25   Re: [REQ] Admin AllChat
Reply With Quote #14

See post of ConnorMcLeod :

http://forums.alliedmods.net/showthr...hlight=allchat
Lolz0r is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 09-04-2012 , 10:01   Re: [REQ] Admin AllChat
Reply With Quote #15

Bump.
Lolz0r is offline
sonel
Member
Join Date: Jul 2012
Old 09-06-2012 , 19:26   Re: [REQ] Admin AllChat
Reply With Quote #16

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Admin read all"
#define VERSION "1.0"
#define AUTHOR "GmTx"

new g_AdminListen

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_AdminListen register_cvar ("amx_listen""1"
    
    
register_clcmd ("amx_listen""see_all"ADMIN_IMMUNITY"<1 | 0>")    
}

public 
see_all (idlevelcid)
{
    if (!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED
        
    
new arg[1], newListen
    read_argv
(1arg1)
    
    
newListen str_to_num (arg)
    
    
set_cvar_num ("amx_listen"newListen)
    
set_pcvar_num (g_AdminListennewListen)
    
    return 
PLUGIN_HANDLED

</span></span>
sonel is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 09-08-2012 , 10:10   Re: [REQ] Admin AllChat
Reply With Quote #17

This doesn`t work as well..

I have this plugin which they wrote for me, but there is a bug, when someone writes something everyone write it, here is a pic :

PHP Code:
#include <amxmodx>

new bool:g_bAdmin[33];

new 
bool:g_bConnected[33];

new 
g_iMaxPlayers;

public 
plugin_init() 
{
    
register_plugin("Admin sees all""1.0""SpeeD");
    
    
register_message(get_user_msgid("SayText"), "Message_SayText");
    
    
g_iMaxPlayers get_maxplayers();
}

public 
Message_SayText(iMsgIdMSG_DESTsender

    static 
szChannel[40];
    
get_msg_arg_string(2szChannelcharsmax(szChannel)) ;
    
    if(
equal(szChannel"#Cstrike_Chat"13)) 
    { 
        static 
szMessage[256];
        
        if(
equal(szChannel"#Cstrike_Chat_All")) 
        { 
            
formatex(szMessagecharsmax(szMessage), "^3%%s1 ^1: %%s2");
        } 
        else 
        { 
            
formatex(szMessagecharsmax(szMessage), "^3%s"szChannel);
        } 
        
        
SendMessage(iMsgIdszMessagesender);
    } 


public 
client_putinserver(id)
{
    
g_bAdmin[id] = ( get_user_flags(id) & ADMIN_IMMUNITY true false);
    
    
g_bConnected[id] = true;
}

public 
client_disconnect(id)
{
    
g_bConnected[id] = false;
}

SendMessage(MSG_ID, const message[], const sender)
{
    for(new 
receiver 1receiver <= g_iMaxPlayersreceiver++)
    {
        if(
g_bConnected[receiver] && g_bAdmin[receiver] && sender != receiver)
        {
            
message_begin(MSG_ONE_UNRELIABLEMSG_ID_receiver);
            
write_byte(sender);
            
write_string(message);
            
message_end();
        }
    }

http://prikachi.com/images.php?images/849/5170849I.jpg
http://prikachi.com/images.php?images/852/5170852Y.jpg

if someone can fix it or can suggest me something else ?
Lolz0r is offline
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 16:36.


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