Raised This Month: $32 Target: $400
 8% 

Amx Deluxe Adminchat (Ludwig van)


Post New Thread Reply   
 
Thread Tools Display Modes
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 07-05-2006 , 15:39   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #21

I was asked if this works with amxx 1.75 and it does. No problems that I could find =D
__________________
Hell Phoenix is offline
TheRising
Member
Join Date: Mar 2005
Location: Frankfurt Germany
Old 07-05-2006 , 18:16   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #22

HLSW amx_chat & rcon amx_say does not work.

amx_chat test:
[amx_ejl_adminchat.amxx] "<0><><>" chat "test"
String formatted incorrectly - parameter 5 (total 4)
[AMXX] Displaying debug trace (plugin "amx_ejl_adminchat.amxx")
[AMXX] Run time error 25: parameter error
[AMXX] [0] amx_ejl_adminchat.sma::admin_chat (line 122)

amx_tsay test:
[amx_ejl_adminchat.amxx] "<0><><>" tsay "test"
"<0><><>" triggered "amx_tsay" (text "test")

amx_psay Alloc test:
(Pvt msg to Alloc) : test
[amx_ejl_adminchat.amxx] "<0><Alloc><>" psay "<06>ï
"<0><Alloc><>" triggered "amx_psay" (text "<06>ï

When calling amx_say with rcon there shows nothing in console or on client screen.

With best regards
TheRising
__________________

Running Plugins & Settings || Server Homepage + Customstuff || HLSW
WebSVN || Anon SVN || German Hompage Take a look at the Pluginlinklist

Last edited by TheRising; 07-05-2006 at 18:24.
TheRising is offline
Send a message via ICQ to TheRising
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 07-06-2006 , 09:49   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #23

Your right. amx_psay goes through even though it shows up weird in the log. I will look at this today and hopefully post a new version very soon =D
__________________
Hell Phoenix is offline
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 07-06-2006 , 23:36   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #24

Plugin updated

Code:
v1.6 - Fixed the logging errors produced from Rcon/Console using the functions (thanks to TheRising for finding the errors)
Wish I would have looked at how many downloads before I changed the file...I hate that =(
__________________

Last edited by Hell Phoenix; 07-06-2006 at 23:39.
Hell Phoenix is offline
TheRising
Member
Join Date: Mar 2005
Location: Frankfurt Germany
Old 07-07-2006 , 01:37   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #25

Still bugged a bit.

amx_say still doesn't work. You forgot the register_srvcmd.

Then it gets logged but still nothing appears on screen. I added remove_quotes(message) from the original amxx plugin .

And you should check all lines like these:
Quote:
new message[192], name[32], authid[32], userid
read_args(message,191)
get_user_authid(id, authid, 31)
get_user_name(id, name, 31)
format(message,191,"(ADMINS) %s : %s",name,message)
parse(text,name,31)
new color[10], message[192]
parse(message,color,10)
http://wiki.amxmodx.org/index.php/Pawn_Tutorial#Strings

I'm not sure at all but some of them are looking wrong to me (the quoted lines are from my edited version). I lowered some of the values like read_args to 191 from 192 and changed all authid vars to 32 instead of 16.
__________________

Running Plugins & Settings || Server Homepage + Customstuff || HLSW
WebSVN || Anon SVN || German Hompage Take a look at the Pluginlinklist

Last edited by TheRising; 07-09-2006 at 09:28.
TheRising is offline
Send a message via ICQ to TheRising
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 07-07-2006 , 11:24   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #26

Your right. When I went through the plugin the first time I didnt know much about scripting so I never caught the strings stuff (as it worked and will work...its not right though). So, I have updated it yet again...found in the first post.

As for the amx_say, it doesnt need to be a server command. Using regular say via rcon gets you the same results. Thats why its not there.

Thanks for the good eyes and help TheRising =D
__________________
Hell Phoenix is offline
TheRising
Member
Join Date: Mar 2005
Location: Frankfurt Germany
Old 07-07-2006 , 11:29   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #27

Yeah but at all rcon say is not logged in the amx_logs like it does for amx_chat amx_say amx_tsay and so on.

L 07/07/2006 - 170:55: [amx_ejl_adminchat.amxx] "www.planetrising.de 24h Dust2 C<0><><>" say "test" <--- made with rcon amx_say of my version rcon say doesn't get logged (in cstrike/addons/amxmodx/logs, there is something in cstrike/logs but these logs are really unreadable)
L 07/07/2006 - 172:01: [amx_ejl_adminchat.amxx] "Console" admin_chat "test"
L 07/07/2006 - 172:05: [amx_ejl_adminchat.amxx] "Console" tsay "r test"

And I want it to be logged while amx_chat is only adminchat and I'm often chatting from hlsw and the original plugin (which gets replaced by yours) has the "register_srvcmd amx_say" too.

Is the parse function with color,10 right? The array is color[10] but I'm not so sure how parse() works.

It could be also an option to replace the servername in amx_say with "Console" when called by rcon like the other says do.

With best regards
TheRising
__________________

Running Plugins & Settings || Server Homepage + Customstuff || HLSW
WebSVN || Anon SVN || German Hompage Take a look at the Pluginlinklist

Last edited by TheRising; 07-07-2006 at 12:28.
TheRising is offline
Send a message via ICQ to TheRising
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 07-07-2006 , 15:38   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #28

I could add that in. It would be nice to have it in the same logs. I will get to work on that now =D
__________________
Hell Phoenix is offline
Hell Phoenix
Senior Member
Join Date: Jan 2005
Old 07-07-2006 , 16:35   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #29

OK, added that in. See first post for updated file.
__________________
Hell Phoenix is offline
skead
BANNED
Join Date: Aug 2005
Location: Munich, Germany
Old 07-17-2006 , 08:05   Re: Amx Deluxe Adminchat (Ludwig van)
Reply With Quote #30

is it possible to colorize the amx_chat to the teamcolors?

for dod ?
skead is offline
Send a message via ICQ to skead Send a message via MSN to skead
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:56.


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