Raised This Month: $ Target: $400
 0% 

chat custom


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 06-14-2012 , 19:21   chat custom
Reply With Quote #1

hello

i create visible chat to all player a simple plugin.
plugin will work.
however, the chat command of other plugin such as the rtv is no work.

How can I resolve this problem I do?

PHP Code:
#include <amxmodx>
#include <colorchat>
#include <cstrike>

public plugin_init()
{
    
register_clcmd("say""cmd_say")
}

public 
cmd_say(id)
{
    new 
message[192]
    
read_args(messagecharsmax(message))
    
remove_quotes(message)
                
    new 
name[32]
    
get_user_name(idname31)

    if(
is_user_alive(id))
    {
        
ColorChat(0TEAM_COLOR"^x03%s ^x01:  %s"namemessage)

        return 
PLUGIN_HANDLED
    
}
    else
    {
        
ColorChat(0TEAM_COLOR"^x01*DEAD* ^x03%s ^x01:  %s"namemessage)

        return 
PLUGIN_HANDLED
    
}

    if(
cs_get_user_team(id) == CS_TEAM_SPECTATOR)
    {
        
ColorChat(0TEAM_COLOR"^x01*SPECTATOR* ^x03%s ^x01:  %s"namemessage)

        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

RuRuRu612754 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-14-2012 , 20:15   Re: chat custom
Reply With Quote #2

Put this plugin at the very end of plugins.ini. If you have further issues after this fix then it's likely you have a plugin or plugins that are not compatible with this one.
__________________
fysiks is offline
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 06-15-2012 , 03:35   Re: chat custom
Reply With Quote #3

@fysiks

thanks

i will try
RuRuRu612754 is offline
Reply


Thread Tools
Display Modes

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 06:06.


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