scolen Posted August 19, 2023 Share Posted August 19, 2023 If any player uses any animation, how can he be kicked from the server? Link to comment
Shady1 Posted August 19, 2023 Share Posted August 19, 2023 (edited) 8 hours ago, scolen said: If any player uses any animation, how can he be kicked from the server? function checkPlayerDoingAnim() local block,anim = getPedAnimation(localPlayer) if block and anim then triggerServerEvent("kickPlayer",localPlayer, "Don't use animations") end end local animChecker = setTimer(checkPlayerDoingAnim, 350,0) -client addEvent("kickPlayer",true) addEventHandler("kickPlayer",resourceRoot, function(reason) if client then kickPlayer(client, reason) end end) -server Edited August 19, 2023 by Shady1 Link to comment
scolen Posted August 20, 2023 Author Share Posted August 20, 2023 12 hours ago, Shady1 said: function checkPlayerDoingAnim() local block,anim = getPedAnimation(localPlayer) if block and anim then triggerServerEvent("kickPlayer",localPlayer, "Don't use animations") end end local animChecker = setTimer(checkPlayerDoingAnim, 350,0) -client addEvent("kickPlayer",true) addEventHandler("kickPlayer",resourceRoot, function(reason) if client then kickPlayer(client, reason) end end) -server bro not working Link to comment
Shady1 Posted August 20, 2023 Share Posted August 20, 2023 13 hours ago, scolen said: bro not working show debug !! Link to comment
scolen Posted August 21, 2023 Author Share Posted August 21, 2023 13 hours ago, Shady1 said: show debug !! access denied @ kickplayer Link to comment
Balázs1 Posted August 21, 2023 Share Posted August 21, 2023 (edited) Give the resource admin rights like this in acl.xml: <object name="resource."RESOURCE NAME HERE" /> Then type "reloadacl" command in console. Edited August 21, 2023 by Balázs1 1 Link to comment
scolen Posted August 28, 2023 Author Share Posted August 28, 2023 On 21/08/2023 at 16:32, Balázs1 said: Give the resource admin rights like this in acl.xml: <object name="resource."RESOURCE NAME HERE" /> Then type "reloadacl" command in console. thanks bro 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