Jump to content

Ban


ZeyadGTX

Recommended Posts

Hi,

Didn't know some servers ban players from specifics countries.

You can find the player country using the export function from admin panel getPlayerCountry().

When the player joins the server, we check if his country matches with the list of banned countries. If it does, then we kick him or we ban him. As you want.

The function is:

countryCode = exports.admin:getPlayerCountry ( playerSource ) or "N/A" 

Hope that help you.

Regards

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