Raised This Month: $123 Target: $400
 30% 

OciXCrom's Admin Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-29-2015 , 14:58   OciXCrom's Admin Chat
Reply With Quote #1



OciXCrom's Admin Chat

Description
  • A new and improved version of the default admin chat plugin. The plugin is fully rewritten and adds some new commands and options and simplified ways for using the old and new ones.

Pros and Cons
  • Pros:
    • Colored messages (with the ability to restore the original ones).
    • Ability to modify every single message.
    • Shortcuts for a more simple usage of the commands.
    • A console command for the admin chat (say_team @).
    • Console commands for all different HUD positions (say @/@@/@@@).
    • Ability to send a message on the right side of the screen.
    • Ability to type in different colors.
    • Admins can read other players' private messages.
    • Added a sound when a player receives a private message.
    • Ability to send DHUD messages.
    • Ability to hide the player's nickname in certain messages.
    • Ability to change the effect in (D)HUD messages.
    • Random color when sending a (D)HUD message.
    • A command to send a message to a specific team.
    • Ability to select the default (D)HUD message color.
    • Ability to change the (D)HUD message time.
    • A config file for easy plugin configuration.
  • Cons: 404: Not Found!

Commands
  • amx_say <message> - (All Chat) Sends a message to all players.
    • Shortcut: say #<message>
    • Default flag: "i"
  • amx_asay <message> - (Admin Chat) Sends a message to all admins. The prefix depends on your admin level - admins get (ADMIN), VIPs (any flag) get (VIP) and normal players get a (PLAYER) prefix.
    • Shortcut: say_team @<message>
    • Default flag: all players can use the command, but only the ones with flag "e" can read the messages
  • amx_chat <message> - (VIP Chat) Sends a message to all VIP users..
    • Shortcut: say_team !<message>
    • Default flag: "i"
  • amx_psay <player> <message> - (Private Message) Sends a private message to a player. The player also hears a sound, so he can pay attention to the received message.
    • Shortcut: say_team #<player> <message>
    • Default flag: players with flag "i" have access to the command, and players with flag "d" can read other players' messages
  • amx_tsay <color> <message> - (Left HUD) Sends a HUD message on the left side of the screen.
    • Shortcut: say @<color> <message>
    • Default flag: "i"
  • amx_csay <color> <message> - (Center HUD) Sends a HUD messagе on top of the screen.
    • Shortcut: say @@<color> <message>
    • Default flag: "i"
  • amx_bsay <color> <message> - (Bottom HUD) Sends a HUD message on the bottom of the screen..
    • Shortcut: say @@@<color> <message>
    • Default flag: "i"
  • amx_rsay <color> <message> - (Right HUD) Sends a HUD message on the right side of the screen..
    • Shortcut: say @@@@<color> <message>
    • Default flag: "i"
  • amx_tsay2 <color> <message> - (Left DHUD) Sends a DHUD message on the left side of the screen.
    • Shortcut: say &<color> <message>
    • Default flag: "l"
  • amx_csay2 <color> <message> - (Center DHUD) Sends a DHUD message on top of the screen.
    • Shortcut: say &&<color> <message>
    • Default flag: "l"
  • amx_bsay2 <color> <message> - (Bottom DHUD) Sends a DHUD message on the bottom of the screen.
    • Shortcut: say &&&<color> <message>
    • Default flag: "l"
  • amx_rsay2 <color> <message> - (Right DHUD) Sends a DHUD message on the right side of the screen.
    • Shortcut: say &&&&<color> <message>
    • Default flag: "l"
    amx_teamsay <team> <message> - (Team Say) Sends a message to a specific team (you can use
    t/c/s/terror/ct/spec/tt/counter/etc.).
    • Shortcut: say_team &<team> <message>
    • Default flag: Players with flag "d' can send a read other teams' messages.

List of extra options
  • Using "$" in a (D)HUD message will add a blinking effect to it.
  • Using "#" in a (D)HUD message will add a typewriter effect to it.
  • Using "!an" in a message will make it use "anonymous mode".
  • Using "!g", "!t" and "!n" will change the text color.

List of colors for HUD/DHUD messages

  • white (W)
  • red (R)
  • green (G)
  • blue (B)
  • yellow (Y)
  • magenta (M)
  • cyan (C)
  • orange (O)
  • ocean
  • maroon
  • random (X)
  • default
  • When using a shortcut command, you need to enter only the first letter of the color. For example: say @R hello - red. Bear in mind that you need to use a capital letter.

Images








Changing settings and messages
  • All of the settings are located in the configs/AdminChat.ini file. Read each line carefully before changing it. In the messages section you can find the default messages, that will be used in normal circumstances, and the anonymous ones, which will be used when the messages is sent in anonymous mode or anonymous mode is active for all players. In the same section you can find the messages from the original admin chat plugin. You can activate them by removing the ";" symbol in front of them and commenting the line (by adding ";") below them, which will disable the new ones.

Anonymous Mode
  • Anonymous Mode hides the player's nickname in certain messages. The option can be activated by changing the option in the .ini file.

PHP Code:
;Use Anonymous Mode (yes/no) -- Anonymous Mode hides the player's name in certain messages.
AC_ANONYMOUS = 0 
  • The messages for this mode can also be changed in the config file, as shown above.

How to change flags
  • The flags for the main settings of the plugin can be changed from configs/AdminChat.ini, and the ones for command usage from configs/cmdaccess.ini.

PHP Code:
[Flags]
;
Flag for "ADMIN" prefix in admin chat
AC_FLAG_ADMIN 
e

;Players with this flag can read others players' private messages, including team ones
AC_FLAG_PSAY = d

