Jump to content
  • 0

Question Whitelist


hanswurst123

Question

13 answers to this question

Recommended Posts

  • 0

Hey,

 

does anyone of you know how I can whitelist my Server? Like noone can join, but everyone with a GM account can join?

 

Can't you just change auth port while you dont want people to log in do what you want to do and change your auth port to the orginal one?

Link to comment
  • 0
quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" then
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

Link to comment
  • 0

what does command("A1wiIHIU") do?

 

There isn't a meaning, you can write "IAMCOOLICANINSERTSENSELESSLETTERSHERE" in the brackets, too. ;D

If you're not a gm or a special person you'll get a kick. (spamkick should be the simpliest solution here)

 

Link to comment
  • 0

 

quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" then
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

 

function is_gm(name)
	local gmTable = {"Ellie","SoNiice","ChuckNorris"}
	for i = 1,table.getn(gmTable),1 do
		if(gmTable[i] == pc.get_name()) then
			return true
		else
			return false
		end
	end
end

-- How to work

quest test begin
	state start begin
		when login begin
			if(test.is_gm() == false) then
				command("logout")
			end
		end
	end
end

Maybe he hasn't one gm on himself server. Table system would be good for this.

 

Best Regards

Ellie

Do not be sorry, be better.

Link to comment
  • 0

Really cancur solutions. What about to set a default value for "account.status" column to "PROCESS" and adding that message to client, like the "BLOCK" one? Think before you post shitty quests, god plox.

Enough is enough

Link to comment
  • 0

 

 

quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" begin
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

 

function is_gm(name)
	local gmTable = {"Ellie","SoNiice","ChuckNorris"}
	for i = 1,table.getn(gmTable),1 do
		if(gmTable[i] == pc.get_name()) then
			return true
		else
			return false
		end
	end
end

-- How to work

quest test begin
	state start begin
		when login begin
			if(test.is_gm() == false)
				command("logout")
			end
		end
	end
end

Maybe he hasn't one gm on himself server. Table system would be good for this.

 

Best Regards

Ellie

 

 

What the fuck, i've just noticed i've written a "then" after the "when". (instead of begin)

Please correct this in your quote, too - just painful. =D

 

@RatCatcher, why do you want to do clientside changes if it's not really required? We've just given him a simply solution.

 

And my solution was only a fast idea, which isn't really recommended, i think the core will say bye with this quest. The solutions with the logout command are also not recommended. (for me)

 

If you want to have a "professional" and only serverside solution you have to set the status for all players on BLOCK or however, if you want to have a special message you need to do a little clientside change how you've said.

  • Love 1
Link to comment
  • 0

@RatCatcher, why do you want to do clientside changes if it's not really required? We've just given him a simply solution.

 

And my solution was only a fast idea, which isn't really recommended, i think the core will say bye with this quest. The solutions with the logout command are also not recommended. (for me)

 

If you want to have a "professional" and only serverside solution you have to set the status for all players on BLOCK or however, if you want to have a special message you need to do a little clientside change how you've said.

He want's to see a message that the server is "in process", that's not really possible to do with given quests. That's why I wrote what I wrote. Nothing against your solution

Enough is enough

Link to comment
  • 0

 

 

 

quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" begin
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

 

function is_gm(name)
	local gmTable = {"Ellie","SoNiice","ChuckNorris"}
	for i = 1,table.getn(gmTable),1 do
		if(gmTable[i] == pc.get_name()) then
			return true
		else
			return false
		end
	end
end

-- How to work

quest test begin
	state start begin
		when login begin
			if(test.is_gm() == false)
				command("logout")
			end
		end
	end
end

Maybe he hasn't one gm on himself server. Table system would be good for this.

 

Best Regards

Ellie

 

 

What the fuck, i've just noticed i've written a "then" after the "when". (instead of begin)

Please correct this in your quote, too - just painful. =D

 

 

Sometimes i forget to put then in lua :D sorry 

 

Best Regards

Ellie

Do not be sorry, be better.

Link to comment
  • 0

 

 

 

 

quest block_players begin
	state start begin
		when login begin
			if pc.is_gm() or pc.get_name() == "your name" then command("logout") end
		end
	end
end

 

But you can cancel the logout process. And your quest is doing the opposite.

quest whitelist begin
	state start begin
		when login with not pc.is_gm() or not pc.get_name() == "insertnamehere" begin
			while true do
				command("A1wiIHIU")
			end
		end
	end
end

I think this would be better.

 

function is_gm(name)
	local gmTable = {"Ellie","SoNiice","ChuckNorris"}
	for i = 1,table.getn(gmTable),1 do
		if(gmTable[i] == pc.get_name()) then
			return true
		else
			return false
		end
	end
end

-- How to work

quest test begin
	state start begin
		when login begin
			if(test.is_gm() == false)
				command("logout")
			end
		end
	end
end

Maybe he hasn't one gm on himself server. Table system would be good for this.

 

Best Regards

Ellie

 

 

What the fuck, i've just noticed i've written a "then" after the "when". (instead of begin)

Please correct this in your quote, too - just painful. =D

 

 

Sometimes i forget to put then in lua :D sorry 

 

Best Regards

Ellie

 

 

No problem, i have failed, too. :P

 

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


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.