Skip to content

Instantly share code, notes, and snippets.

@CanadianJeff
Created February 14, 2022 12:08
Show Gist options
  • Save CanadianJeff/35ca2122ce76a9c3639a96f1137b4a99 to your computer and use it in GitHub Desktop.
Save CanadianJeff/35ca2122ce76a9c3639a96f1137b4a99 to your computer and use it in GitHub Desktop.
function OnGameEvent_player_connect(params){
if(!params.bot){
local log = "Player " + params.name + " connected from " + params.address + " with SteamID: " + params.networkid
printl(log)
local file = FileToString("connect_log.txt")
if(file == null){
StringToFile("connect_log.txt", log)
} else {
StringToFile("connect_log.txt", file + log + "\n")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment