Created
February 14, 2022 12:08
-
-
Save CanadianJeff/35ca2122ce76a9c3639a96f1137b4a99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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