AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   OciXCrom's Admin Chat - 2021 UPDATE! (https://forums.alliedmods.net/showthread.php?t=272418)

OciXCrom 09-29-2015 14:58

OciXCrom's Admin Chat - 2021 UPDATE!
 
2 Attachment(s)

Description
  • A new and improved version of the default admin chat plugin that comes with its own configuration file that grants you full control over how the admin commands work, with a few added benefits and extra options.

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 set a different sound for each message type.
    • Ability to send DHUD messages.
    • Ability to send anonymous messages that don't include the sender's name.
    • Ability to change the effect in (D)HUD messages.
    • Random color when sending a (D)HUD message.
    • A new command to send a message to a specific team.
    • A new command to send center chat-style messages.
    • Ability to select the default (D)HUD message color.
    • Ability to change the (D)HUD message time.
    • Ability to use prefixes and option from other supported plugins.
    • A config file for quick and easy plugin configuration with a command for a instant reload.
  • 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. All these prefixes can be changed in the configuration file.
    • 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 (players with any flag).
    • 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: "d"
  • amx_csay2 <color> <message> - (Center DHUD) Sends a DHUD message on top of the screen.
    • Shortcut: say &&<color> <message>
    • Default flag: "d"
  • amx_bsay2 <color> <message> - (Bottom DHUD) Sends a DHUD message on the bottom of the screen.
    • Shortcut: say &&&<color> <message>
    • Default flag: "d"
  • amx_rsay2 <color> <message> - (Right DHUD) Sends a DHUD message on the right side of the screen.
    • Shortcut: say &&&&<color> <message>
    • Default flag: "d"
  • 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) - works only in Counter-Strike.
    • Shortcut: say_team &<team> <message>
    • Default flag: Players with flag "i" can use the command and those with flag "d' can read other teams' messages.
  • amx_centersay <message> - (Center Say) Sends a chat-syle message to all players in the center of the screen.
    • Shortcut: say !<message>
    • Default flag: "i"
  • amx_rawsay <message> - (Raw Say) Sends a unformatted chat message to all players.
    • Default flag: "l"
  • amx_speak <message> - (Speak) Attempts to speak out a sentence using "vox/fvox" or play a sound to all clients.
    • Default flag: "l"
  • ac_reload - Reloads the configuration file. Note: modifying sounds will take effect on mapchange.
    • Default flag: "l"

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 "&x04", "&x03" and "&x01" will change the text color if the player has the "COLORCHAT_FLAG" flag.
  • All of these can be modified from the configuration file.

Plugin support
  • The plugin comes with built-in support for some of my plugins. The options automatically become active if the mentioned plugin is running in the server.
    • OciXCrom's Rank System - ability to display the player's current rank and/or level in the messages
    • Chat Manager - ability to display the player's custom name or admin prefix in the messages
    • Admin Groups - ability to display the player's admin group in the messages

Images

http://i.imgur.com/1kyCVVm.jpg
http://i.imgur.com/eVifyNZ.jpg
http://i.imgur.com/1HxM9K2.jpg
http://i.imgur.com/x3IWo2a.jpg

http://i.imgur.com/kLVNyPr.jpg

http://i.imgur.com/x7jivXI.jpg

Changing settings and messages
  • All of the settings with a detailed explanation 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 message is sent in anonymous mode or anonymous mode is active for all players.
  • You can assign a custom sound for each message by using the AMX_<COMMAND>_SOUND setting.
  • You can also control whether the sender can heart this sound by using the AMX_<COMMAND>_SOUND_NOSELF setting.
  • In the [Hud Colors] section you can view and modify the color shortcuts for (D)HUD messages. These can be used by typing in the shortcut as the first character in your message, e.g. @R will send a red message.

https://raw.githubusercontent.com/Oc...using_this.png
https://raw.githubusercontent.com/Oc...plugin_lab.png
https://raw.githubusercontent.com/Oc...ad_default.png

zombiesucker 09-30-2015 07:38

Re: OciXCrom's Admin Chat
 
thanks,, Been locking for this plugin Long Ago Thank You

addons_zz 09-30-2015 07:52

Re: OciXCrom's Admin Chat
 
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!

