HU/Resource:Admin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Resource page}} A quick tutorial on how to get admin rights and install admin resource. <section name="MTA 1.0.0 and lower" class="server" show="false"> '''Note:''' Since m...")
 
No edit summary
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Resource page}}
{{Resource page}}
A quick tutorial on how to get admin rights and install admin resource.
Egy gyors tutoriál arról, hogy hogyan kaphat admin jogokat és hogyan telepítheti az admin resource-t.


<section name="MTA 1.0.0 and lower" class="server" show="false">
<section name="MTA 1.0.0 vagy régebbi" class="server" show="false">
'''Note:''' Since mta 1.0.5 the accounts.xml file has been removed and replaced by sqlite.
'''Figyelem:''' 1.0.5 MTA óta az accounts.xml fájlok el lettek távolítva és sqlite-val lett kicserélve.


At first, open the '''accounts.xml''' file located in '''server\mods\deathmatch\''' and add a line with your account details, like on the following example.
Először nyissa meg az '''accounts.xml''' fájlt, mely a '''server\mods\deathmatch\'''-en belül található, és adja hozzá a saját fiókjának részleteit, ahogy a következő példa is mutatja.


[[Image:admin_accounts.png]]
<syntaxhighlight lang="xml">    <accounts>
      <autologin>1</autologin>
      <account name="Console" password="" />
      <account name="Someguy" password="1234" />
    </accounts>
</syntaxhighlight>
</section>
</section>


To add an account in '''MTA {{padleft:|3|{{Current Version|full}}}}''' use the following command in the server
Egy fiók létrehozásához az '''MTA {{padleft:|3|{{Current Version|full}}}}'''-ban használja a következő parancsokat


'''Note:''' The server needs to run for this action
'''Figyelem:''' Ehhez a művelethez a szervernek futnia kell
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
addaccount <username> <password>
addaccount <username> <password>
</syntaxhighlight>
</syntaxhighlight>


'''Note:''' Server should not be running when you are editing the acl file below
'''Figyelem:''' A szervernek nem szabad futnia, amíg az alábbi acl fájlt szerkeszti


Then you open the '''acl.xml''' file located in the same folder and add yourself as an object to the Admin group by using the 'user.*' syntax, where * would be your account name.
Nyissa meg az '''acl.xml''' fájl, mely ugyanabban a mappában található, majd addja hozzá magát object-ként az Admin group-ba a 'user.*' szintaxis használatával, ahol a '*' a fiók nevét jelöli.


[[Image:admin_acl.png]]
<syntaxhighlight lang="xml">    <!-- The Admin group can do anything -->
    <group name="Admin">
        <acl name="Moderator" />
        <acl name="SuperModerator" />
        <acl name="Admin" />
        <acl name="RPC" />
        <object name="user.Someguy" />
        <object name="resource.admin" />
    </group>
</syntaxhighlight>




Now open your '''mtaserver.conf''' file and scroll to the bottom, make sure the admin resource is added to the ones that start with the server (note: protected="1" means that it can not be stopped).
Most nyissa meg az '''mtaserver.conf''' fájlt és görgessen a legaljára, győződjön meg róla, hogy az admin resource hozzá van adva, hogy akkor induljon el, amikor a szerver (figyelem: protected="1" azt jelenti, hogy nem lehet megállítani).


[[Image:admin_mtaserver.png]]
<syntaxhighlight lang="conf">    <resource src="admin" startup="1" protected="0">  <!-- This is -->
    <resource src="helpmanager" startup="1" protected="0">
    <resource src="mapcycler" startup="1" protected="0">
    <resource src="mapmanager" startup="1" protected="0">
</syntaxhighlight>




Now that you're done with server files, you can finally start it. Connect to the server itself and login with your account details: use 'login [username] <password>'. If it tells you to press 'p' you have done everything right, congratulations! If not, do this from the very beginning.
Most, hogy végzett a szerver fájlokkal, végre elindíthatja. Csatlakozzon a szerverre és jelentkezzen be a fiók adataivel: használja a 'login [username] <password>'. Ha azt írja, hogy "press 'p' to open admin panel", akkor mindent megfelelően csinált, gratulálok! Ha nem, akkor kezdje el újra a legelelejétől.
[[Category:Scripting Concepts]]
[[Category:Scripting Concepts]]


Line 35: Line 53:
[[it:Resource:Admin]]
[[it:Resource:Admin]]
[[ru:Resource:Admin]]
[[ru:Resource:Admin]]
==Fordította==
'''2018.12.25.''' <font size="3">'''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''</font>

Revision as of 20:59, 25 December 2018

Egy gyors tutoriál arról, hogy hogyan kaphat admin jogokat és hogyan telepítheti az admin resource-t.

Click to expand [+]
MTA 1.0.0 vagy régebbi

Egy fiók létrehozásához az MTA 1.6-ban használja a következő parancsokat

Figyelem: Ehhez a művelethez a szervernek futnia kell

addaccount <username> <password>

Figyelem: A szervernek nem szabad futnia, amíg az alábbi acl fájlt szerkeszti

Nyissa meg az acl.xml fájl, mely ugyanabban a mappában található, majd addja hozzá magát object-ként az Admin group-ba a 'user.*' szintaxis használatával, ahol a '*' a fiók nevét jelöli.

    <!-- The Admin group can do anything --> 
    <group name="Admin">
        <acl name="Moderator" />
        <acl name="SuperModerator" />
        <acl name="Admin" />
        <acl name="RPC" />
        <object name="user.Someguy" />
        <object name="resource.admin" />
    </group>


Most nyissa meg az mtaserver.conf fájlt és görgessen a legaljára, győződjön meg róla, hogy az admin resource hozzá van adva, hogy akkor induljon el, amikor a szerver (figyelem: protected="1" azt jelenti, hogy nem lehet megállítani).

    <resource src="admin" startup="1" protected="0">  <!-- This is -->
    <resource src="helpmanager" startup="1" protected="0">
    <resource src="mapcycler" startup="1" protected="0">
    <resource src="mapmanager" startup="1" protected="0">


Most, hogy végzett a szerver fájlokkal, végre elindíthatja. Csatlakozzon a szerverre és jelentkezzen be a fiók adataivel: használja a 'login [username] <password>'. Ha azt írja, hogy "press 'p' to open admin panel", akkor mindent megfelelően csinált, gratulálok! Ha nem, akkor kezdje el újra a legelelejétől.

Fordította

2018.12.25. Surge