PhantomDamn Posted January 21, 2014 Share Posted January 21, 2014 por que el recurso de la comunidad "bl" no me quiere funcionar.. le agrego resource.bl en el grupo Console y le he dado en Admin y no me sirve el comando bl... aqui les dejo el link https://community.multitheftauto.com/index.php?p=resources&s=details&id=8185 Link to comment
MTA Team 0xCiBeR Posted January 21, 2014 MTA Team Share Posted January 21, 2014 Debes meterte en el ACL Console. Mira esta porción de script: addEventHandler("onResourceStart",resourceRoot,function() executeSQLQuery("CREATE TABLE IF NOT EXISTS blacklist_new (serial,name,reason)") for i,v in ipairs ( getElementsByType("player") ) do if not ( isGuestAccount(getPlayerAccount(v)) ) then if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("Console")) ) then addCommandHandler("bl",function(player) triggerClientEvent(player,"show",player) end) end end end end) addEventHandler("onPlayerLogin",root,function() if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) ) then addCommandHandler("bl",function(player) triggerClientEvent(player,"show",player) end) end end) Link to comment
PhantomDamn Posted January 21, 2014 Author Share Posted January 21, 2014 por eso en el grupo Console agrego resource.black ( nombre del script ) o hay que agregar como user? Link to comment
MTA Team 0xCiBeR Posted January 21, 2014 MTA Team Share Posted January 21, 2014 Debes agregar el resource a ese grupo y luego a tu cuenta. EJ: <group name="Console"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="user.Console"></object> <object name="user.Damn"></object> <object name="resource.bl"></object> </group> Link to comment
Recommended Posts