OciXCrom 09-30-2015 17:11

Re: OciXCrom's Admin Chat
 
Thank you. I'm planning to make a new version of the default admin commands, too.

vedant007 10-01-2015 01:47

Re: OciXCrom's Admin Chat
 
Very Nice plugin & idea,too. :)

smiley92 10-01-2015 04:29

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by OciXCrom (Post 2348476)
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.

addons_zz 10-01-2015 16:23

Re: OciXCrom's Admin Chat
 
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 


HamletEagle 10-02-2015 10:20

Re: OciXCrom's Admin Chat
 
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

redivcram 10-02-2015 13:28

Re: OciXCrom's Admin Chat
 
Sweet, my next server is gonna use this one! GJ

addons_zz 10-02-2015 13:40

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by HamletEagle (Post 2348908)
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.

HamletEagle 10-02-2015 13:48

Re: OciXCrom's Admin Chat
 
I don't know if it will be accepted or not, and I am not talking about this plugin especially, I'm talking in general.

addons_zz 10-02-2015 13:58

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by HamletEagle (Post 2348988)
I don't know if it will be accepted or not, and I am not talking about this plugin especially, I'm talking in general.

Sure, and definitely it was a good point to come up now, he says is planing to make more originals plugins modifications, then he could just work straight at AMX MOD X official repository with pull requests, or simply to be accepted as a official developer :)

OciXCrom 10-03-2015 07:34

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by addons_zz (Post 2348732)
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?

Totally forgot about that. Added.

Quote:

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

I actually searched for something like that, but coulnd't find anything. Added now, thank you.

Quote:

Originally Posted by HamletEagle
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

Well, I didn't actually edit and release it. I totally rewrote it and made a brand new one with a lot of new options. I'm not familiar with what GitHub is or how it works, but I'll take a look later. Although AMXX is updated, I personally haven't seen any major changes to the default plugins so far, especially this one. Also, the thing with a plugin being stuck probably won't affect only this one, so it's more of a "global" issue. I doubt that they will implement something better than this, and if they do, I will probably update my plugin with more options.

Quote:

Originally Posted by addons_zz
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.

All default plugins can use a refreshment. In my opinion the current codes can be written in much more better ways, and this is example of such a thing. It probably isn't the best way of coding it, but I'm sure that it's better than the default one. I'm expecting some advice for improving my code, if needed.

addons_zz 10-03-2015 11:25

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by OciXCrom (Post 2349244)
Well, I didn't actually edit and release it. I totally rewrote it and made a brand new one with a lot of new options. I'm not familiar with what GitHub is or how it works, but I'll take a look later. Although AMXX is updated, I personally haven't seen any major changes to the default plugins so far, especially this one. Also, the thing with a plugin being stuck probably won't affect only this one, so it's more of a "global" issue. I doubt that they will implement something better than this, and if they do, I will probably update my plugin with more options.

All default plugins can use a refreshment. In my opinion the current codes can be written in much more better ways, and this is example of such a thing. It probably isn't the best way of coding it, but I'm sure that it's better than the default one. I'm expecting some advice for improving my code, if needed.

I could not describe some step's detail very well, but its only a matter of google the step itself, to get it fully described.

0) Learn what is Version Control.

1) Its easy, even if you are not familiar with git. There is interface super awesome to use it, it is SmartGit, and is available to Windows, Linux and Mac. Install it.

1) Go to your Github webpage, log in to your github account, go to https://github.com/alliedmodders/amxmodx repository, Fork it to you account clicking at 'Fork' button.

2) Then go to 'Smartgit' program and clone you forked amxmodx, at some folder at you computer with the repository address:
Quote:

https://github.com/yourgithubaccountname/amxmodx.git
3) After that, you will have the amxmodx code at your computer, then find the original 'adminchat.sma' and update it with you 'adminchat.sma'.

4) Then, go to 'Smargit', select the adminchat.sma, click at 'Commit' button and describe your changes at the code. It is good to link the plugin release alliedmodders' forum page, to them to see the community response.

5) Then click 'Commit' at the commit window. Then click 'Push' button at 'Smartgit' interface.

6) Get to know what is a git branch.

7) Get to know what is a pull request.

