ShadoX<~ Posted March 13, 2015 Share Posted March 13, 2015 Hi , im looking for a serial write list , i dont know if it is posible , but the problem is that if i just use a server password , the users that have the password can share it , i dont know if it is a script that can just let the client conect to the server if it is on a serial write list , can some one help me ? Link to comment
Addlibs Posted March 13, 2015 Share Posted March 13, 2015 local whitelist = { ['SERIAL HERE'] = true, } addEventHandler("onPlayerConnect", root, function(nick, ip, _, serial, if not whitelist[serial] then --if not on the whitelist table, cancelEvent(true, "This is a whitelisted server.") --refuse connection with message "This is a whitelisted server" end end ) Server sided. Link to comment
ShadoX<~ Posted March 13, 2015 Author Share Posted March 13, 2015 And if want to add more serials ? , it is just a meta and server side ? Not client side ? Link to comment
LaCosTa Posted March 13, 2015 Share Posted March 13, 2015 if you want to add other serials just add them in here local whitelist = { ['SERIAL HERE'] = true, ["Another one "] = true, ["Another one "] = true , } Link to comment
xXMADEXx Posted March 14, 2015 Share Posted March 14, 2015 Yes, it's server-side. It's not really even hard to create your own meta for it. Check my tutorial: viewtopic.php?f=148&t=75501 - Making a resource Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now