;Players with this flag can read the admin chat
AC_FLAG_READ_ADMIN = e

;Players with this flag can read the VIP chat
AC_FLAG_READ_VIP = i

;This flag grants you access to the "anonymous symbol", which allows you to send messages in anonymous mode if entered
AC_FLAG_ANONYMOUS = l 


Downloads:
  • v3.0: 357
  • v3.1: current



Last edited by OciXCrom; 10-15-2017 at 10:22. Reason: Version 3.0: Full update.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
zombiesucker
Member
Join Date: Sep 2015
Old 09-30-2015 , 07:38   Re: OciXCrom's Admin Chat
Reply With Quote #2

thanks,, Been locking for this plugin Long Ago Thank You
zombiesucker is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-30-2015 , 07:52   Re: OciXCrom's Admin Chat
Reply With Quote #3

The game was do dead and dark to admins, until now! This plugins brings the light and warmness lacking to server admins.

Those shortcuts are awesome!

Thank you, very much!

Last edited by addons_zz; 09-30-2015 at 13:35. Reason: Thank you, very much!
addons_zz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 09-30-2015 , 17:11   Re: OciXCrom's Admin Chat
Reply With Quote #4

Thank you. I'm planning to make a new version of the default admin commands, too.

Last edited by OciXCrom; 10-01-2015 at 07:15.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
vedant007
Member
Join Date: Jul 2013
Location: India
Old 10-01-2015 , 01:47   Re: OciXCrom's Admin Chat
Reply With Quote #5

Very Nice plugin & idea,too.
__________________
Steam-vedubot
Working ON COD:Black OPPS On Cs 1.6 & CZ
Plugins-
1.Angraa BoSS
2.Ultimate Server Menu
vedant007 is offline
Send a message via Skype™ to vedant007
smiley92
Senior Member
Join Date: Jun 2011
Location: Romania
Old 10-01-2015 , 04:29   Re: OciXCrom's Admin Chat
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
Thank you. I'm planning to make a new version of the default admin commands too.
Nice ideea to make commands colored.I searched so long ago, but without success.

That plugin look good.We are waiting with such plug-ins.
smiley92 is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 10-01-2015 , 16:23   Re: OciXCrom's Admin Chat
Reply With Quote #7

Hi, i have this idea about a annoying thing about the DHUD and HUD, they dont show up at the client's console, so if i could not read all the message, i lost i forever, then I added one line of code to you code to print it at console too.

If you feel the same bothering, could you update the plugin to the others?

PHP Code:
359    if(dhud)
360    {
361        set_dhudmessage(g_HudValues[clr][R], g_HudValues[clr][G], g_HudValues[clr][B], g_Positions[type][X], position06.012.00.50.15)
362        show_dhudmessage(0message)
363    }
364    else
365    {
366        set_hudmessage(g_HudValues[clr][R], g_HudValues[clr][G], g_HudValues[clr][B], g_Positions[type][X], position06.012.00.50.15, -1)
367        show_hudmessage(0message)
368    }
369    client_print0print_console "%s"message 

Last edited by addons_zz; 10-01-2015 at 17:16. Reason: Actually is one line.
addons_zz is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-02-2015 , 10:20   Re: OciXCrom's Admin Chat
Reply With Quote #8

Quote:
After every change made in the .sma file, you need to compile the plugin locally and replace the plugin with the new .amxx file.
No, just check AMXX_VERSION_NUM if lower than 1.8.3. If so include the inc file, else do nothing.

Quote:
A new and improved version of the default admin chat plugin.
I did not read your code(so remember this, I am not talking about the modifications you made), but I can tell you it's a bad ideea to just take a default amxx plugin, edit and release it. You should instead make a pull request on github with your changes. This is because AMXX is updated from time to time and plugins are likely updated. This means that your plugin will be stuck in time and probably not compatible or missing new amxx version features. Take this as an example: https://forums.alliedmods.net/showthread.php?t=27855
__________________

Last edited by HamletEagle; 10-02-2015 at 10:23.
HamletEagle is offline
redivcram
Veteran Member
Join Date: Jul 2014
Old 10-02-2015 , 13:28   Re: OciXCrom's Admin Chat
Reply With Quote #9

Sweet, my next server is gonna use this one! GJ
__________________
I'm a Goldsource level designer. "Private Message" me for contact info.
redivcram is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 10-02-2015 , 13:40   Re: OciXCrom's Admin Chat
Reply With Quote #10

Quote:
Originally Posted by HamletEagle View Post
No, just check AMXX_VERSION_NUM if lower than 1.8.3. If so include the inc file, else do nothing.


I did not read your code(so remember this, I am not talking about the modifications you made), but I can tell you it's a bad ideea to just take a default amxx plugin, edit and release it. You should instead make a pull request on github with your changes. This is because AMXX is updated from time to time and plugins are likely updated. This means that your plugin will be stuck in time and probably not compatible or missing new amxx version features. Take this as an example: https://forums.alliedmods.net/showthread.php?t=27855
Lol, that example was a good plugin and went dead apparently, because there is a guy there at the thread end, complaining about it not working.

Then I have to think, why the official AMX would accept such pull request?
Because it was too good. Then go ahead OciXCrom, make the pull request if you can
I just looked quick the current adminchat.sma code there, and look like this would be a good trade.

Of course, was good too publish it here, so you and whoever will decide to accept the pull request, could see the modifications acceptance by the community. Hence, to be more precise, you could add a poll to this thread, asking if this is a AMX must default plugin. In my opinion it is.

Last edited by addons_zz; 10-02-2015 at 13:54.
addons_zz is offline
Reply


Thread Tools
Display Modes

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 02:39.


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