8) Follow the pull request steps.

9) Waits the AMX MOD X team, review your code changes and accept it or reject then. (if reject, probably they will tell you why)

10) To master git, see:
Quote:

Semantic Versioning.

Git branching and release management strategy Obs, 'Smartgit' has the gitflow plugin built-in.

About Conflicts.

https://git-scm.com/doc Fits too, for those who don't like user interfaces.

OciXCrom 10-03-2015 14:03

Re: OciXCrom's Admin Chat
 
Well, that looks complicated. :) Maybe I'll try and see how it actually works these days, but I'll probably wait a bit more, since I'm planning to add more options to the plugin and if possible make some improvements. Some of the things I have in mind are a command for messaging a specific team (amx_teamsay), an option to change the default message color (for example use grey instead of team color) and more. I'm also expecting suggestions for adding some new things to it, so feel free to write here if you need something or you simply have a good idea.

addons_zz 10-05-2015 15:50

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by OciXCrom (Post 2349410)
Well, that looks complicated. :) Maybe I'll try and see how it actually works these days, but I'll probably wait a bit more, since I'm planning to add more options to the plugin and if possible make some improvements.

Don't worry, this is just bureaucratic, but really necessary steps. It seems complicated but is just a bunch of mouse clicks and some typing.

Quote:

Originally Posted by OciXCrom (Post 2349410)
Some of the things I have in mind are a command for messaging a specific team (amx_teamsay), an option to change the default message color (for example use grey instead of team color) and more. I'm also expecting suggestions for adding some new things to it, so feel free to write here if you need something or you simply have a good idea.

As it will keep you code concise and very maintainable, just go ahead. To keep you code concise and very maintainable is a feature which is highly appreciated nowadays. See about software engineering:
The principle of modularity is a specialization of the principle of separation of concerns.
The principle of consistency is a recognition of the fact that it is easier to do things in a familiar context.
The principle of generality is closely related to the principle of anticipation of change.
http://www.d.umn.edu/~gshute/softeng/principles.html

If you changes are not concise, I recommend you to elaborate another plugin to do such new features. As it will keep you code concise and very maintainable.

For example, some days before, I saw you adminchat throwing a exception at my server console. After that I enabled debug mode, and I am waiting to see it again. I think the exception became afraid of to get caught and run away, but I will to keep seeking it. I won't let it run away so easy.

OciXCrom 10-05-2015 17:24

Re: OciXCrom's Admin Chat
 
I'm not planning to make any major changes that will make the plugin harder to work with, if that's what you're trying to tell me. I noticed some minor bugs these few days and I'm currently running a beta version of it in a server, so I can get reports of other problems as well. I already implemented some new options, and I'll probably release a final version soon.

addons_zz 10-05-2015 20:00

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by OciXCrom (Post 2350139)
I'm not planning to make any major changes that will make the plugin harder to work with, if that's what you're trying to tell me.

I'm talking about, for example, introduce changes/features beyond adminchat scope, like features applicable to normal players at adminchat plugin, change theirs color chat. Because, that is not the adminchat scope, admin chat should stay for admins. If someone disagrees with that, what I have on my behalf is the software engineering. Hence you problem is not with me, but with software engineering techniques.

OciXCrom 10-05-2015 20:03

Re: OciXCrom's Admin Chat
 
Yes, you're totally right. I'm not going to do such things, or at least not with this plugin. I'm sticking to its name - admin chat, so admin stuff only.

addons_zz 10-05-2015 20:22

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by OciXCrom (Post 2350176)
Yes, you're totally right. I'm not going to do such things, or at least not with this plugin. I'm sticking to its name - admin chat, so admin stuff only.

Hence, I am so happy to see someone else doing goods things as you then. Thank you very much for you good contribution to open source. Keep the good work :)

OciXCrom 10-07-2015 15:41

Re: OciXCrom's Admin Chat
 
