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? "Querer não é poder, mas tentar é avançar"!
Castillo Posted September 12, 2013 Posted September 12, 2013 What's the problem with it? is it set as server side? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 "Querer não é poder, mas tentar é avançar"!
Castillo Posted September 13, 2013 Posted September 13, 2013 That command doesn't trigger the event I think. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
manawydan Posted September 13, 2013 Author Posted September 13, 2013 is there any way to do it? "Querer não é poder, mas tentar é avançar"!
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. Lua Scripter Owner of mshost.cz MTA portal.
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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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