manawydan Posted September 11, 2013 Share 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? Link to comment
Castillo Posted September 12, 2013 Share Posted September 12, 2013 What's the problem with it? is it set as server side? Link to comment
manawydan Posted September 13, 2013 Author Share Posted September 13, 2013 yes, is server side. No work, I want to kick, the player if he digite /bind anycommand Link to comment
Castillo Posted September 13, 2013 Share Posted September 13, 2013 That command doesn't trigger the event I think. Link to comment
manawydan Posted September 13, 2013 Author Share Posted September 13, 2013 is there any way to do it? Link to comment
MIKI785 Posted September 14, 2013 Share 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. Link to comment
kevenvz Posted September 14, 2013 Share Posted September 14, 2013 (edited) Function BindOnS (command) This should work Edited September 14, 2013 by Guest Link to comment
Castillo Posted September 14, 2013 Share Posted September 14, 2013 @kevenz: Just by renaming the parameter name, it won't make it work. Link to comment
GamerDeMTA Posted September 14, 2013 Share Posted September 14, 2013 why does he use to get player account? he doesnt use it.. Link to comment
kevenvz Posted September 14, 2013 Share Posted September 14, 2013 Maybe string.match? I always use string.match dunno why Link to comment
Castillo Posted September 14, 2013 Share Posted September 14, 2013 You don't get the problem, the event is never triggered. 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