PDA

View Full Version : Dod STEAMID Message


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

Box Cutter
01-15-2007, 08:42 PM
Good idea Wilson, thank you.

tegu
01-15-2007, 09:01 PM
Thank you indeed. I have wished for this for a very long time now.


Thank you!!!

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


Help??

Wilson [29th ID]
01-17-2007, 11:39 PM
Fixed. Thanks.

tegu
01-18-2007, 12:26 AM
No Sir, thank you!

skoalie
01-18-2007, 04:04 PM
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
01-18-2007, 05:53 PM
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!

yes, 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]
01-18-2007, 09:56 PM
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]
01-20-2007, 04:28 AM
Woops - now it's fixed. Used || instead of && by mistake :P

Kiel |17.SS|
01-20-2007, 09:19 PM
L 01/20/2007 - 16:26:02: Invalid message argument 3
L 01/20/2007 - 16:26:02: [AMXX] Displaying debug trace (plugin "dod_steamidmsg.amxx")
L 01/20/2007 - 16:26:02: [AMXX] Run time error 10: native error (native "get_msg_argtype")
L 01/20/2007 - 16:26:02: [AMXX] [0] dod_steamidmsg.sma::handle_textmsg (line 56)

help please

Wilson [29th ID]
01-21-2007, 03:01 AM
Did you d/l the latest version? Posted yesterday.

Kiel |17.SS|
01-21-2007, 03:44 AM
I think i did. January 20, 2007, 11:07:01 AM

Wilson [29th ID]
01-22-2007, 01:42 AM
ok try now.

Kiel |17.SS|
01-22-2007, 04:06 AM
So far so good. Thanks.

Box Cutter
01-25-2007, 06:41 PM
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
01-25-2007, 10:30 PM
...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..

Kiel |17.SS|
01-28-2007, 04:29 AM
If none is shown, wouldn't it be obvious that it's an admin?

Wilson [29th ID]
01-28-2007, 11:16 AM
hahahaha Kiel is so right

diamond-optic
01-28-2007, 09:59 PM
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
01-30-2007, 11:00 PM
Thanks, just added to our server. :)

swatty
02-04-2007, 09:07 AM
still getting them errors that u said u fixed



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

Wilson [29th ID]
02-04-2007, 10:06 PM
Are you sure you have the latest version? The problem is fixed - try downloading again or something.

Tony Almeida
02-07-2007, 06:57 AM
I added it to our server last week and works fine......that's strange. :/

Kiel |17.SS|
02-07-2007, 11:15 PM
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
04-10-2007, 08:56 PM
Why not make it an option so it is not publicly advertised, just to admins?

Wilson [29th ID]
04-11-2007, 03:16 AM
The idea behind this is so that when an admin is not present, the guys in the server can get the steamid.

diamond-optic
04-12-2007, 12:24 AM
well i could see some people wanting to use it to assist their admins...


i use a somewhat 'similar' plugin that prints steamid & IP to admins when a client leaves.. helps with banning people after they have left :)

Hood [10th MD]
04-12-2007, 03:36 AM
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.

Hood [10th MD]
04-12-2007, 04:02 PM
Ok, I put this code in to make fake steam IDs...
new i;
if(access(id, ADMIN_IMMUNITY) && get_pcvar_num(g_cvarAdmin))
{
for(i=0;i<31;i++)
{
if(isdigit(m_szSteamid[i]))
m_szSteamid[i]=random_num(0,9);
}
}
goes right below get_user_authid...

The 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?)
There's probably a better way than what I did, so any thoughts?

=|[76AD]|= TatsuSaisei
04-12-2007, 05:01 PM
;4990']Ok, I put this code in to make fake steam IDs...
new i;
if(access(id, ADMIN_IMMUNITY) && get_pcvar_num(g_cvarAdmin))
{
for(i=0;i<31;i++)
{
if(isdigit(m_szSteamid[i]))
m_szSteamid[i]=random_num(0,9);
}
}
goes right below get_user_authid...

The 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?)
There's probably a better way than what I did, so any thoughts?

new code is in green
new m_szSteamid[32], m_szNewName[64];

if(get_user_flags(id) & ADMIN_IMMUNITY && get_pcvar_num(g_cvarAdmin))
{
format(m_szSteamid,31,"STEAM_0:&#37;d:%d",random_num(0,1),random_num(10000,999999));
}
else get_user_authid( id, m_szSteamid, 31 );

format( m_szNewName, 63, "%s (%s)", m_szName, m_szSteamid );

Explanation:

I have never seen a Steam ID that started with any number besides 0 (STEAM_0) so that has to remain for "authenticity"

Using 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"

Kiel |17.SS|
04-12-2007, 09:37 PM
How would you add that into the code?

=|[76AD]|= TatsuSaisei
04-12-2007, 10:22 PM
How would you add that into the code?

see 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...

Kiel |17.SS|
04-13-2007, 04:00 PM
Ohh okay. I thought when you said new code, it was added to Hood's code above. haha thanks.

Kiel |17.SS|
04-14-2007, 06:44 PM
I got a problem with it.


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


any idea?

Hood [10th MD]
04-14-2007, 08:53 PM
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
04-30-2007, 03:12 PM
Superb wilson m8 ive just added it works a treat good one

Regards

Blobby

MBosta
07-05-2007, 02:57 AM
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.

Eleven0
07-05-2007, 09:32 AM
You should let them know that they should keep restarting steam until they can join.

How often does that happen?

Because, 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.

MBosta
07-05-2007, 12:27 PM
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.

Price [508th PIR]
07-16-2007, 09:25 PM
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
07-25-2007, 01:34 AM
;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?

did you reboot or at least restart the map?

Myers [93rd ID]
12-06-2008, 01:33 AM
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