1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
function LogCommands(id,txt) 	local usgn = player(id,"usgn") 	local ip = player(id,"ip") 	local name = player(id,"name") 	local team = player(id,"team") 	local steam = tonumber(player(id,"steamid")) 	local file = io.open("sys/lua/alex_admin/logs.txt","a+") 	file:write((os.date("%H:%M:%S").." - "..os.date("%d").."-"..os.date("%m").."-"..os.date("%Y")),"\n") 	file:write(("[ID: "..id.."] [USGN: "..usgn.."] [STEAM: "..steam.."] [IP: "..ip.."] [Team: "..team.."] [Name: "..player(id, "name").."]: "..txt),"\n") 	file:flush() 	file:close() end
The result of this function on linux centos >
1
14:46:56 - 27-12-2017[ID: 2] [USGN: 57648] [STEAM: 0] [IP: ] [Team: 1] [Name: Player]: !14:47:02 - 27-12-2017[ID: 2] [USGN: 57648] [STEAM: 0] [IP: ] [Team: 1] [Name: Player]: !rcon
1
2
3
4
2
3
4
14:46:56 - 27-12-2017 [ID: 2] [USGN: 57648] [STEAM: 0] [IP: 188.26.247.177] [Team: 1] [Name: Player]: ! 14:47:02 - 27-12-2017 [ID: 2] [USGN: 57648] [STEAM: 0] [IP: 188.26.247.177] [Team: 1] [Name: Player]: !rcon
Also just noticed that steamid is written like this >
1
[STEAM: 7.6561198305518e+16]