Raised This Month: $ Target: $400
 0% 

chat custom


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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