Jump to content

Help me with kick player


Recommended Posts

Hello again everyone! I have a question again. Here I want to kick a player at some point, but the functions do not work (cancelEvent ().... kickPlayer .... banPlayer .......) When using the function cancelEvent () in debuge not write something. When using kickPlayer (source) in debuge wrote:

[09:52:17] WARNING: sftdm.lua: Access denied @ 'banPlayer' - Line: 177

Pls help me :(

Link to comment
Open your Acl.xml and search for 'banPlayer' and set the Rights for banning Player to true.

More Informations:

https://wiki.multitheftauto.com/wiki/ACL

I don't know how many times I've said this to you, but please! TRY to get a BASIC GRIP about your stuff before you try to INSTRUCT others!

This is the wrong way to "solve" the problem. What you actually do, is find the Admin group, and add this resource in it. There's a reason resources aren't allowed to kick/ban players without being cleared to do so in the ACL.

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