I've updated the plugin. Here's what has been changed:
  • Added a command amx_teamsay <team> <message> which allows you to send a message to a specific team. You can use t/c/s/terror/ct/spec/terrorist/counter/etc. The shortcut command is say_team &<team> <message>.
  • The default (D)HUD message color is now random, instead of white.
  • I made it so the color of the (D)HUD message can be changed only with using a capital letter, because it is very easy to change the color unintentionally. Examples: @R, @G, @B; instead of @r, @g, @b.
  • Added symbols for changing the effect of (D)HUD messages: "$" for a blinking effect and "#" for a typewriter effect. You need to add one of the symbols in the message in order to use the given effect.
  • Sending a message through the server console won't use the server's name anymore, instead it will use the word "SERVER" in different colors.
  • Added a more convenient way for changing the default message color - see the code.
  • All so far noticed bugs and problems have been fixed.

I'm waiting for your comments about the changes and for an approver to take a look at the code.

addons_zz 10-07-2015 19:33

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by OciXCrom (Post 2350697)
[*]The default (D)HUD message color is now random, instead of white.

Uhum, there is colors that are horrible to see depending on the current map light, like you are at de_dust2 or de_prodigy. I think it is not good to use random. Someone else thinks the same?

Hence, definitely will fit a cvar to active or not random colors to default (D)HUD message color. What does you think about that?

addons_zz 10-07-2015 19:41

Re: OciXCrom's Admin Chat
 
And my bad, i just go straight complaining and forgot to compliment, very cool update :)

OciXCrom 10-07-2015 19:58

Re: OciXCrom's Admin Chat
 
Well, white is also quite difficult to see on some maps, depending on where you're staring at, and I personally think that the color has become very boring in the HUD messages. However, when I think about it, it would be better to add a cvar which controls the default color, so you can choose from every available color to be set as default, or even better - apply a custom one.

zmd94 10-07-2015 20:14

Re: OciXCrom's Admin Chat
 
Would love to see video about below feature. ;)
Quote:

Added symbols for changing the effect of (D)HUD messages: "$" for a blinking effect and "#" for a typewriter effect. You need to add one of the symbols in the message in order to use the given effect.

addons_zz 10-07-2015 20:52

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by OciXCrom (Post 2350779)
Well, white is also quite difficult to see on some maps, depending on where you're staring at, and I personally think that the color has become very boring in the HUD messages. However, when I think about it, it would be better to add a cvar which controls the default color, so you can choose from every available color to be set as default, or even better - apply a custom one.

:)

addons_zz 10-07-2015 21:20

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by zmd94 (Post 2350781)
Would love to see video about below feature. ;)

Here is the video:

https://vid.me/rR7E

addons_zz 10-10-2015 14:44

Re: OciXCrom's Admin Chat
 
1 Attachment(s)
Quote:

Originally Posted by addons_zz (Post 2350111)
Some days before, I saw you adminchat throwing a exception at my server console. After that I enabled debug mode, and I am waiting to see it again. I think the exception became afraid of to get caught and run away, but I will to keep seeking it. I won't let it run away so easy.

Hi, today after have debug enable at admin chat, I catch the debug message. (my version is the lasted v1.1)
Quote:

