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

Little question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zDac
Member
Join Date: Jan 2013
Old 10-07-2014 , 12:24   Little question
Reply With Quote #1

Is it possible to add more colors to adminchat plugin?
__________________
Learning AMXX.
zDac is offline
Send a message via Skype™ to zDac
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-07-2014 , 12:32   Re: Little question
Reply With Quote #2

Which plugin?
__________________
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
zDac
Member
Join Date: Jan 2013
Old 10-07-2014 , 12:35   Re: Little question
Reply With Quote #3

AMXX Dev Team's. I've tried to add, but I've got a lot of errors. Here is the code, with my try
Attached Files
File Type: sma Get Plugin or Get Source (adminchat.sma - 504 views - 11.6 KB)
__________________
Learning AMXX.
zDac is offline
Send a message via Skype™ to zDac
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-07-2014 , 12:38   Re: Little question
Reply With Quote #4

GoldSrc only gives you 5 colors (3 of which depends on what team the sender is on)

EDIT: Unless you are talking about HUD messages, which there there is 4096 different colors
__________________
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).

Last edited by YamiKaitou; 10-07-2014 at 12:39.
YamiKaitou is offline
zDac
Member
Join Date: Jan 2013
Old 10-07-2014 , 12:46   Re: Little question
Reply With Quote #5

Yes, I'm talking about HUD messages. I wan't to add black color
__________________
Learning AMXX.
zDac is offline
Send a message via Skype™ to zDac
Old 10-07-2014, 15:42
fysiks
This message has been deleted by fysiks. Reason: I didn't see that he posted modified code.
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 10-07-2014 , 16:54   Re: Little question
Reply With Quote #6

Quote:
Originally Posted by zDac View Post
AMXX Dev Team's. I've tried to add, but I've got a lot of errors. Here is the code, with my try
missed " in end line of black..

#define MAX_CLR 10
>
#define MAX_CLR 11

EDIT:
Code:
#define MAX_CLR 11

new g_Colors[MAX_CLR][] = {"COL_WHITE", "COL_RED", "COL_GREEN", "COL_BLUE", "COL_YELLOW", "COL_MAGENTA", "COL_CYAN", "COL_ORANGE", "COL_OCEAN", "COL_MAROON", "COL_BLACK"}
new g_Values[MAX_CLR][] = {{255, 255, 255}, {255, 0, 0}, {0, 255, 0}, {0, 0, 255}, {255, 255, 0}, {255, 0, 255}, {0, 255, 255}, {227, 96, 8}, {45, 89, 116}, {103, 44, 38}, {0, 0, 0}}

Last edited by Fuck For Fun; 10-07-2014 at 16:54.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-07-2014 , 18:06   Re: Little question
Reply With Quote #7

But remember that that is part of the multilingual system and that you need to add that entry into the lang file.
__________________
fysiks is offline
zDac
Member
Join Date: Jan 2013
Old 10-08-2014 , 08:52   Re: Little question
Reply With Quote #8

Getting errors:
__________________
Learning AMXX.
zDac is offline
Send a message via Skype™ to zDac
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 10-08-2014 , 09:03   Re: Little question
Reply With Quote #9

I thought you can not display black HUD messages?
__________________
Kia is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-08-2014 , 12:41   Re: Little question
Reply With Quote #10

Quote:
Originally Posted by Kia View Post
I thought you can not display black HUD messages?
Idk, maybe you can't. At least i tried to change hook plugin color to black and it haven't worked, didn't showed hook's laser. Maybe it's a amxx bug or the game itself doesn't allows to show black color at some stuff.
__________________
Jhob94 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:35.


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