• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

CM - logi "/i"

Erazma

Banned User
Joined
Sep 3, 2012
Messages
265
Reaction score
4
Czy potrafiłby ktoś napisać aby mi zapisywało wyłącznie logi tworzenia itemów CMów, tzn wszystko co on pisze zaczynając słowami "/i"
 
W pliku createitem.lua przed linijką:
Lua:
local t = string.explode(param, ",")
Dodaj:
Lua:
	-- Logowanie /i
	if getPlayerAccess(cid) == 5 then
		local file = getDataDir() .. "/logs/createditems.txt"
		local toWrite = getPlayerName(cid) .. ": /i " .. param
		doWriteFile(file, toWrite)
	end
	---------------
 
Last edited:
dodaj do talkactiona:
Lua:
sciezka_gdzie_zapisac_log = 
	f = assert(io.open(sciezka_gdzie_zapisac_log, "a+"))
	f = io.open(sciezka_gdzie_zapisac_log, "a+")
	f:write("[".. getPlayerName(cid) .."] ".. param .."\n")
	f:close()
 
Back
Top