Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stringbans = "Memo1332;being skinny;6/hurtjake6;being a skinnier skinny;23432423423546433/"
- tablebans = {}
- amountofbans = 0
- savevar = 1
- for i=1,#stringbans do
- if string.sub(stringbans,i,i) == ";" then
- table.insert(tablebans,#tablebans+1,string.sub(stringbans,savevar,i-1))
- savevar = i+1
- elseif string.sub(stringbans,i,i) == "/" and i ~= 1 then
- table.insert(tablebans,#tablebans+1,string.sub(stringbans,savevar,i-1))
- savevar = i+1
- amountofbans = amountofbans + 1
- end
- end
- function diagnosebans(tab)
- local amountofbans = #tab/3
- for i=1,amountofbans do
- print("Player banned by : "..tab[i+(3*i-1)])
- print(" -- Reason : "..tab[(i+1)+(3*i-1)])
- print(" -- Tier : "..tab[(i+2)+(3*i-1)])
- end
- end
- diagnosebans(tablebans)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement