hanswurst123 1 Posted December 4, 2014 Share Posted December 4, 2014 Hey, does anyone of you know how I can whitelist my Server? Like noone can join, but everyone with a GM account can join? Link to comment Share on other sites More sharing options...
Denis 1474 Posted December 4, 2014 Share Posted December 4, 2014 quest block_players begin state start begin when login begin if not pc.is_gm() or not pc.get_name() == "your name" then command("logout") end end end end 1 Link to comment Share on other sites More sharing options...
ScreamMyName 100 Posted December 4, 2014 Share Posted December 4, 2014 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 Share on other sites More sharing options...
hanswurst123 1 Posted December 4, 2014 Author Share Posted December 4, 2014 I just want the players to get a Message when they try to login like " The Server is currently in process" Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted December 4, 2014 Share Posted December 4, 2014 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 Share on other sites More sharing options...
Sober 37 Posted December 4, 2014 Share Posted December 4, 2014 what does command("A1wiIHIU") do? Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted December 5, 2014 Share Posted December 5, 2014 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 Share on other sites More sharing options...
Ken 904 Posted December 5, 2014 Share Posted December 5, 2014 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 Share on other sites More sharing options...
RatCatcher 77 Posted December 5, 2014 Share Posted December 5, 2014 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 Share on other sites More sharing options...
.JαyZoN 41 Posted December 5, 2014 Share Posted December 5, 2014 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. 1 Link to comment Share on other sites More sharing options...
RatCatcher 77 Posted December 5, 2014 Share Posted December 5, 2014 @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 Share on other sites More sharing options...
Ken 904 Posted December 5, 2014 Share Posted December 5, 2014 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 sorry Best Regards Ellie Do not be sorry, be better. Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted December 5, 2014 Share Posted December 5, 2014 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 sorry Best Regards Ellie No problem, i have failed, too. Link to comment Share on other sites More sharing options...
SoNiice 14 Posted December 6, 2014 Share Posted December 6, 2014 If you aren't working with the source, you could write a client lib that checks the login name and shows you a message box, when the name isn't in an array. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now