L 10/10/2015 - 15:20:16: [adminchat.amxx] [amx_tsay] tester : I SEE FULL DAY!!
L 10/10/2015 - 15:20:16: [adminchat.amxx] [amx_tsay] tester : FRIEND... GO OBJECTIVE!!!
L 10/10/2015 - 15:20:16: [adminchat.amxx] [amx_csay] tester : I SEE FULL DAY!!
L 10/10/2015 - 15:20:16: [adminchat.amxx] [amx_csay] tester : FRIEND... GO OBJECTIVE!!!
L 10/10/2015 - 15:20:33: [adminchat.amxx] [amx_tsay] tester : WATCHES STAB! Stung? HAVE TO SERVE!!!
L 10/10/2015 - 15:20:33: [adminchat.amxx] [amx_tsay] tester : HAHAHAHAHA HAHAHAHAHAHA
L 10/10/2015 - 15:20:33: [adminchat.amxx] [amx_tsay] tester : WATCHES STAB! Stung? HAVE TO SERVE!!!
L 10/10/2015 - 15:20:33: [adminchat.amxx] [amx_tsay] tester : HAHAHAHAHA HAHAHAHAHAHA
L 10/10/2015 - 15:20:39: [adminchat.amxx] [amx_tsay] tester : WATCHES STAB! Stung? HAVE TO SERVE!!!
L 10/10/2015 - 15:20:39: [adminchat.amxx] [amx_tsay] tester : HAHAHAHAHA HAHAHAHAHAHA
L 10/10/2015 - 15:20:39: [adminchat.amxx] [amx_tsay] tester : WATCHES STAB! Stung? HAVE TO SERVE!!!
L 10/10/2015 - 15:20:39: [adminchat.amxx] [amx_tsay] tester : HAHAHAHAHA HAHAHAHAHAHA
L 10/10/2015 - 15:20:40: [adminchat.amxx] [amx_tsay] tester : UHASUHASUHASUHASUHASUHASUHAS [ |-_-| ]
L 10/10/2015 - 15:20:40: [adminchat.amxx] [amx_tsay] tester : UHASUHASUHASUHASUHASUHASUHASUHAS [ |-_-| ]
L 10/10/2015 - 15:20:40: [adminchat.amxx] [amx_tsay] tester : UHASUHASUHASUHASUHASUHASUHASUHAS [ |-_-| ]
L 10/10/2015 - 15:20:40: [AMXX] Displaying debug trace (plugin "adminchat.amxx")
L 10/10/2015 - 15:20:40: [AMXX] Run time error 4: index out of bounds
L 10/10/2015 - 15:20:40: [AMXX] [0] adminchat.sma::cmd_hsay (line 451)
Quote:

L 10/10/2015 - 15:50:38: [adminchat.amxx] [amx_tsay] [BRAZIL Server] Addons zz's Mul : UHASUHASUHASUHASUHASUHASUHAS [ |-_-
| ]
L 10/10/2015 - 15:50:38: [adminchat.amxx] [amx_tsay] [BRAZIL Server] Addons zz's Mul : UHASUHASUHASUHASUHASUHASUHASUHAS [
|-_-| ]
L 10/10/2015 - 15:50:38: [adminchat.amxx] [amx_tsay] [BRAZIL Server] Addons zz's Mul : UHASUHASUHASUHASUHASUHASUHASUHAS [
|-_-| ]
L 10/10/2015 - 15:50:38: [AMXX] Displaying debug trace (plugin "adminchat.amxx")
L 10/10/2015 - 15:50:38: [AMXX] Run time error 4: index out of bounds
L 10/10/2015 - 15:50:38: [AMXX] [0] adminchat.sma::cmd_hsay (line 451)
L 10/10/2015 - 15:50:41: [admincmd.amxx] Cmd: "tester<1><STEAM_0:0:xxxxxxxxx><>" execute cfg (file "admin/riso_M.cfg")
[AMXX] Succeeeded
L 10/10/2015 - 15:50:41: [adminchat.amxx] [amx_tsay] [BRAZIL Server] Addons zz's Mul : UHASUHASUHASUHASUHASUHASUHAS [ |-_-
| ]
L 10/10/2015 - 15:50:41: [adminchat.amxx] [amx_tsay] [BRAZIL Server] Addons zz's Mul : UHASUHASUHASUHASUHASUHASUHASUHAS [
|-_-| ]
L 10/10/2015 - 15:50:41: [adminchat.amxx] [amx_tsay] [BRAZIL Server] Addons zz's Mul : UHASUHASUHASUHASUHASUHASUHASUHAS [
|-_-| ]
L 10/10/2015 - 15:50:41: [AMXX] Displaying debug trace (plugin "adminchat.amxx")
L 10/10/2015 - 15:50:41: [AMXX] Run time error 4: index out of bounds
L 10/10/2015 - 15:50:41: [AMXX] [0] adminchat.sma::cmd_hsay (line 451)
Apparently is the content of the attached file, that causes the index of bounds.

PHP Code:

