AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Admin Chat Colors [v2.0 - 12/10/2007] (https://forums.alliedmods.net/showthread.php?t=63610)

Arion 11-26-2007 14:29

Re: Admin Chat Colors [v1.2 - 26/11/2007]
 
I didn't get your point, connorr..


@Angelina, bad news.. I don't know how to fix.. You must choose either colored messages or see messages in HLSW ;/

@666 Same case as Angelina..

Arion 11-26-2007 19:22

Re: Admin Chat Colors [v1.2 - 26/11/2007]
 
@Angelina

Thanks! I'll study the code and (I hope) make a definitive solution.


Edit.

I don't know how, but I found a solution. Luck, I guess.

I only changed all returns to PLUGIN_CONTINUE, added this to plugin_init():
register_message (get_user_msgid ("SayText"), "avoid_duplicated")

and in function avoid_duplicated, this:
return PLUGIN_HANDLED

And voilą! Prints in chat (once), server console, HLSW, and doesn't interfere on other plugins anymore. Want more?

`666 11-27-2007 14:13

Re: Admin Chat Colors [v1.3 - 27/11/2007]
 
thanks for bug fix!

Owyn 11-27-2007 14:34

Re: Admin Chat Colors [v1.3 - 27/11/2007]
 
Quote:

and doesn't interfere on other plugins anymore
doesn't interfere with other plugins which hooks say cmd?

Arion 11-27-2007 14:35

Re: Admin Chat Colors [v1.3 - 27/11/2007]
 
Quote:

Originally Posted by .Owyn. (Post 557518)
doesn't interfere with other plugins which hooks say cmd?

Exactly.. It should not interfere..

If you enconter any problems, please let me know.

Owyn 11-27-2007 14:43

Re: Admin Chat Colors [v1.3 - 27/11/2007]
 
just did. if i turn amx_translit ON, and then i try to say something using say or team_say nothing appears in chat.

+plus, btw, can u add silver color?

Alka 11-27-2007 14:46

Re: Admin Chat Colors [v1.3 - 27/11/2007]
 
Try to put translit before this plugin in plugins.ini , should work.

Owyn 11-27-2007 15:00

Re: Admin Chat Colors [v1.3 - 27/11/2007]
 
did, now text appears but doesn't translits (but i see translited text in console, then not translited (2msgs from 1 msg))

+could u edit translit.sma so it would work with your plugin together?
+btw, can u make admin names colored too?

Owyn 11-27-2007 15:20

Re: Admin Chat Colors [v1.3 - 27/11/2007]
 
there was a plugin that was changing name colors, but it doesn't work now, but i saw screens anyway :O

Arion 11-27-2007 18:02

Re: Admin Chat Colors [v1.3 - 27/11/2007]
 
@Owyn, silver color you mean white/gray? amx_color 3

I don't know how to fix this issue with translit right now.. Maybe if you PM me with all specifications I could give try..

@Angelina, I think the spec bug could not be fixed.. But there aren't many people who talks as spectator anyway.


I could add a command to change name color, but I'm in my tests week, so please be patient


All times are GMT -4. The time now is 03:53.

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