Raised This Month: $51 Target: $400
 12% 

[Dyn Native] ColorChat v0.3.2 (04 jul 2013)


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-16-2013 , 04:05   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #221

Works fine for me, can't help you.
Btw, have updated stock, had let a little error that could have altered user TeamInfo if sender index is > Blue (35) , something that should never happen, but who knows ? ...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 07-18-2013, 03:26
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
kwpd
AlliedModders Donor
Join Date: Mar 2009
Location: panama
Old 08-25-2013 , 04:21   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #222

error amxmodx 1.8.3 v185
Attached Thumbnails
Click image for larger version

Name:	01.jpg
Views:	326
Size:	102.6 KB
ID:	124736  
__________________
kwpd is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-25-2013 , 05:01   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #223

This is useless with amxx1.8.3 (build 185 or more) because it has been integrated, you can (you must) remove this plugin and remove lines in sma that include chatcolor.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 08-25-2013 , 05:50   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #224

Note that this has been integrated to amxx 1.8.3 core since build 185

WOw.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 08-25-2013 , 17:28   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #225

Quote:
Originally Posted by yokomo View Post
Note that this has been integrated to amxx 1.8.3 core since build 185

WOw.
Quote:
Originally Posted by ConnorMcLeod View Post
This is useless with amxx1.8.3 (build 185 or more) because it has been integrated, you can (you must) remove this plugin and remove lines in sma that include chatcolor.


sami_spt is offline
Old 09-09-2013, 07:44
kNowo
This message has been deleted by ConnorMcLeod. Reason: Off Topic
Old 09-12-2013, 18:34
Xunfop
This message has been deleted by ConnorMcLeod. Reason: off topic
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 10-12-2013 , 16:13   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #226

Something is wrong..
PHP Code:
        //client_print_color(id, id, "^3The player ^1has left the game.");
        
client_print_color(0id"%L"LANG_PLAYER"PLAYER_LEFT"); 
PHP Code:
PLAYER_LEFT = !tThe player !nhas !tleft !nthe game
The colours ain't showing all I can see if the !n !t and the string..

Please help.
SM9 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-12-2013 , 16:34   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #227

You should use register_dictionary_colored
Or you can just install amxx1.8.3, colorchat is integrated.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 10-12-2013 , 17:36   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #228

Quote:
Originally Posted by ConnorMcLeod View Post
You should use register_dictionary_colored
Or you can just install amxx1.8.3, colorchat is integrated.
Installed amxx 1.8.3 and already do register the dictionary.

PHP Code:
register_dictionary_colored("custombans.txt"
PHP Code:
stock register_dictionary_colored(const filename[])
{
    if( !
register_dictionary(filename) )
    {
        return 
0;
    }

    new 
szFileName[256];
    
get_localinfo("amxx_datadir"szFileNamecharsmax(szFileName));
    
format(szFileNamecharsmax(szFileName), "%s/lang/%s"szFileNamefilename);
    new 
fp fopen(szFileName"rt");
    if( !
fp )
    {
        
log_error(AMX_ERR_NATIVE"Failed to open %s"szFileName);
        return 
0;
    }

    new 
szBuffer[512], szLang[3], szKey[64], szTranslation[256], TransKey:iKey;

    while( !
feof(fp) )
    {
        
fgets(fpszBuffercharsmax(szBuffer));
        
trim(szBuffer);

        if( 
szBuffer[0] == '[' )
        {
            
strtok(szBuffer[1], szLangcharsmax(szLang), szBuffer1']');
        }
        else if( 
szBuffer[0] )
        {
            
strbreak(szBufferszKeycharsmax(szKey), szTranslationcharsmax(szTranslation));
            
iKey GetLangTransKey(szKey);
            if( 
iKey != TransKey_Bad )
            {
                
replace_allszTranslationcharsmax(szTranslation), "!g""^4" );
                
replace_allszTranslationcharsmax(szTranslation), "!t""^3" );
                
replace_allszTranslationcharsmax(szTranslation), "!n""^1" );
                
AddTranslation(szLangiKeyszTranslation[2]);
            }
        }
    }
    
    
fclose(fp);
    return 
1;

SM9 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-13-2013 , 02:27   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #229

If you use 1.8.3, use register_dictionary, and use directly ^1 ^2 ^3 ^4 in .txt files.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-13-2013 at 02:27.
ConnorMcLeod is offline
FLAiTE
Member
Join Date: Aug 2008
Old 10-13-2013 , 17:15   Re: [Dyn Native] ColorChat v0.3.2 (04 jul 2013)
Reply With Quote #230

i don't get it man...please help me.
for example, i have the attached plugin. how can i edit it to have colours in my chat?
i'm using AMXX 1.8.3 b190.

can you please give me a concrete example of how to use the integrated colorchat in AMXX 1.8.3?
Attached Files
File Type: sma Get Plugin or Get Source (amx_toggleimmune.sma - 743 views - 10.5 KB)
FLAiTE is offline
Reply



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 15:02.


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