AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Admin see player chats. (https://forums.alliedmods.net/showthread.php?t=87924)

Metanabol 03-18-2009 09:27

[HELP] Admin see player chats.
 
Hello, i try to make script what shows all chats to admins ;)
here is part of source.. i dont know how to format message to admins and etc... thanks :)
PHP Code:

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    
register_plugin ("See all chats""1.0""Metanabol")
    
register_clcmd ("say""chat")
    
register_clcmd ("say_team""team_chat")
}
public 
chat(id)
{
    
read_args (message191)
    new 
name[32]
    
get_user_name (idname31)
    if(
get_user_flags(id) & ADMIN_CHAT)
    
    
    
//I need to make, seeing messages for ADMIN_CHAT flags users like: DEAD admin see alive players chats or alive admin see DEAD players chats.
    //Also see what players type in say_team :)
}
public 
team_chat(id)
{
    
read_args (message191)
    new 
name[32]
    
get_user_name (idname31)
    if(
get_user_flags(id) & ADMIN_CHAT)
    
    
    
//I need to make, seeing messages for ADMIN_CHAT flags users like: DEAD admin see alive players chats or alive admin see DEAD players chats.
    //Also see what players type in say_team :)



Arkshine 03-18-2009 09:42

Re: [HELP] Admin see player chats.
 
This plugin should help you : http://forums.alliedmods.net/showthread.php?p=571811


All times are GMT -4. The time now is 09:00.

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