Farhat Posted October 2, 2015 Share Posted October 2, 2015 Hola quiciera saber quien me puede dar la funcion para que las personas de un grupo en el ACL puedan usar jetpack con un comando o bind solo las personas e un grupo en especial! Link to comment
UserToDelete Posted October 2, 2015 Share Posted October 2, 2015 grupos_acl = {"Admin", "SuperModerator", "Moderator"} addCommandHandler("jet", function (source) for k,v in ipairs(grupos_acl) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v)) then if doesPedHaveJetPack(source) then removePedJetPack(source) break else givePedJetPack(source) break end end end end ) Link to comment
Farhat Posted October 3, 2015 Author Share Posted October 3, 2015 grupos_acl = {"Admin", "SuperModerator", "Moderator"} addCommandHandler("jet", function (source) for k,v in ipairs(grupos_acl) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v)) then if doesPedHaveJetPack(source) then removePedJetPack(source) break else givePedJetPack(source) break end end end end ) Gracias ya lo probare, oye Venad nesesito hablar contigo me das tu Facebook ? Link to comment
Farhat Posted October 5, 2015 Author Share Posted October 5, 2015 Esto seria haci ? --=========================================================================================== --=================================================Jet======================================= --=========================================================================================== grupos_acl = {"Diamond", "Gold", "Silver", "Bronze"} --bindKey("j","down",verAyudas) --addCommandHandler("jet", function jetpackvip (source) for k,v in ipairs(grupos_acl) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup(v)) then if doesPedHaveJetPack(source) then removePedJetPack(source) break else givePedJetPack(source) break end end end end ) bindKey("j","down",jetpackvip) addCommandHandler("jet",jetpackvip ) Link to comment
UserToDelete Posted October 5, 2015 Share Posted October 5, 2015 Te recomiendo que uses notepad++ para ver con claridad los fin de funcion, te sobra el cierre de addCommandHandler, por el resto está bien, (si usas freeroam, debes desactivar el bind de jetpack) Link to comment
Farhat Posted October 5, 2015 Author Share Posted October 5, 2015 si uso notepad++ y no uso freeoam. Link to comment
Recommended Posts