AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   chat custom (https://forums.alliedmods.net/showthread.php?t=187558)

RuRuRu612754 06-14-2012 19:21

chat custom
 
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



fysiks 06-14-2012 20:15

Re: chat custom
 
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.

RuRuRu612754 06-15-2012 03:35

Re: chat custom
 
@fysiks

thanks

i will try


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

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