Welcome, Guest. Please login or register.
Did you miss your activation email?
September 20, 2024, 02:42:18 AM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Player Connect/Disconnect
Pages: [1]
Author Topic: Player Connect/Disconnect  (Read 3430 times)
nrich588
Poster

Posts: 253

WzG Owner


« on: August 28, 2011, 12:26:09 AM »

I was wondering if there is some lua floating about that prints players STEAM id's when they connect/disconnect in chat.
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #1 on: August 28, 2011, 12:43:57 AM »

Oh look, this thread again. :P

function FirstSpawn( ply )
    PrintMessage( HUD_PRINTTALK, ply:Nick().. " has connected. ID: " ..ply:SteamID() )
end

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

function PlayerDisconnect( ply )
    PrintMessage( HUD_PRINTTALK, ply:Nick().. " has left. ID: " ..ply:SteamID() )
end

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

Posts: 308


SNG community admin


« Reply #2 on: August 28, 2011, 12:55:04 AM »

Simple useful but only required on player disconnect imo no need to spam users with when players join and their id, but disconnect is worth it.

[b]
Sky-netgaming.com
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Player Connect/Disconnect « 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.008 seconds with 17 queries.