Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

Dod STEAMID Message

by Wilson [29th ID] · 2007-01-15 · 42 replies · 18765 views · 486 downloads

Read the thread (43 posts)

From the first post

/* DOD STEAMID MESSAGE
n * Created by the 29th Infantry Division
n * www.29th.org (A Realism Unit)
n * www.dodrealism.branzone.com -- Revolutionizing Day of Defeat Realism
n *
n * DESCRIPTION
n * Will change "Fuzzy Bunny has joined the game" to
n * "Fuzzy Bunny (STEAM_0:1:32356) has joined the game"
n * as well as "has left the game" messages. Both messages can
n * be enabled or disabled with a CVAR
n * This will prevent people from entering, TKing, and leaving
n * without having their steamid to ban them.
n *
n * CREDITS
n * diamond-optic - a lot of the code was based off the foundation of
n * his joinquitswitch msgs cause it was right in front of me and they
n * hook the same way :-P
n *
n * CVARs
n * dod_steamidmsg <0/1>
n * Enables or disables the overall plugin
n *
n * dod_steamidmsg_connect <0/1>
n * Enables or disables logging steamid's when someone connects
n *
n * dod_steamidmsg_disconnect <0/1>
n * Enables or disables logging steamid's when someone disconnects
n */

Files

dod_steamidmsg.sma v1.0 2 KB 486 dl Download Compile

The thread

All 43 posts from 17 people on Dod STEAMID Message, kept as they were written.

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
01-15-2007, 06:31 PM #1

/* DOD STEAMID MESSAGEn * Created by the 29th Infantry Divisionn * www.29th.org (A Realism Unit)n * www.dodrealism.branzone.com -- Revolutionizing Day of Defeat Realismn *n * DESCRIPTIONn * Will change "[xn]Fuzzy Bunny has joined the game" ton * "[xn]Fuzzy Bunny (STEAM_0:1:32356) has joined the game"n * as well as "has left the game" messages. Both messages cann * be enabled or disabled with a CVARn * This will prevent people from entering, TKing, and leavingn * without having their steamid to ban them.n *n * CREDITSn * diamond-optic - a lot of the code was based off the foundation ofn * his joinquitswitch msgs cause it was right in front of me and theyn * hook the same way :-Pn *n * CVARsn * dod_steamidmsg <0/1>n * Enables or disables the overall pluginn *n * dod_steamidmsg_connect <0/1>n * Enables or disables logging steamid's when someone connectsn *n * dod_steamidmsg_disconnect <0/1>n * Enables or disables logging steamid's when someone disconnectsn */

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
01-15-2007, 08:42 PM #2

Good idea Wilson, thank you.

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
01-15-2007, 09:01 PM #3

Thank you indeed. I have wished for this for a very long time now.rnrnrnThank you!!!

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
01-16-2007, 11:58 PM #4

L 01/16/2007 - 18:34:54: Invalid message argument 3rnL 01/16/2007 - 18:34:54: [AMXX] Displaying debug trace (plugin "dod_steamidmsg.amxx")rnL 01/16/2007 - 18:34:54: [AMXX] Run time error 10: native error (native "get_msg_arg_string")rnL 01/16/2007 - 18:34:54: [AMXX] [0] dod_steamidmsg.sma::handle_textmsg (line 61)rnrnrnHelp??

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
01-17-2007, 11:39 PM #5

Fixed. Thanks.

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
01-18-2007, 12:26 AM #6

No Sir, thank you!

S skoalie
posted here
Posts: 4
Threads: 0
Joined: Jan 2007
01-18-2007, 04:04 PM #7

You can also retain Steam ID's if you run HLSW. If you dont know this program its so you can monitor youre server without being in the server or having Steam running, I use it daily and I can easily go into the console and retrieve and ID and ban a guy if needed.:D works fantastic!

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
01-18-2007, 05:53 PM #8
You can also retain Steam ID's if you run HLSW. If you dont know this program its so you can monitor youre server without being in the server or having Steam running, I use it daily and I can easily go into the console and retrieve and ID and ban a guy if needed.:D works fantastic!
n nyes, that method is good for the server operator, and anyone else with an rcon password.. but what this plugin does is publicly announce the incoming players steamid, so ANYONE on the server is privy to it the moment someone joins.. this is something HLSW can NOT do for you...

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
01-18-2007, 09:56 PM #9

even without hlsw you can check the logs but either way it requires the admin to track it down and it's a pain in the ass :-P

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
01-20-2007, 04:28 AM #10

Woops - now it's fixed. Used || instead of && by mistake :P

K Kiel |17.SS|
posted here
Posts: 163
Threads: 12
Joined: Jul 2006
01-20-2007, 09:19 PM #11

L 01/20/2007 - 16:26:02: Invalid message argument 3nL 01/20/2007 - 16:26:02: [AMXX] Displaying debug trace (plugin "dod_steamidmsg.amxx")nL 01/20/2007 - 16:26:02: [AMXX] Run time error 10: native error (native "get_msg_argtype")nL 01/20/2007 - 16:26:02: [AMXX] [0] dod_steamidmsg.sma::handle_textmsg (line 56)nnhelp please

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
01-21-2007, 03:01 AM #12

