AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ColorChats bugs (https://forums.alliedmods.net/showthread.php?t=328300)

Ace67 11-03-2020 15:26

ColorChats bugs
 
When i want compile i have error like
//// Host_Say.sma
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\Host_Sa y.sma(33) : error 017: undefined symbol "client_print_color"



PHP Code:

#include < amxmodx >

#pragma semicolon 1

#define PLUGIN ""
#define VERSION "0.0.1"

#define cm(%0)    ( sizeof(%0) - 1 )

public plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" );

    
register_clcmd("say""Host_Say"0);
    
register_clcmd("say_team""Host_Say"1);
}

public 
Host_Say(id)
{
    static 
said[190];
    
read_args(saidcharsmax(said));
    
remove_quotes(said);

    if( !
said[0] || containi(said"%s%s") != -)
    {
        return 
PLUGIN_HANDLED;
    }

    new 
name[32];
    
get_user_name(idnamecharsmax(name));
    new 
team get_user_team(id);

    
client_print_color(0id"%s^4[%s] ^3%s^1: %s",
                                                    
is_user_alive(id) ? "" "^1*DEAD* "
                                                        
team == "ZOMBIE" random(2) ? "HERO" "HUMAN",
                                                                
name,
                                                                        
said);

    return 
PLUGIN_HANDLED_MAIN// so chat cmds gonna work.



Napoleon_be 11-03-2020 15:43

Re: ColorChats bugs
 
u need the include / stock for it.

Ace67 11-03-2020 16:13

Re: ColorChats bugs
 
Quote:

Originally Posted by Napoleon_be (Post 2723612)
u need the include / stock for it.

Can u help me for the include and the stock ?

Napoleon_be 11-03-2020 16:36

Re: ColorChats bugs
 
Quote:

Originally Posted by Ace67 (Post 2723617)
Can u help me for the include and the stock ?

Either upgrade to 1.8.3 or use this: https://forums.alliedmods.net/showthread.php?t=94960

Next time search please...

Ace67 11-03-2020 16:54

Re: ColorChats bugs
 
Quote:

Originally Posted by Napoleon_be (Post 2723623)
Either upgrade to 1.8.3 or use this: https://forums.alliedmods.net/showthread.php?t=94960

Next time search please...

I just need at plugin for this

i want to edit exemple for terrorist and ct team

[ZOMBIE] Ace67 : im good

And for CT
[BUILDER] Ace67 : hey

PHP Code:

// Team Tags
// Colors are allowed in Teams Tags!
// Should be cool on a BaseBuilder, with:
CHAT_TEAM_TAG_1_A "<green>[ZOMBIE]<default>"
CHAT_TEAM_TAG_2_A "<green>[BUILDER]<default>"
// And in default when dead
// Team Tag for Alive Terrosits
CHAT_TEAM_TAG_1_A "<green>[ZOMBIE]<default>"
// Team Tag for Dead Terrosits (Ahmed!)
CHAT_TEAM_TAG_1_D "<green>[<default>ZOMBIE<green>]<default>"

// Team Tag for Alive Counter-Terrorists
CHAT_TEAM_TAG_2_A "<green>[BUILDER]<default>"
// Team Tag for Dead Counter-Terrorists
CHAT_TEAM_TAG_2_D "<green>[<default>BUILDER<green>]<default>"

// Team Tag for Spectators
CHAT_TEAM_TAG_3 "<green>[SPEC]<default>" 


Napoleon_be 11-03-2020 17:00

Re: ColorChats bugs
 
I'm not really understanding what you're trying to say to be honest.

If it has to do with any of these plugins, please just ask help there

https://forums.alliedmods.net/showthread.php?t=295046
https://forums.alliedmods.net/showthread.php?p=1605266
https://forums.alliedmods.net/showthread.php?t=272418

Ace67 11-03-2020 17:14

Re: ColorChats bugs
 
Quote:

Originally Posted by Napoleon_be (Post 2723631)
I'm not really understanding what you're trying to say to be honest.

If it has to do with any of these plugins, please just ask help there

https://forums.alliedmods.net/showthread.php?t=295046
https://forums.alliedmods.net/showthread.php?p=1605266
https://forums.alliedmods.net/showthread.php?t=272418

I just saying i need how to done everyone scripts do u has post doesnt work
https://prnt.sc/vcw9yt

He is a prefix i searching how to do

Napoleon_be 11-03-2020 17:24

Re: ColorChats bugs
 
Quote:

Originally Posted by Ace67 (Post 2723633)
I just saying i need how to done everyone scripts do u has post doesnt work
https://prnt.sc/vcw9yt

He is a prefix i searching how to do

And what plugin are you using...?

Ace67 11-03-2020 17:33

Re: ColorChats bugs
 
I use iChat and he doesn't work and i see on all alliedmodders i dont found the problem :/

Napoleon_be 11-03-2020 17:35

Re: ColorChats bugs
 
try editing this part
PHP Code:

// Default users (no flags) -> Default CS Chat (not CZ)
// General Chat - Alive
FORMAT_DEF_ALIVE "<team>%NAME%<default> :  %MESSAGE%"
// General Chat - Dead
FORMAT_DEF_DEAD "<default>*DEAD* <team>%NAME%<default> :  %MESSAGE%"
// Team Chat - Alive
FORMAT_TEAM_DEF_ALIVE "<default>%TEAM% <team>%NAME%<default> :  %MESSAGE%"
// Team Chat - Dead
FORMAT_TEAM_DEF_DEAD "<default>*DEAD* %TEAM% <team>%NAME%<default> :  %MESSAGE%" 

and reset the other chat settings that you've changed before.


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

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