Coffey Posted March 29, 2013 Share Posted March 29, 2013 Is there a way to ban a region, for example USA, Russia, etc ? So when the player joins, the server gets his region, and if the region matches the blocked region, then he cant connect. Link to comment
MIKI785 Posted March 29, 2013 Share Posted March 29, 2013 Yes, you can. Use admin resource. addEventHandler("onPlayerJoin", root, function () if exports.admin:getPlayerCountry(source) == "RU" then --If russia kickPlayer(source, "Reason") --Change reason end end) Link to comment
PaiN^ Posted March 29, 2013 Share Posted March 29, 2013 banPlayer not kickPlayer, And must add it to the admin group in acl.xml .. Link to comment
TAPL Posted March 29, 2013 Share Posted March 29, 2013 https://wiki.multitheftauto.com/wiki/OnPlayerConnect + cancelEvent() 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