DJION4 Posted January 8, 2014 Share Posted January 8, 2014 heyo all i need little help i wanna ask you if somebody can help me with automatical ban that when somone login with name in the group name ban that that guy is baned i trying to do it but well i am not soo good at it so need little help function getPlayerBan() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "ban" ) ) then getPlayerBan(source, source) end addEventHandler("onPlayerLogin", getRootElement(), getPlayerBan) Link to comment
Castillo Posted January 8, 2014 Share Posted January 8, 2014 function getPlayerBan ( _, account ) if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( "ban" ) ) then banPlayer ( source, true, false, true ) end end addEventHandler ( "onPlayerLogin", getRootElement(), getPlayerBan ) 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