Welcome, Guest. Please login or register.
Did you miss your activation email?
September 19, 2024, 09:19:11 PM
Home Help Login Register
News: Trouble in Terrorist Town? Site here, forum here.

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Publish Steam IDs in Chat on enter/exit
Pages: [1]
Author Topic: Publish Steam IDs in Chat on enter/exit  (Read 6534 times)
Machete.Panda
Poster

Posts: 5


« on: June 02, 2011, 02:34:35 PM »

Yet another lua I cant find.  ::) Anyone know where I can find the Lua that prints peoples Steam ID as they enter and leave the game?
Tommynator
Poster

Posts: 173

Tommynator is a traitor!


« Reply #1 on: June 02, 2011, 06:01:06 PM »

What for?
Handy_man
Poster

Posts: 308


SNG community admin


« Reply #2 on: June 02, 2011, 06:08:03 PM »

Probably because he doesn't realize you can get steam id's after a player leaves via their community page..

[b]
Sky-netgaming.com
eeny
Build Tester
*
Posts: 10242


+1


« Reply #3 on: June 02, 2011, 06:27:48 PM »

Probably because he doesn't realize you can get steam id's after a player leaves via their community page..


Which is more of a hassle than it just appearing.

Nobody Expects the Malkavian Inquisition!
GrayScare0
Poster

Posts: 404


« Reply #4 on: June 02, 2011, 06:34:11 PM »

I used a script similar to the one you are describing a while ago.  I don't have it anymore, but I do know what you're referring to.
sniperduck
Poster

Posts: 178


|:NxS:| Staff! :D


« Reply #5 on: June 02, 2011, 06:59:00 PM »

function FirstSpawn( ply )
    PrintMessage( HUD_PRINTTALK, ply:Nick().. " joined, his SteamID is: " ..ply:SteamID() )
end

hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", FirstSpawn )

function PlayerDisconnect( ply )
    PrintMessage( HUD_PRINTTALK, ply:Nick().. " has disconnected, his SteamID is: " ..ply:SteamID() )
end

hook.Add( "PlayerDisconnected", "playerDisconnected", PlayerDisconnect )


I have one :)

Overtime these forums have made me an asshole. ;D (TTT subforum)
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27016
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: <COMING SOON>
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #6 on: June 02, 2011, 07:52:39 PM »

function FirstSpawn( ply )
    PrintMessage( HUD_PRINTTALK, ply:Nick().. " joined, his SteamID is: " ..ply:SteamID() )
end

hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", FirstSpawn )

function PlayerDisconnect( ply )
    PrintMessage( HUD_PRINTTALK, ply:Nick().. " has disconnected, his SteamID is: " ..ply:SteamID() )
end

hook.Add( "PlayerDisconnected", "playerDisconnected", PlayerDisconnect )


I have one :)

I remember that thread. :P
sniperduck
Poster

Posts: 178


|:NxS:| Staff! :D


« Reply #7 on: June 02, 2011, 08:16:49 PM »

I remember that thread. :P

same and I LOVE THAT CODE, its just so helpful.

Overtime these forums have made me an asshole. ;D (TTT subforum)
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27016
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: <COMING SOON>
Machete.Panda
Poster

Posts: 5


« Reply #8 on: June 02, 2011, 08:26:54 PM »

function FirstSpawn( ply )
    PrintMessage( HUD_PRINTTALK, ply:Nick().. " joined, his SteamID is: " ..ply:SteamID() )
end

hook.Add( "PlayerInitialSpawn", "playerInitialSpawn", FirstSpawn )

function PlayerDisconnect( ply )
    PrintMessage( HUD_PRINTTALK, ply:Nick().. " has disconnected, his SteamID is: " ..ply:SteamID() )
end

hook.Add( "PlayerDisconnected", "playerDisconnected", PlayerDisconnect )


I have one :)


hmmm... kewl... but uh... where does this code go? :-)
bigbadboo
Poster

Posts: 287


« Reply #9 on: June 02, 2011, 11:49:39 PM »

Shove it in autorun.
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #10 on: June 03, 2011, 12:20:15 AM »

Shove it in autorun.

If he really needs to know, then you should at least tell him it's in <main directory>/lua/autorun/server.
Machete.Panda
Poster

Posts: 5


« Reply #11 on: June 03, 2011, 04:00:16 AM »

Perfect, thank you much! :)
wesker
Poster

Posts: 17


« Reply #12 on: June 18, 2011, 10:09:01 AM »

Thank you sniperduck as I needed this too but could someone edit it so it only shows in console?
Jonzky
Poster

Posts: 28


« Reply #13 on: June 18, 2011, 11:17:28 AM »

I think if you change HUD_PRINTTALK to HUD_PRINTCONSOLE then it should print it to the clients console instead.
wesker
Poster

Posts: 17


« Reply #14 on: June 18, 2011, 05:15:23 PM »

Thanks, that did it.
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Publish Steam IDs in Chat on enter/exit « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.01 seconds with 19 queries.