Jump to content

Serial write list


Recommended Posts

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
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" 

Server sided.

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...