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
Castillo Posted August 19, 2014 Posted August 19, 2014 Where is "isPlayerInTeam" function defined? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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. ~Scripts~ Clan War System V1.2.0 ~Maps~ [DM]Et-win - The Run [FUN]Et-win - Drift Rocket [FUN]Et-win - Drift Rocket // [DD]Et-win - Cross 3xC
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