Raised This Month: $ Target: $400
 0% 

Need plugins edition


Post New Thread Reply   
 
Thread Tools Display Modes
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-01-2014 , 17:20   Re: Need plugins edition
Reply With Quote #11

It's not possible to add color to show_activity_key, you have to comment/delete line one by one and add your custom colorchat function.

If you show the code you are using will be easier to help you..
NikKOo31 is offline
Eternities
Junior Member
Join Date: Jun 2014
Old 07-01-2014 , 22:11   Re: Need plugins edition
Reply With Quote #12

I find how... I will make a post with all defaults plugins colored in green and white and i will make tutorial how to change color of it!
Eternities is offline
Eternities
Junior Member
Join Date: Jun 2014
Old 07-01-2014 , 22:12   Re: Need plugins edition
Reply With Quote #13

Quote:
Originally Posted by NikKOo31 View Post
It's not possible to add color to show_activity_key, you have to comment/delete line one by one and add your custom colorchat function.

If you show the code you are using will be easier to help you..
If you have nothing to says.. Say nothing ! It's possible... I just find how with the help of one of my friend! i will maybe post how to do it using native conormcleod colorchat!
Eternities is offline
EthicalHacker007
Veteran Member
Join Date: May 2014
Old 07-01-2014 , 22:40   Re: Need plugins edition
Reply With Quote #14

ConnorMcLeod's and AMXX v1.8.3 have same natives
client_print_color()

register_dictionary_colored()

So if you use default colorchat and default admincmd, then it's not possible to print in color as it uses show_activity_key.

Quote:
Originally Posted by Eternities View Post
If you have nothing to says.. Say nothing ! It's possible... I just find how with the help of one of my friend! i will maybe post how to do it using native conormcleod colorchat!
__________________

Last edited by EthicalHacker007; 07-01-2014 at 22:41.
EthicalHacker007 is offline
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-02-2014 , 11:21   Re: Need plugins edition
Reply With Quote #15

Quote:
Originally Posted by Eternities View Post
If you have nothing to says.. Say nothing ! It's possible... I just find how with the help of one of my friend! i will maybe post how to do it using native conormcleod colorchat!
I asked for the code you are getting the error to help you fix it, no need to be aggressive

If you solved it, post the code so when somebody get to this thread could find the solution
NikKOo31 is offline
Eternities
Junior Member
Join Date: Jun 2014
Old 07-02-2014 , 16:15   Re: Need plugins edition
Reply With Quote #16

I use the native from connormcleod...
My friend just edited colorchat.inc to add show_activity_id_color and show_activity_key_color
He did add a format for _id_color and _key_color and it's working greet!

Exemple with plmenu.amxx with this line :

show_activity_key("ADMIN_SLAP_1", "ADMIN_SLAP_2", name, name2, g_menuSettings[id]);
This is the original code!

And mine is with the colorchat.inc edited ::
show_activity_key_color(Grey, "ADMIN_SLAP_1", "ADMIN_SLAP_2", name, name2, g_menuSettings[id]);

Last edited by Eternities; 07-02-2014 at 16:18.
Eternities is offline
0reax
Junior Member
Join Date: Sep 2016
Location: Anywhere
Old 09-21-2016 , 21:29   Re: Need plugins edition
Reply With Quote #17

Quote:
Originally Posted by Eternities View Post
I use the native from connormcleod...
My friend just edited colorchat.inc to add show_activity_id_color and show_activity_key_color
He did add a format for _id_color and _key_color and it's working greet!

Exemple with plmenu.amxx with this line :

show_activity_key("ADMIN_SLAP_1", "ADMIN_SLAP_2", name, name2, g_menuSettings[id]);
This is the original code!

And mine is with the colorchat.inc edited ::
show_activity_key_color(Grey, "ADMIN_SLAP_1", "ADMIN_SLAP_2", name, name2, g_menuSettings[id]);
Can you add this edited colorchat.inc? Or anybody can help me?



Here my chatcolor.inc code

Code:
#if defined _chatcolor_included
  #endinput
#endif
#define _chatcolor_included

#pragma reqlib chatcolor

/* ColorChat Support */
/* Replace in .sma line #include <colorchat> with #include <chatcolor> */
// #define NORMAL 0 // use client_print or start sentence with ^1 and set sender to same value as index
// #define GREEN 0 // start sentence with ^4
// #define TEAM_COLOR 0 // determine who is sender and set ti that id, or choose a color
#define RED Red
#define BLUE Blue
#define GREY Grey
#define ColorChat client_print_color
/* ColorChat Support */

enum
{
	Grey = 33,
	Red,
	Blue
}

/**
 * Sends coloured message to player. Set index to 0 to send text globaly..
 * An example would be: client_print_color(id, Red, "^4This is green ^3this is red, ^1this is your default chat text color");
 * Look at the above enum for second parameter lists when you don't pass a player index in it.
 *
 * @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 above enum if you want to force a color.
 * @param fmt			Format string in which patterns gonna be replaced with argument list.
 * 
 * @return 				Returns 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 fmt[], any:...);

/**
 * Coloured register_dictionary version
 *
 * @param filename		Dictionary file to register.
 * 						The file should be in "addons/amxx/data/lang/"
 * 						only the name needs to be given.
 * 						(e.g. register_dictionary("file.txt") will be addons/amxx/data/file.txt).
 * 
 * @return 				Returns 1 on success, 0 if register_dictionary has returned 0 or if file can't be opened.
 */
native register_dictionary_colored(const filename[]);
0reax 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 11:12.


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