Dod STEAMID Message
by Wilson [29th ID] · 2007-01-15 · 42 replies · 18765 views · 486 downloads
From the first post
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 */
The thread
All 43 posts from 17 people on Dod STEAMID Message, kept as they were written.
Threads: 57
Joined: Oct 2005
/* 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 */
Threads: 7
Joined: Jun 2006
Good idea Wilson, thank you.
Threads: 11
Joined: Aug 2006
Thank you indeed. I have wished for this for a very long time now.rnrnrnThank you!!!
Threads: 11
Joined: Aug 2006
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??
Threads: 57
Joined: Oct 2005
Fixed. Thanks.
Threads: 0
Joined: Jan 2007
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!
Threads: 54
Joined: May 2005
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...
Threads: 57
Joined: Oct 2005
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
Threads: 57
Joined: Oct 2005
Woops - now it's fixed. Used || instead of && by mistake :P
Threads: 12
Joined: Jul 2006
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
Threads: 57
Joined: Oct 2005
Did you d/l the latest version? Posted yesterday.
Threads: 12
Joined: Jul 2006
I think i did. January 20, 2007, 11:07:01 AM
Threads: 57
Joined: Oct 2005
ok try now.
Threads: 12
Joined: Jul 2006
So far so good. Thanks.
Threads: 7
Joined: Jun 2006
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.
Threads: 103
Joined: May 2005
...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..
Threads: 12
Joined: Jul 2006
If none is shown, wouldn't it be obvious that it's an admin?
Threads: 57
Joined: Oct 2005
hahahaha Kiel is so right
Threads: 103
Joined: May 2005
well thats also why i threw in the part about a random steam id.. as i do something similar to that on my server...
Threads: 7
Joined: Jan 2007
Thanks, just added to our server. :)
Threads: 0
Joined: Feb 2006
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)
Threads: 57
Joined: Oct 2005
Are you sure you have the latest version? The problem is fixed - try downloading again or something.
Threads: 7
Joined: Jan 2007
I added it to our server last week and works fine......that's strange. :/
Threads: 12
Joined: Jul 2006
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!
Threads: 14
Joined: Jan 2006
Why not make it an option so it is not publicly advertised, just to admins?
Threads: 57
Joined: Oct 2005
The idea behind this is so that when an admin is not present, the guys in the server can get the steamid.
Threads: 103
Joined: May 2005
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 :)
Threads: 7
Joined: Nov 2006
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.
Threads: 7
Joined: Nov 2006
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?Threads: 54
Joined: May 2005
;4990']Ok, I put this code in to make fake steam IDs...nn nnew code is in greennngoes right belownew 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 }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?get_user_authid...
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"Threads: 12
Joined: Jul 2006
How would you add that into the code?
Threads: 54
Joined: May 2005
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...
Threads: 12
Joined: Jul 2006
Ohh okay. I thought when you said new code, it was added to Hood's code above. haha thanks.
Threads: 12
Joined: Jul 2006
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?
Threads: 7
Joined: Nov 2006
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 :)
Threads: 47
Joined: Apr 2007
Superb wilson m8 ive just added it works a treat good onennRegardsnnBlobby
Threads: 30
Joined: Sep 2006
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.
Threads: 7
Joined: Apr 2007
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.
Threads: 30
Joined: Sep 2006
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.
Threads: 4
Joined: Jul 2007
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?
Threads: 9
Joined: Nov 2005
;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?
Threads: 2
Joined: Apr 2007
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

