Jump to content

Black List


PhantomDamn

Recommended Posts

  • MTA Team

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
  • MTA Team

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...