448    new dhud = (command[8] == '2') ? 0
449    
new bool:rndm = (clr == 0) ? true false
450    
451    rndm 
send_hudmessage(dhudrandom(255), random(255), random(255), typemessageeffect) : send_hudmessage(dhudg_HudValues[clr][R], g_HudValues[clr][G], g_HudValues[clr][B], typemessageeffect)
452    client_print(0print_console"[%sHUD] %s"dhud "D" ""message

amxx cvars:
Quote:

[ 24] CRXAdminChat 1.1 adminchat.amxx
[ 25] crxchat_anonymous 0 adminchat.amxx
amxx plugins:
Code:

Currently loaded plugins:
      name                    version    author            file            status
 [  1] Admin Base              1.8.2      AMXX Dev Team    admin.amxx      running
 [  2] Admin Commands          1.8.2      AMXX Dev Team    admincmd.amxx    running
 [  3] Admin Help              1.8.2      AMXX Dev Team    adminhelp.amxx  running
 [  4] Slots Reservation      1.8.2      AMXX Dev Team    adminslots.amxx  running
 [  5] Multi-Lingual System    1.8.2      AMXX Dev Team    multilingual.am  running
 [  6] Menus Front-End        1.8.2      AMXX Dev Team    menufront.amxx  running
 [  7] Commands Menu          1.8.2      AMXX Dev Team    cmdmenu.amxx    running
 [  8] Players Menu            1.8.2      AMXX Dev Team    plmenu.amxx      running
 [  9] Teleport Menu          1.8.2      AMXX Dev Team    telemenu.amxx    running
 [ 10] Maps Menu              1.8.2      AMXX Dev Team    mapsmenu.amxx    running
 [ 11] OciXCrom's Admin Chat  1.1        OciXCrom          adminchat.amxx  debug
 [ 12] Anti Flood              1.8.2      AMXX Dev Team    antiflood.amxx  running
 [ 13] Admin Votes            1.8.2      AMXX Dev Team    adminvote.amxx  running
 [ 14] NextMap                1.8.2      AMXX Dev Team    nextmap.amxx    running
 [ 15] TimeLeft                1.8.2      AMXX Dev Team    timeleft.amxx    running
 [ 16] Pause Plugins          1.8.2      AMXX Dev Team    pausecfg.amxx    running
 [ 17] Multi-Mod Server Core  1.0        Addons zz        amx_ultra_core.  running
 [ 18] Multi-Mod Manager      v1.0-rc1    Addons zz        multi-mod_manag  running
 [ 19] Addons zz Menus        9.0        AMXX Dev Team    multi-mod_menus  running
 [ 20] Multi-Mod Help          1.0        Addons zz        multi-mod_help.  running
 [ 21] AdminListen            2.3x        /dev/ urandom    adminlisten.amx  running
 [ 22] Advanced Tracers        0.1        [email protected]  advanced_tracer  running
 [ 23] Aimbot Detection        1.4beta2    bugsy            aimbotdetect_14  running
 [ 24] Exec                    1.0        ToXiC            amx_exec.amxx    running
 [ 25] POD-Bot Menu            1.3        g4s|figurE.09    amxx_podbotmenu  running
 [ 26] Auto Round Restart      1.6        SubStream        autorr.amxx      running
 [ 27] c4 timer                1.1        cheap_suit        c4timer_rnd.amx  running
 [ 28] C4 Sprites Timer        0.1.0      ConnorMcLeod      c4timer_spr.amx  running
 [ 29] Weapons War            7.2        zmd94            cs_war.amxx      running
 [ 30] Chat Logger            2.1a        Jim              chat_logger.amx  running
 [ 31] Daily Changer          1.2        JustinHoMi & JGH  daily_changer.a  running
 [ 32] Galileo Reloaded        1.0-alpha1  Brad Jones        galileo_reloade  running
 [ 33] Golden Weapons          0.1        Addons zz        GoldenWeapons.a  running
 [ 34] GHW Connect Messages    1.1        GHW_Chronic      GHW_connect.amx  running
 [ 35] Weapon Model + Sound R  1.3        GHW_Chronic      GHW_Weapon_Repl  running
 [ 36] Grentrail              1.3        AssKicR          grentrail.amxx  running
 [ 37] Head Shot Locational A  0.9        {OmNi}Eternal    head_shot_annou  running
 [ 38] Hostage Events          0.9.3      default          hostage_events.  paused
 [ 39] Killer's view          0.1.0      ConnorMcLeod      killer_view.amx  running
 [ 40] Knifekill Announcer    0.111      JustinHoMi        knifekill_annou  running
 [ 41] Knifes Only            0.1        BillyTheKid      knifes_only.amx  running
 [ 42] Last man bets          0.9.4      JGHG              lastmanbets.amx  paused
 [ 43] MultiJump              1.1        twistedeuphoria  multijump.amxx  paused
 [ 44] Pain Shock Free        1.0.0      Simon Logic      pain_shock_free  running
 [ 45] AMXX Parachute          0.2.3      KRoT@L            parachute4ever.  running
 [ 46] Real Nade Drops        0.4        VEN              realnadedrops.a  paused
 [ 47] Restrict Weapons        1.8.2      AMXX Dev Team    restmenu.amxx    running
 [ 48] ResetScore              0.2.0      aNNakin          resetscore.amxx  running
 [ 49] Tuff kill Rewards      0.3        mongo            rewards.amxx    running
 [ 50] SCU: Unlimited Money    1.0        Arkshine          scu_unlimited_m  running
 [ 51] Server Rules            1.4        DoubleTap        server_rules.am  running
 [ 52] Silly C4                1.2        Cheap_Suit        sillyc4.amxx    running
 [ 53] SpecList                1.2a        FatalisDK        speclist.amxx    running
 [ 54] CS Stats Logging        1.8.2      AMXX Dev Team    stats_logging.a  running
 [ 55] StatsX                  1.8.2      AMXX Dev Team    statsx.amxx      running
 [ 56] voteban menu            1.2        hjvl              voteban1_2.amxx  running
 [ 57] AMX_Super Menu          0.8.1      Yami Kaitou      amx_super_menu.  running
 [ 58] AMX Super              4.1.1 Nosp  Bmann_420        amx_super.amxx  running
 [ 59] Round Terminator        1.0.1      Arkshine          round_terminato  running
 [ 60] AMX Admin Model        1.1.1      whitemike        amx_adminmodel.  running
 [ 61] Countdown Exec          1.3        SniperBeamer      countdown_exec.  running
 [ 62] CS Misc. Stats UT      1.8.2      Ori, Amx Mod X D  adv_miscstats.a  running
 [ 63] Ultimate KillStreak Ad  0.7        Ori, SAMURAI      adv_killstreak.  running
 [ 64] Stats Configuration    1.8.2      AMXX Dev Team    statscfg.amxx    running
64 plugins, 60 running

status:
Quote:

hostname: [BRAZIL Server] Addons zz's Multi-Mod Server v1.0-alpha1
version : 48/1.0.0.3 6153 secure (80)
tcp/ip : xxx.xxx.xxx.xxx:xxxxx
map : de_prodigy at: 0 x, 0 y, 0 z
players : 1 active (20 max)
meta list:
Quote:

Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm.dll v1.8.2 ini Start ANY
[ 2] Booster RUN - booster_mm.dll v2.40 ini Chlvl Pause
[ 3] POD-Bot mm RUN - podbot_mm.dll vV3B22 ini Chlvl ANY
[ 4] MySQL RUN - mysql_amxx.dll v1.8.2 pl1 ANY ANY
[ 5] SQLite RUN - sqlite_amxx.dll v1.8.2 pl1 ANY ANY
[ 6] CStrike RUN - cstrike_amxx.dll v1.8.2 pl1 ANY ANY
[ 7] CSX RUN - csx_amxx.dll v1.8.2 pl1 ANY ANY
[ 8] GeoIP RUN - geoip_amxx.dll v1.2.0-m pl1 ANY ANY
[ 9] Fun RUN - fun_amxx.dll v1.8.2 pl1 ANY ANY
[10] Engine RUN - engine_amxx.dll v1.8.2 pl1 ANY ANY
[11] Orpheu RUN - orpheu_amxx.dll v2.6.3 pl1 ANY ANY
[12] FakeMeta RUN - fakemeta_amxx.dl v1.8.2 pl1 ANY ANY
[13] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl1 ANY ANY
13 plugins, 13 running

OciXCrom 10-11-2015 14:30

Re: OciXCrom's Admin Chat
 
Good job! :)

