Element/Console: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 67: Line 67:


'''info''': Usage: info <resource-name> | Outputs the info of the resource. Example: info admin
'''info''': Usage: info <resource-name> | Outputs the info of the resource. Example: info admin
Outputs: ''== Details for resource 'admin' ==''
 
Outputs:
  Status: Running    Dependents: 0
  Status: Running    Dependents: 0
  Included resources: 0
  Included resources: 0
  Files: 190
  Files: 190
''== End ==''


'''refresh''': N/A
'''checkall''': Check all resources for deprecated functions and MTA version issues.
 
'''msg''': Usage: msg <nick> <message> | Outputs the message to the player.
 
'''login''': Usage: login <username> <password> | Please note that you can't login with the console.(unless you mistakenly logout the console)
 
'''addaccount''': Usage: addaccount <username> <password> | Adds an account to the server.(Mostly used for new server owners)
 
'''shutdown''': Shuts the server down. (You could also use ctrl+c)


'''checkall''': Check all resources for deprecated functions and MTA version issues.
'''whowas''': Usage: whowas <nick> | Outputs the player history of connects.
 
'''loadmodule''': Usage: loadmodule <module-name-with-extension> | Loads a module.
 
'''ase''': Outputs the Master Server List queries.
 
'''reloadbans''': Reloads all the bans from 'banlist.xml'.


===See Also===
===See Also===

Revision as of 21:09, 31 August 2012

The Server Console class represents the server console.

The element type of this class is "console".

Commands

In the server console you can use many different commands, affecting the players using the server. Please note that only console commands can be used, and that some commands can not be used through the IG console, only through the Server Console.

Mta console help.png

Note that the console list does not show the useage of the commands. Some commands may also not be listed (possibly related to the admin resource.(unconfirmed)).


Definitions

update:

stopall: Stops all the resources.

refreshall: Refresh resources and restart any changed resources.

install:

say: Usage: say <text> | Shows a message to all players on the server eg:"say hello" .

me:

logout: This would log the console out of its account. (Please NOTE that, if you log the console out, you can't get back in, unless you shutdown and start the server again.)

delaccount: Usage: delaccount <accountname>| Delete an account eg:"delaccount Console" <NOT RECOMMENDED.

aexec: Usage: aexec <nick> <command>| Force a player to execute a command eg: aexec playername say hello.

debugscript: Usage: debugscript <0-3>. (Please NOTE that, this is only for client's.)

ver: Outputs the server version.

openports: Outputs whether the ports "serverport","httpport","aseport" is open or closed.(if they are closed, please see this topic on how to open it: http://forum.mtasa.com/viewtopic.php?f=114&t=33722&p=444572#p352164 )

aclrequest: Usage: aclrequest [list|allow|deny] <resource-name> [<right>|all]| Manage ACL requests from resources implementing <aclrequest> in their meta.xml.

start: Usage: start <resource-name> | Start a loaded resource eg:"start admin".

restart: Usage: info <resource-name> | Restarts a running resource eg:"restart admin".

list: Shows a list of resources.

upgrade: Checks if the resources have changed then refreshes all of them.

teamsay: N/A

nick: Usage: nick <new-nick> | Please note that only players can change their nick.

chgmypass: Usage: chgmypass <oldpass> <newpass> | Please note that you can't change the console password even if you knew the old password.

chgpass: Usage: chgpass <nick> <pass> | Changes the players password.

whois: Usage: whois <nick> | Outputs the players ip and something else(maybe port).

help: Outputs the list of commands shown in the picture above.

sver: Outputs the server version.

debugdb: Usage: debugdb <0-2> | 0-Disables the debug loging, 1-Only outputs the errors, 2-Outputs all queries.

stop: Usage: stop <resource-name> | Stops a running resource.

refresh: N/A

info: Usage: info <resource-name> | Outputs the info of the resource. Example: info admin

Outputs:

Status: Running    Dependents: 0
Included resources: 0
Files: 190

checkall: Check all resources for deprecated functions and MTA version issues.

msg: Usage: msg <nick> <message> | Outputs the message to the player.

login: Usage: login <username> <password> | Please note that you can't login with the console.(unless you mistakenly logout the console)

addaccount: Usage: addaccount <username> <password> | Adds an account to the server.(Mostly used for new server owners)

shutdown: Shuts the server down. (You could also use ctrl+c)

whowas: Usage: whowas <nick> | Outputs the player history of connects.

loadmodule: Usage: loadmodule <module-name-with-extension> | Loads a module.

ase: Outputs the Master Server List queries.

reloadbans: Reloads all the bans from 'banlist.xml'.

See Also

Server_Commands