Jump to content

[REQ]Clan Tag Protection Script


Recommended Posts

A "clean" way of doing it is to create a "clan" group in your ACL and assign clan member accounts to this group. You can then get all player objects and check if the signed-in player is indeed a member. Pattern matching can be used as an extra security routine to see if the clan tag exists in the nickname.

Link to comment
How do you propose checking if a person is in fact a member of your clan?

Store them in an XML file(?)

So what, you have a list of valid names that anyone can use and get Clantag access? I think not

I'm a n00b here, so excuse me if I've got this wrong - I've not actually started scripting yet but given what I'm reading in the wiki, I would assume that you would make use of Account functions on the server to securely tell whether a user belongs to a clan?

Obviously you would need to verify that they belong to the clan first, e.g. the user would register on the server using addAccount etc, and then they apply to become part of a clan. It would make sense that you then need an Admin or "1st officer" of the clan to accept them into it, as you would expect in any clan/gang. This clan membership could then be stored against the User's Account, using setAccountData(userAccount,"clanMembership") or whatever you want your key to be called.

When the user logs in, instead of using their nick to verify them, it would actually require the user to login (with username/password), at which point you can then check getAccountData(userAccounts, "clanMembership") to return whether the user belongs to the clan you want them to be part of. Once you know if they belong to the clan or not, kick them if their nickname gives the impression that they are, by using the pattern matching that was mentioned earlier in the thread.

Link to comment

You could check their user name and serial against a list of authorised members data, also have an optional password in case their serial changes.

That would be reasonably robust imo.

edit/ you'd probably also want an addClanMember function to record any new members to the xml file (or whatever storage method you used)

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