Did you d/l the latest version? Posted yesterday.

K Kiel |17.SS|
posted here
Posts: 163
Threads: 12
Joined: Jul 2006
01-21-2007, 03:44 AM #13

I think i did. January 20, 2007, 11:07:01 AM

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
01-22-2007, 01:42 AM #14

ok try now.

K Kiel |17.SS|
posted here
Posts: 163
Threads: 12
Joined: Jul 2006
01-22-2007, 04:06 AM #15

So far so good. Thanks.

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
01-25-2007, 06:41 PM #16

Wilson, any chance on getting an admin immunity cvar added to this plugin? There are times where I want to come into the server disguised and then return as my real name or vice versa when I am watching people and they might notice the STEAM ID's are the same and give me away. If you can, much appreciated, thank you.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
01-25-2007, 10:30 PM #17

...maybe make it so you can enable that admins with immunity (or any level that its set to) will either have a random steam id shown... or none shown..

K Kiel |17.SS|
posted here
Posts: 163
Threads: 12
Joined: Jul 2006
01-28-2007, 04:29 AM #18

If none is shown, wouldn't it be obvious that it's an admin?

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
01-28-2007, 11:16 AM #19

hahahaha Kiel is so right

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
01-28-2007, 09:59 PM #20

well thats also why i threw in the part about a random steam id.. as i do something similar to that on my server...

Tony Almeida
posted here
Posts: 57
Threads: 7
Joined: Jan 2007
01-30-2007, 11:00 PM #21

Thanks, just added to our server. :)

S swatty
posted here
Posts: 1
Threads: 0
Joined: Feb 2006
02-04-2007, 09:07 AM #22

still getting them errors that u said u fixedrnrnrnrnL 01/16/2007 - 18:34:54: Invalid message argument 3rnL 01/16/2007 - 18:34:54: [AMXX] Displaying debug trace (plugin "dod_steamidmsg.amxx")rnL 01/16/2007 - 18:34:54: [AMXX] Run time error 10: native error (native "get_msg_arg_string")rnL 01/16/2007 - 18:34:54: [AMXX] [0] dod_steamidmsg.sma::handle_textmsg (line 61)

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
02-04-2007, 10:06 PM #23

Are you sure you have the latest version? The problem is fixed - try downloading again or something.

Tony Almeida
posted here
Posts: 57
Threads: 7
Joined: Jan 2007
02-07-2007, 06:57 AM #24

I added it to our server last week and works fine......that's strange. :/

K Kiel |17.SS|
posted here
Posts: 163
Threads: 12
Joined: Jul 2006
02-07-2007, 11:15 PM #25

Yeah same here. I got the update and it works perfect. I actually caught someone who came in under a pub name and tked everyone and left (while doing a realism) because of that mod. It's really handy. Thanks!

WARDOG
posted here
Posts: 141
Threads: 14
Joined: Jan 2006
04-10-2007, 07:56 PM #26

Why not make it an option so it is not publicly advertised, just to admins?

Wilson [29th ID]
started this thread
Posts: 623
Threads: 57
Joined: Oct 2005
04-11-2007, 02:16 AM #27

The idea behind this is so that when an admin is not present, the guys in the server can get the steamid.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
04-11-2007, 11:24 PM #28

well i could see some people wanting to use it to assist their admins...nnni use a somewhat 'similar' plugin that prints steamid & IP to admins when a client leaves.. helps with banning people after they have left :)

H Hood [10th MD]
posted here
Posts: 84
Threads: 7
Joined: Nov 2006
04-12-2007, 02:36 AM #29

Excellent. Going to try to modify it myself to generate fake steam IDs for admins with immunity (me!) on the server. This is super sweet, much needed.

H Hood [10th MD]
posted here
Posts: 84
Threads: 7
Joined: Nov 2006
04-12-2007, 03:02 PM #30

Ok, I put this code in to make fake steam IDs...rn

