Scripting Helpers is winding down operations and is now read-only. More info→
Log in to vote

[Datastore] Log system?

Asked by 9 years ago

(Kind of a request?) Umm anyways Im making a datastored nil logger. So when a player goes nil in a SB I can log them to remember them or kick them time they try to go nil. Basically what Im asking is..

Where would I start?

local NilTable={}


local CData=DS:GetOrderedDataStore('TestGravityNilLogs'):GetSortedAsync(false, 10)
local COutput=CData:GetCurrentPage()

for _,a in pairs(COutput) do
    table.insert(NilTable,{Player = '?'})

I can easily get the player from the nil stage, but how would I insert the data into a table next time I enter the server?

1 answer

Log in to vote
Answered by
bobder2 135
9 years ago

I'm assuming that if you can find somebody going nil you can just pass their userid or name to a script that adds them to a ban list of sorts that just gets updated to datastore. That'd be my best guess, however I've no idea how to find if they go nil. I think the method you're looking for here is GetAsync() to get the contents of the datastore and plop them into a table, although I'm not sure how to do that.

To find them in nil : use network server. MessorAdmin 598 — 9y

Answer this question