Raised This Month: $ Target: $400
 0% 

OciXCrom's Admin Chat - 2021 UPDATE!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
per4shK
Junior Member
Join Date: Jan 2022
Location: Georgia
Old 01-24-2022 , 13:45   Re: OciXCrom's Admin Chat - 2021 UPDATE!
Reply With Quote #1

Ay bro, I have got the AMXMODX Version 1.9 and I can't compile the crx_chatmanager because of the fatal error code 111, I tried to convert it from every single online web compiler but I couldn't success it every time I try to compile it I get this error: "crx_chatmanager.sma(13) : fatal error 111: user error: Your "cromchat.inc" is outdated. Please replace it with the one attached in the archive." I have readen the error and I couldn't find any file called "cromchat.ini", I changed it from a websitee but still the same, I also replaced it with the same exact location and still same, could you send me the solution file?

Thanks!
per4shK is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 10-02-2015 , 13:28   Re: OciXCrom's Admin Chat
Reply With Quote #2

Sweet, my next server is gonna use this one! GJ
redivcram is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-02-2015 , 13:48   Re: OciXCrom's Admin Chat
Reply With Quote #3

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.
HamletEagle is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 10-02-2015 , 13:58   Re: OciXCrom's Admin Chat
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
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

Last edited by addons_zz; 10-02-2015 at 14:00.
addons_zz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-03-2015 , 07:34   Re: OciXCrom's Admin Chat
Reply With Quote #5

Quote:
Originally Posted by addons_zz View Post
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.

Last edited by OciXCrom; 10-03-2015 at 07:36.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 10-03-2015 , 11:25   Re: OciXCrom's Admin Chat
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
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.

Last edited by addons_zz; 10-03-2015 at 11:46.
addons_zz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-03-2015 , 14:03   Re: OciXCrom's Admin Chat
Reply With Quote #7

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.

Last edited by OciXCrom; 10-03-2015 at 14:04.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 10-05-2015 , 15:50   Re: OciXCrom's Admin Chat
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
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 View Post
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.

Last edited by addons_zz; 10-05-2015 at 16:16.
addons_zz is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 10-10-2015 , 14:44   Re: OciXCrom's Admin Chat
Reply With Quote #9

Quote:
Originally Posted by addons_zz View Post
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
Attached Files
File Type: cfg riso_M.cfg (259 Bytes, 302 views)

Last edited by addons_zz; 10-10-2015 at 14:56.
addons_zz is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-05-2015 , 17:24   Re: OciXCrom's Admin Chat
Reply With Quote #10

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.

Last edited by OciXCrom; 10-05-2015 at 17:25.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 20:04.


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