Alex10 Posted May 11, 2011 Share Posted May 11, 2011 ok so i made a kick cmd addCommandHandler('kick', thekickfunction) it doesnt work but if i made it like this addCommandHandler('kickp', thekickfunction) or addCommandHandler('kickplayer', thekickfunction) with the same function it works why? and if there is a built in kick command can i remove it?? i tried removeCommandHandler('kick') PS:no resources was running exept one i made by myself thanks in advance Link to comment
karlis Posted May 11, 2011 Share Posted May 11, 2011 (edited) spend some more time learning. function kick(player,reason) lcoal Plyr = getPlayerFromName(player if Plyr then kickPlayer(Plyr,source,tostring(reason)) outputChatBox("you kicked player \'"..player.."\'",source,255,0,0) else outputChatBox("no such player",source) end end addCommandHandler('kick', kick) also be sure your acl is set up right. Edited May 12, 2011 by Guest Link to comment
Klesh Posted May 11, 2011 Share Posted May 11, 2011 You must to give to the resource admin rights, adding in acl group admin. Link to comment
Moderators Citizen Posted May 12, 2011 Moderators Share Posted May 12, 2011 Maybe because the 'kick' cmd is a cmd from MTA ( so it's already exist ) but I'm not really sure Link to comment
Discord Moderators Zango Posted May 12, 2011 Discord Moderators Share Posted May 12, 2011 addCommandHandler on "kick" is blocked unless the calling player has access to command.kick in acl.xml Assign people access to it or remove it from acl.xml 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