Jump to content

How to make max account per IP


amine2

Recommended Posts

52 minutes ago, amine2 said:

How to make max account per IP.

I have a login panel and i need to make max accounts per IP and i need help.

function getPlayerAccountCount (pl)
	local ipPl = getPlayerIP (pl)
	local count = 0
	for i, v in ipairs (getAccounts()) do
		if getAccountIP(v) == ipPl then
			count = count + 1
		end
	end
	return count
end

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...