manawydan Posted September 11, 2013 Posted September 11, 2013 function BindOnS(commando) local accName = getAccountName(getPlayerAccount(source)) -- if isObjectInACLGroup ("user."..accName,aclGetGroup("Admin")) then return end if string.find(commando,"bind") then kickPlayer(source,"Não use bind's") end end addEventHandler("onPlayerCommand",getRootElement(),BindOnS) what's erros?
Castillo Posted September 12, 2013 Posted September 12, 2013 What's the problem with it? is it set as server side?
manawydan Posted September 13, 2013 Author Posted September 13, 2013 yes, is server side. No work, I want to kick, the player if he digite /bind anycommand
Castillo Posted September 13, 2013 Posted September 13, 2013 That command doesn't trigger the event I think.
MIKI785 Posted September 14, 2013 Posted September 14, 2013 bind is client command like quit I dont know if it works but maybe client sided onClientConsole might work, but trying to block bind command is kinda stupid.
kevenvz Posted September 14, 2013 Posted September 14, 2013 (edited) Function BindOnS (command) This should work Edited September 14, 2013 by Guest
Castillo Posted September 14, 2013 Posted September 14, 2013 @kevenz: Just by renaming the parameter name, it won't make it work.
GamerDeMTA Posted September 14, 2013 Posted September 14, 2013 why does he use to get player account? he doesnt use it..
kevenvz Posted September 14, 2013 Posted September 14, 2013 Maybe string.match? I always use string.match dunno why
Castillo Posted September 14, 2013 Posted September 14, 2013 You don't get the problem, the event is never triggered.
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