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

Hud Chat Admin (rewritten)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 01-30-2013 , 18:16   Hud Chat Admin (rewritten)
Reply With Quote #1

Hud Chat Admin (Rewritten)
  • Because in normal chat appear so much messages (like a radio text or player commands spam), i make this plugin, only for admins .
  • Command is simple: "say" and after character '!'.
  • Example : say !Hello, my nick is Dwight.

I have added a few cvars.
Code:
hca_colormode <0/1>
• Which color have hud text ( 0 - default color (cvar), 1 - admin flags color (config file) )

hca_defaultcolor "111 222 333"
• Which color have hud text ( in default colormode (hca_colormode 0) )

hca_showtime "5.0" 
• How long time to appear hud text on screen ( hud text appear when another admin use say !)

hca_position "0.05 0.65"
• Position of hud text.

hca_showmode <0/1>
• If this cvar have value 0, every line appear bottom up, if is 1, from top to bottom.
  • If cvar hca_colormode value is 1, color of text is set by admin flags that using chat.
    In config file (HCA.ini) you can set color for another flags.
    Example:
    bcefij 255 255 255
    // flags rrr ggg bbb

Restrict: Text not support more 60 characters because in hud message , text will be split ( 69 max? ).

How appear chat on hud, you can see in those demos:
Demo 1 here | hca_showmode "0".
Demo 2 here | hca_showmode "1".



For everyone, god/bad joob, I rewritten this plugin because I do not want to remain it unsolved .
Attached Files
File Type: ini HCA.ini (81 Bytes, 486 views)
File Type: sma Get Plugin or Get Source (hud_chatadmin.sma - 1150 views - 4.4 KB)

Last edited by DWIGHTpN; 10-13-2013 at 18:30. Reason: Rewritten.
DWIGHTpN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-30-2013 , 19:18   Re: Hud Chat Admin
Reply With Quote #2

Attach the SMA file
__________________
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
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 01-31-2013 , 14:08   Re: Hud Chat Admin
Reply With Quote #3

what is the difference between this plugin OR use AMXMODX plugin and admins can write in chat ' y@ ' (amx_tsay)
sami_spt is offline
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 01-31-2013 , 15:58   Re: Hud Chat Admin
Reply With Quote #4

CAN ANYONE TELL ME HOW HE WAS ABLE TO SHOW 5 HUD MESSAGES IN A ROW? I thought the engine limit was 4 ....
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.
pokemonmaster is offline
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 01-31-2013 , 16:09   Re: Hud Chat Admin
Reply With Quote #5

Quote:
CAN ANYONE TELL ME HOW HE WAS ABLE TO SHOW 5 HUD MESSAGES IN A ROW? I thought the engine limit was 4 ....
That's it.
I don't find how to write every chat line. (sorry , bad english).
I know that hud message appear by argument: channel=4.
if is two hudmessage in same chanel, they overlap

@pokemonmaster: is only one hudmessage: show_hudmessage(index,"%s ^n %s ^n %s ^n %s ^n %s",line1,line2,line3,line4,line5)

Last edited by DWIGHTpN; 01-31-2013 at 16:36.
DWIGHTpN is offline
Old 01-31-2013, 17:41
YamiKaitou
This message has been deleted by YamiKaitou. Reason: answer was right above me... I need to read before posting
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 02-10-2013 , 01:23   Re: Hud Chat Admin
Reply With Quote #6

Useless plugin...
__________________
simanovich is offline
AmineKyo
فوق سريرك
Join Date: Oct 2011
Location: Morocco
Old 02-10-2013 , 09:31   Re: Hud Chat Admin
Reply With Quote #7

Quote:
Originally Posted by simanovich View Post
Useless plugin...
Useless post...
__________________

Last edited by AmineKyo; 02-10-2013 at 09:33. Reason: This post will be removed later
AmineKyo is offline
chungsy
Member
Join Date: Nov 2011
Old 02-13-2013 , 03:45   Re: Hud Chat Admin
Reply With Quote #8

Can you add a cvar like : hud msg avaliable only to admins?

when admins are chating with that its kinda anoying for players because it has nothing to do with them..

If you can make sure "u@" also work on hud that would be great (better way to let an admin whos playing know theres a hacker)

Last edited by chungsy; 02-13-2013 at 03:48.
chungsy is offline
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 02-16-2013 , 20:40   Re: Hud Chat Admin
Reply With Quote #9

Not something the code ...

My built in a more beautiful ...
Shown in TSAY
[Owner] with colors
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
Old 07-31-2013, 13:48
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 10-08-2013 , 13:02   Re: Hud Chat Admin (rewritten)
Reply With Quote #10

Plugin rewritten.
DWIGHTpN 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 07:19.


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