This actually happens when you use an invalid color. You misspelled maroon and caused that error. I made it so if you enter an invalid color, it will automatically set it to "random". Thank you for detecting the problem. I'm glad to see that the number of servers using this plugin is rising everyday. Still waiting for an approver to take a look at the code.

addons_zz 10-11-2015 20:29

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by OciXCrom (Post 2352148)
Good job! :)

This actually happens when you use an invalid color. You misspelled maroon and caused that error. I made it so if you enter an invalid color, it will automatically set it to "random". Thank you for detecting the problem. I'm glad to see that the number of servers using this plugin is rising everyday. Still waiting for an approver to take a look at the code.

You are welcome.

Quote:

Originally Posted by OciXCrom (Post 2350779)
I think about it, it would be better to add a cvar which controls the default color, so you can choose from every available color to be set as default, or even better - apply a custom one.

And is coming a cvar to choose a default color or choose to use a random one from a list? For example:

Quote:

// Defines the default color as blue
amx_adminchatcolor blue

// Defines the default color as a random between blue and red
amx_adminchatcolor blue red

// Defines the default color as a random between blue, red and green
amx_adminchatcolor blue red green
And another thing, I always change the hud message time out from 6 to 12~15 inside the code, could be a cvar to do that?

OciXCrom 04-14-2016 15:35

Re: OciXCrom's Admin Chat
 
I finally found enough free time to update this plugin!
  • All of the variable names are changed with more acceptable ones (message => szMessage, name => szName etc)
  • Added a config file which makes the plugin configuartion fairly easy. You can now easily change all of the messages and most important settings without having to make changes to the source code itself.
  • Added an option to change the default (D)HUD message color, as requested.

    PHP Code:

    ; Default (D)HUD Messages Colors -- the color will be used when the player doesn't choose one
    - random 

  • Added an option to control the (D)HUD message time, as requested.

    PHP Code:

    ; (D)HUD Messages Time -- how long before the sent (D)HUD message dissapears from the screen
    6.0 

  • You now need to use @X for a random color, otherwise the plugin will use the "default" color (found in AdminChat.ini), unless you choose some other one - @R, @G, @B etc.

I would like this plugin to be reviewed by an approver. There are probably some things that can be done in more efficient ways. I haven't noticed any bugs so far, but please leave a reply if you find something.

siriusmd99 04-16-2016 04:08

Re: OciXCrom's Admin Chat
 
How the hell e wrote with yellow color in chat. Is that possible. I know that only green, blue and red s working.Are there more possible colours?

OciXCrom 04-16-2016 09:03

Re: OciXCrom's Admin Chat
 
Yellow color in chat? What are you exactly referring to? The color on the images is yellow because my default color is set to yellow (client cvar). If you're talking about the list of colors, they are only for (D)HUD messages, as clearly stated in the description.

siriusmd99 04-16-2016 11:29

Re: OciXCrom's Admin Chat
 
No , thanks. It's client side, I was thinking you changed color with amxx to player. Nevermind.

OciXCrom 05-07-2016 16:16

Re: OciXCrom's Admin Chat
 
Update 3.0:
  • The plugin is once again almost fully rewritten.
  • The configuration file has been completely changed for more convenient and easier usage.
  • I added the messages from the original admin chat in the file in case of someone wanting to use the "retro" style, which has no colors at all.

OciXCrom 08-20-2016 08:01

Re: OciXCrom's Admin Chat
 
Quote:

Originally Posted by KleinMarquez
This AdminChat.ini harms my Computer when it popup after download a file.

Then you should consider changing your antivirus. I don't see how a .ini file can be harmful to your computer.

KleinMarquez 08-21-2016 04:43

Re: OciXCrom's Admin Chat
 
Oh, i have no virus... i have to forgot disable Harm a file in chrome.

OciXCrom 08-21-2016 08:39

Re: OciXCrom's Admin Chat
 
Oh, ok then.

FalleN Angell 11-17-2016 08:39

Re: OciXCrom's Admin Chat
 
Nice iwill try it on my server

Craxor 12-10-2016 12:19

Re: OciXCrom's Admin Chat
 
Oxicrom, realy nice plugin but i have an idea .. can you add also the functionality of this one ?

Because if you add also an motd functionality my plugin can be unnaproved so would be better yours with all-in-one :D :)


All times are GMT -4. The time now is 20:04.

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