Raised This Month: $32 Target: $400
 8% 

[REQ] Tsay/Csay color via custom access flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 07-24-2009 , 19:18   [REQ] Tsay/Csay color via custom access flag
Reply With Quote #1

Hello.

I'd like to ask for a plugin that makes constant tsay/csay color for admins with custom flag access.

For example if admin has custom access flag "t", EVEN if he specifies color for his message, it will appear in definied color for his access.

Like always green for flag "t": if admin with flag "t" types amx_tsay red blablabla or just say @r blablabla, his message wont be red, it will be green. Whatever color he chooses, if will be only in green.

Same if admin with flag "n" -- for example always red for this flag. Whatever color he types (amx_tsay white blabla) or say @ blabla (if you dont specify color after @, it will go white be default), it is ignored and message is typed in red.

I hope you got my point.

Please, do NOT make any cvars (maybe some #define stuff or smt), we're already overloaded. I can edit flags in a completed plugin.

Thank you.
Hammerfallerz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-24-2009 , 22:01   Re: [REQ] Tsay/Csay color via custom access flag
Reply With Quote #2

I would suggest a modification of adminchat.amxx instead of a new plugin.
__________________
fysiks is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 07-25-2009 , 08:47   Re: [REQ] Tsay/Csay color via custom access flag
Reply With Quote #3

Ok, but can anyone do it?
Hammerfallerz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-25-2009 , 17:24   Re: [REQ] Tsay/Csay color via custom access flag
Reply With Quote #4

I can look into it but it might be a while before I get to it.
__________________
fysiks is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-25-2009 , 19:54   Re: [REQ] Tsay/Csay color via custom access flag
Reply With Quote #5

Done. I didn't test it but it was simple. If it doesn't work or you would like anything modified further, let me know.

\/
__________________

Last edited by fysiks; 07-26-2009 at 20:10.
fysiks is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 07-26-2009 , 07:11   Re: [REQ] Tsay/Csay color via custom access flag
Reply With Quote #6

I'll test, thanks!
Hammerfallerz is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 07-26-2009 , 07:30   Re: [REQ] Tsay/Csay color via custom access flag
Reply With Quote #7

It's working, but only if admin uses console command amx_tsay (here specifies color) message. Then it's sent according to his flag.

But if he uses "say @(first letter of a color) message" (for example say @y asd -> will print message in yellow, but his access is for "red") then it's sent in a color that admin has chosen.

Can you please fix it?
Hammerfallerz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-26-2009 , 20:02   Re: [REQ] Tsay/Csay color via custom access flag
Reply With Quote #8

Oops, I totally forgot about that method . I'll go and look at it and hopefully have a solution in a little while.

EDIT: Ok, fixed. Sorry about that .
Attached Files
File Type: sma Get Plugin or Get Source (adminchat_mod.sma - 651 views - 11.6 KB)
__________________

Last edited by fysiks; 07-26-2009 at 20:09.
fysiks is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 07-27-2009 , 09:27   Re: [REQ] Tsay/Csay color via custom access flag
Reply With Quote #9

I'll test
Hammerfallerz is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 07-28-2009 , 05:52   Re: [REQ] Tsay/Csay color via custom access flag
Reply With Quote #10

Works, thanks!
Hammerfallerz 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:08.


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