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 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?


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

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