new i;rn		if(access(id, ADMIN_IMMUNITY) && get_pcvar_num(g_cvarAdmin))rn		{rn			for(i=0;i<31;i++)rn			{ rn				if(isdigit(m_szSteamid[i]))rn				m_szSteamid[i]=random_num(0,9);rn			}rn		}
rngoes right below
get_user_authid...
rnrnThe only problem is, when it prints out the message, it shows "STEAM_::" and the numbers are not actually replaced, just deleted (a little obvious, no?)rnThere's probably a better way than what I did, so any thoughts?

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
04-12-2007, 04:01 PM #31
;4990']Ok, I put this code in to make fake steam IDs...n
new i;n        if(access(id, ADMIN_IMMUNITY) && get_pcvar_num(g_cvarAdmin))n        {n            for(i=0;i<31;i++)n            { n                if(isdigit(m_szSteamid[i]))n                m_szSteamid[i]=random_num(0,9);n            }n        }
ngoes right below
get_user_authid...
n nThe only problem is, when it prints out the message, it shows "STEAM_::" and the numbers are not actually replaced, just deleted (a little obvious, no?)nThere's probably a better way than what I did, so any thoughts?
n nnew code is in greenn
new m_szSteamid[32], m_szNewName[64];n n  [COLOR=green]if(get_user_flags(id) & ADMIN_IMMUNITY  && get_pcvar_num(g_cvarAdmin)) [/COLOR]n[COLOR=green] {  [/COLOR]n[COLOR=green]  format(m_szSteamid,31,"STEAM_0:%d:%d",random_num(0,1),random_num(10000,999999));  [/COLOR]n[COLOR=green] }[/COLOR]n[COLOR=green] else[/COLOR] get_user_authid( id, m_szSteamid, 31 );n n  format( m_szNewName, 63, "%s (%s)", m_szName, m_szSteamid );
n nExplanation:n nI have never seen a Steam ID that started with any number besides 0 (STEAM_0) so that has to remain for "authenticity"n nUsing format you have total control over how the "string" will be built ... the number after 0 is either a 0 or a 1 only, I have yet to see a number greater then this ... hence the random_num 0 - 1, as for the rest... simply alter the range to suit your desire... although the largest number i have seen at the end had no more then 7 digits... so I would stick with 999999 for the ultimate in "authenticity"

K Kiel |17.SS|
posted here
Posts: 163
Threads: 12
Joined: Jul 2006
04-12-2007, 08:37 PM #32

How would you add that into the code?

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
04-12-2007, 09:22 PM #33
How would you add that into the code?
n nsee how I colored the code green ?? That is new code.. the black (or non green) text is the "original" code... you simply "drop" the green chunk in between the other parts...

K Kiel |17.SS|
posted here
Posts: 163
Threads: 12
Joined: Jul 2006
04-13-2007, 03:00 PM #34

Ohh okay. I thought when you said new code, it was added to Hood's code above. haha thanks.

K Kiel |17.SS|
posted here
Posts: 163
Threads: 12
Joined: Jul 2006
04-14-2007, 05:44 PM #35

I got a problem with it.rnrnrn

L 04/14/2007 - 14:20:50: Invalid message argument 3rnL 04/14/2007 - 14:20:50: [AMXX] Displaying debug trace (plugin "dod_steamidmsg.amxx")rnL 04/14/2007 - 14:20:50: [AMXX] Run time error 10: native error (native "get_msg_argtype")rnL 04/14/2007 - 14:20:50: [AMXX] [0] phpw0QBRM.sma::handle_textmsg (line 57)
rnrnrnany idea?

H Hood [10th MD]
posted here
Posts: 84
Threads: 7
Joined: Nov 2006
04-14-2007, 07:53 PM #36

Thanks Tatsu, I'll give it a shot - I understand programming from java/c++/html, so those finer points of the amxx are lost on me :)

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
04-30-2007, 02:12 PM #37

Superb wilson m8 ive just added it works a treat good onennRegardsnnBlobby

M MBosta
posted here
Posts: 208
Threads: 30
Joined: Sep 2006
07-05-2007, 01:57 AM #38

This plugin has been working fine untill sometime last night. Players couldn't connect and when they tried it would say "NAME" (STEAM_ID_PENDING) has connected the server, and it would keep kicking people. I removed the plugin, and it turned out fine. I also tried restarting the server, it helped for about an hour, and started again.

E Eleven0
posted here
Posts: 22
Threads: 7
Joined: Apr 2007
07-05-2007, 08:32 AM #39

You should let them know that they should keep restarting steam until they can join.rnrnHow often does that happen?rnrnBecause, i believe that doesn't happen all the time ,it happens to me once in a while. Just reinstall the plugin if you keep having the same problem. It worked for me.

M MBosta
posted here
Posts: 208
Threads: 30
Joined: Sep 2006
07-05-2007, 11:27 AM #40

Like I restarted the server 3 times and it would work fine for about an hour, then it would start and people would get kicked and new players can't join. But I just removed the plugin all together. Weird thing is, I have the exact same plugin installed on our 2nd server, and it hasn't been messing up.

P Price [508th PIR]
posted here
Posts: 70
Threads: 4
Joined: Jul 2007
07-16-2007, 08:25 PM #41

its says unknow cvar everytime... I uploaded the sma and the amxx to the right spot, and then updated the plugins.ini what else do i have 2 do?

Garion
posted here
Posts: 93
Threads: 9
Joined: Nov 2005
07-25-2007, 12:34 AM #42
;6829']its says unknow cvar everytime... I uploaded the sma and the amxx to the right spot, and then updated the plugins.ini what else do i have 2 do?
rnrndid you reboot or at least restart the map?

M Myers [93rd ID]
posted here
Posts: 11
Threads: 2
Joined: Apr 2007
12-06-2008, 01:33 AM #43

do you think u can set up a log system to where it logs the steam ids that come into the server? maybe create a STEAMID.log file and have it save it in a text doc or something? ide appreciate it

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC