Jump to content

¿Cómo hago administrador a un usuario? (MTA Paradise)


Recommended Posts

He intendado colocar a un administrador de esta manera: pero no sirve...

[code]<acl> 
    <group name="Everyone">
        <acl name="Default" />
        <object name="user.*" />
        <object name="resource.*" />
    </group>
    <group name="Admin">
        <acl name="Admin" />
        <acl name="Moderator" />
        <acl name="RPC" />
        <object name="resource.admin" />
        <object name="user.mabako" />
       <object name="user.NOMBREDEUSUARIO" />
    </group>
    <group name="Moderator">
        <acl name="Moderator" />
    </group>
    <group name="Console">
        <acl name="Admin" />
        <acl name="RPC" />
        <acl name="Developer" />
        <object name="user.Console" />
    </group>
    <group name="RPC">
        <acl name="RPC" />
        <object name="resource.world" />
    </group>
    <group name="sql">
        <acl name="sql" />
        <object name="resource.sql" />
    </group>
    <group name="manageAccounts">
        <acl name="manageAccounts" />
        <acl name="IPandSerial" />
        <object name="resource.players" />
    </group>
    <group name="kickban">
        <acl name="kickban" />
        <acl name="IPandSerial" />
        <object name="resource.parasite" />
        <object name="resource.players" />
    </group>
    <group name="IPandSerial">
        <acl name="IPandSerial" />
        <object name="resource.runcode" />
    </group>
    <group name="Developer">
        <acl name="Developer" />
        <object name="user.mabako" />
        <object name="user.NOMBREDEUSUARIO" />
    </group>
    <acl name="Default">
        <right name="general.ModifyOtherObjects" access="false" />
        <right name="general.http" access="false" />
        <right name="command.start" access="false" />
        <right name="command.startall" access="false" />
        <right name="command.stop" access="false" />
        <right name="command.stopall" access="false" />
        <right name="command.restart" access="false" />
        <right name="command.restartall" access="false" />
        <right name="command.refresh" access="false" />
        <right name="command.refreshall" access="false" />
        <right name="command.addaccount" access="false" />
        <right name="command.delaccount" access="false" />
        <right name="command.debugscript" access="false" />
        <right name="command.chgpass" access="false" />
        <right name="command.loadmodule" access="false" />
        <right name="command.login" access="false" />
        <right name="command.logout" access="false" />
        <right name="command.upgrade" access="false" />
        <right name="command.mute" access="false" />
        <right name="command.unmute" access="false" />
        <right name="command.kick" access="false" />
        <right name="command.ban" access="false" />
        <right name="command.banip" access="false" />
        <right name="command.unbanip" access="false" />
        <right name="command.shutdown" access="false" />
        <right name="command.install" access="false" />
        <right name="command.aexec" access="false" />
        <right name="command.whois" access="false" />
        <right name="command.whowas" access="false" />
        <right name="command.run" access="false" />
        <right name="command.srun" access="false" />
        <right name="command.crun" access="false" />
        <right name="function.executeCommandHandler" access="false" />
        <right name="function.setPlayerMuted" access="false" />
        <right name="function.addAccount" access="false" />
        <right name="function.addBan" access="false" />
        <right name="function.removeBan" access="false" />
        <right name="function.removeAccount" access="false" />
        <right name="function.setAccountPassword" access="false" />
        <right name="function.kickPlayer" access="false" />
        <right name="function.banIP" access="false" />
        <right name="function.banPlayer" access="false" />
        <right name="function.banSerial" access="false" />
        <right name="function.getBansXML" access="false" />
        <right name="function.unbanIP" access="false" />
        <right name="function.unbanSerial" access="false" />
        <right name="function.getClientIP" access="false" />
        <right name="function.setServerPassword" access="false" />
        <right name="function.getServerPassword" access="false" />
        <right name="function.callRemote" access="false" />
        <right name="function.startResource" access="false" />
        <right name="function.stopResource" access="false" />
        <right name="function.restartResource" access="false" />
        <right name="function.createResource" access="false" />
        <right name="function.copyResource" access="false" />
        <right name="function.addResourceMap" access="false" />
        <right name="function.addResourceConfig" access="false" />
        <right name="function.removeResourceFile" access="false" />
        <right name="function.setResourceDefaultSetting" access="false" />
        <right name="function.removeResourceDefaultSetting" access="false" />
        <right name="function.redirectPlayer" access="false" />
        <right name="function.aclReload" access="false" />
        <right name="function.aclSave" access="false" />
        <right name="function.aclCreate" access="false" />
        <right name="function.aclDestroy" access="false" />
        <right name="function.aclSetRight" access="false" />
        <right name="function.aclRemoveRight" access="false" />
        <right name="function.aclCreateGroup" access="false" />
        <right name="function.aclDestroyGroup" access="false" />
        <right name="function.aclGroupAddACL" access="false" />
        <right name="function.aclGroupRemoveACL" access="false" />
        <right name="function.aclGroupAddObject" access="false" />
        <right name="function.aclGroupRemoveObject" access="false" />
        <right name="function.mysql_connect" access="false" />
        <right name="function.mysql_close" access="false" />
        <right name="function.mysql_errno" access="false" />
        <right name="function.mysql_error" access="false" />
        <right name="function.mysql_ping" access="false" />
        <right name="function.mysql_select_db" access="false" />
        <right name="function.mysql_escape_string" access="false" />
        <right name="function.mysql_affected_rows" access="false" />
        <right name="function.mysql_change_user" access="false" />
        <right name="function.mysql_get_character_set_info" access="false" />
        <right name="function.mysql_get_client_info" access="false" />
        <right name="function.mysql_get_client_version" access="false" />
        <right name="function.mysql_get_host_info" access="false" />
        <right name="function.mysql_get_proto_info" access="false" />
        <right name="function.mysql_get_server_info" access="false" />
        <right name="function.mysql_get_server_version" access="false" />
        <right name="function.mysql_hex_string" access="false" />
        <right name="function.mysql_info" access="false" />
        <right name="function.mysql_insert_id" access="false" />
        <right name="function.mysql_query" access="false" />
        <right name="function.mysql_unbuffered_query" access="false" />
        <right name="function.mysql_set_character_set" access="false" />
        <right name="function.mysql_stat" access="false" />
        <right name="function.mysql_warning_count" access="false" />
    </acl>
    <acl name="Moderator">
        <right name="command.repairvehicle" access="true" />
        <right name="command.repairvehicles" access="true" />
        <right name="command.fillvehicle" access="true" />
        <right name="command.fillvehicles" access="true" />
        <right name="command.respawnvehicle" access="true" />
        <right name="command.respawnvehicles" access="true" />
        <right name="command.getvehicle" access="true" />
        <right name="command.gotovehicle" access="true" />
        <right name="command.temporaryvehicle" access="true" />
        <right name="command.setskin" access="true" />
        <right name="command.get" access="true" />
        <right name="command.goto" access="true" />
        <right name="command.announce" access="true" />
        <right name="command.modchat" access="true" />
        <right name="command.createshop" access="true" />
        <right name="command.deleteshop" access="true" />
        <right name="command.setdropoff" access="true" />
        <right name="command.kick" access="true" />
        <right name="command.setname" access="true" />
        <right name="command.freeze" access="true" />
        <right name="command.sethealth" access="true" />
        <right name="command.setvehiclecolor" access="true" />
        <right name="command.giveitem" access="true" />
        <right name="command.freecam" access="true" />
        <right name="command.spectate" access="true" />
        <right name="command.getpos" access="true" />
        <right name="command.toggleooc" access="true" />
        <right name="command.staffduty" access="true" />
        <right name="command.acceptreport" access="true" />
    </acl>
    <acl name="Admin">
        <right name="general.ModifyOtherObjects" access="true" />
        <right name="general.http" access="true" />
        <right name="command.start" access="true" />
        <right name="command.startall" access="true" />
        <right name="command.stop" access="true" />
        <right name="command.stopall" access="true" />
        <right name="command.restart" access="true" />
        <right name="command.restartall" access="true" />
        <right name="command.refresh" access="true" />
        <right name="command.refreshall" access="true" />
        <right name="command.addaccount" access="true" />
        <right name="command.delaccount" access="true" />
        <right name="command.ban" access="true" />
        <right name="command.banip" access="true" />
        <right name="command.unbanip" access="true" />
        <right name="command.shutdown" access="true" />
        <right name="command.whois" access="true" />
        <right name="command.whowas" access="true" />
        <right name="command.createinterior" access="true" />
        <right name="command.deleteinterior" access="true" />
        <right name="command.setinterior" access="true" />
        <right name="command.setinteriorinside" access="true" />
        <right name="command.setinteriorname" access="true" />
        <right name="command.setinteriorprice" access="true" />
        <right name="command.createvehicle" access="true" />
        <right name="command.setwindowstinted" access="true" />
        <right name="command.setvehiclefaction" access="true" />
        <right name="command.reloadpermissions" access="true" />
        <right name="command.adminchat" access="true" />
        <right name="command.createteleport" access="true" />
        <right name="command.deleteteleport" access="true" />
        <right name="command.createatm" access="true" />
        <right name="command.createbank" access="true" />
        <right name="command.deleteatm" access="true" />
        <right name="command.deletebank" access="true" />
        <right name="command.createfaction" access="true" />
        <right name="command.setfaction" access="true" />
        <right name="command.setfactionrights" access="true" />
        <right name="command.setfactionrank" access="true" />
        <right name="command.createtext" access="true" />
        <right name="command.deletetext" access="true" />
        <right name="command.createfuelpoint" access="true" />
        <right name="function.executeCommandHandler" access="true" />
        <right name="function.setPlayerMuted" access="true" />
        <right name="function.addAccount" access="true" />
        <right name="function.addBan" access="true" />
        <right name="function.removeBan" access="true" />
        <right name="function.removeAccount" access="true" />
        <right name="function.setAccountPassword" access="true" />
        <right name="function.kickPlayer" access="true" />
        <right name="function.banIP" access="true" />
        <right name="function.banPlayer" access="true" />
        <right name="function.banSerial" access="true" />
        <right name="function.getBansXML" access="true" />
        <right name="function.unbanIP" access="true" />
        <right name="function.unbanSerial" access="true" />
        <right name="function.getClientIP" access="true" />
        <right name="function.setServerPassword" access="true" />
        <right name="function.getServerPassword" access="true" />
        <right name="function.callRemote" access="true" />
        <right name="function.startResource" access="true" />
        <right name="function.stopResource" access="true" />
        <right name="function.restartResource" access="true" />
        <right name="function.createResource" access="true" />
        <right name="function.copyResource" access="true" />
        <right name="function.addResourceMap" access="true" />
        <right name="function.addResourceConfig" access="true" />
        <right name="function.removeResourceFile" access="true" />
        <right name="function.setResourceDefaultSetting" access="true" />
        <right name="function.removeResourceDefaultSetting" access="true" />
Link to comment

En el GM no es /register, si no que ya hay un menú de registro, probé exactamente el nombre que pusieron cuando se registraron, y aún así no servía, también miré si era error del Mysql y tampoco por que en el Phpmyadmin estaban las cuentas bien registradas.

Link to comment

Encontré ésto:

-- add an account if it doesn't exist 
                            if not account then 
                                outputServerLog( tostring( info.username ) .. " " .. tostring( info.mtasalt ) ) 
                                account = addAccount( info.username, info.mtasalt ) -- due to MTA's limitations, the password can't be longer than 30 chars 
                                if not account then 
                                    outputDebugString( "Account Error for " .. info.username .. " - addAccount failed.", 1 ) 
                                else 
                                    outputDebugString( "Added account " .. info.username, 3 ) 
                                end 
                            end 

TAMBIÉN ESTÁ EN EL ACL.XML:

<right name="command.addaccount" access="false"></right> 
<right name="function.addAccount" access="true"></right> 

No se si puede ser éso.

Link to comment
  • Recently Browsing   0 members

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