mouadys Posted August 19, 2014 Posted August 19, 2014 Hello, i made a teamkick script accessible for players in ACL group Deputy I don't get any output function usnskick (sourceplayer, command, who) local TargetPlayer = getPlayerFromName (who) local accName = getAccountName ( getPlayerAccount (sourceplayer) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Deputy" ) ) then if isPlayerInTeam ( TargetPlayer, "US_Navy_SEALs" ) then setPlayerTeam (TargetPlayer, nil) end end end addCommandHandler ("kickusns", usnskick ) Thank you
Et-win Posted August 19, 2014 Posted August 19, 2014 Probably he uses this: https://wiki.multitheftauto.com/wiki/IsPlayerInTeam And be sure that 'getPlayerFromName' means the full name with HEX color codes.
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