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

Colochat Module For Amxx 1.8.1.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mohsen
Junior Member
Join Date: Jun 2014
Old 06-25-2014 , 16:23   Colochat Module For Amxx 1.8.1.3
Reply With Quote #1

Hello,
I use amxx 1.8.1.3, when I compiled a plugin in local with colorchat.inc for amxx 1.8.3 buid 185 and I ran server, I had this problem:
[AMXX] Plugin "use_button_once.amxx" failed to load: Module/Library "colorchat" required for plugin. Check modules.ini.

Please give me colorchat module for amxx 1.8.1.3.

Last edited by mohsen; 06-25-2014 at 16:24.
mohsen is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-25-2014 , 16:28   Re: Colochat Module For Amxx 1.8.1.3
Reply With Quote #2

IIRC, there is not an include file for color chat in AMX Mod X 1.8.3. It is included by default into the core.
__________________
fysiks is online now
mohsen
Junior Member
Join Date: Jun 2014
Old 06-25-2014 , 16:30   Re: Colochat Module For Amxx 1.8.1.3
Reply With Quote #3

I want color chat for 1.8.1.3 .
mohsen is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-25-2014 , 16:55   Re: Colochat Module For Amxx 1.8.1.3
Reply With Quote #4

Quote:
Originally Posted by mohsen View Post
I want color chat for 1.8.1.3 .
1.8.1.3 does not exist. 1.8.3 is the development version that include the color chat functionality. You don't need an include file to use color chat in this case.

See amxmodx.inc
__________________

Last edited by fysiks; 06-25-2014 at 18:02.
fysiks is online now
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-25-2014 , 19:48   Re: Colochat Module For Amxx 1.8.1.3
Reply With Quote #5

For 1.8.1, search the Code Snippets section or the plugin's thread
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
bat
Veteran Member
Join Date: Jul 2012
Old 06-26-2014 , 02:53   Re: Colochat Module For Amxx 1.8.1.3
Reply With Quote #6

In 1.8.3 already exist color chat.

Code:
/**
 * Sends colored message to player.  Set index to 0 to send text globally.
 * This works only under Counter-Strike 1.6 and Counter-Strike: Condition Zero.
 *
 * The available colors identifiers are :
 *          green       ^4   ; use location color from this point forward
 *  red/blue/grey       ^3   ; use team color from this point forward
 *  red/blue/grey       ^2   ; use team color up to the end of the player name. This only works at the start of the string, and precludes using the other control characters.
 *          normal      ^1   ; use normal color from this point forward
 *
 * The team color is defined either with a sender's index, or a specific team color using print_team_* constants (print_team_blue, print_team_red, print_team_grey).
 * A message must start with a default color.
 *
 * An example would be: client_print_color(id, print_team_red, "^4This is green ^3this is red, ^1this is your default chat text color");
 * Another with index : client_print_color(id, idOther, "^4This is green ^3this idOther's team color, ^1this is your default chat text color");
 * In multilingual file : KEY = ^1This is normal color, ^4this is green, ^1normal again ^3and now team color.
 *
 * @param index         This is the player index (1 to maxplayer) you want to send the message, use 0 to send to all players.
 * @param sender        This is the player index you want to use the team color, see print_team_* constants if you want to force a color.
 * @param fmt           Format string in which patterns gonna be replaced with argument list.
 * 
 * @return              1 if the message has been sent, 
 *                      0 if the index specified is a not connected player, 
 *                        or if a global message has not been sent because there are no humans players.
 */
native client_print_color(index, sender, const message[], any:...);
bat is offline
Send a message via Skype™ to bat
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 23:49.


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