function main()
if not isSampLoaded() then return end
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('log'. logg)
while true do wait(-1)
end
end
function logg(param)
id=sampGetCurrentDialogId()
sampSendDialogResponse(id, 1, 0, tostring(param))
end