Server Commands: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "This page lists all built in commands that the server can process. All these commands can be entered via the server console or the client console depending upon permissions unles...")
 
No edit summary
Line 31: Line 31:
:<ins>Server console only</ins>
:<ins>Server console only</ins>
:Perform a basic upgrade of all resources that use deprecated functions
:Perform a basic upgrade of all resources that use deprecated functions
====aclrequest====
:Usage: aclrequest [''list''|''allow''|''deny''] ''<resource-name>'' [''<right>''|''all'']<br>
:Manage ACL requests from resources implementing <aclrequest> in their [[meta.xml]]





Revision as of 23:03, 20 January 2012

This page lists all built in commands that the server can process. All these commands can be entered via the server console or the client console depending upon permissions unless otherwise stated.


Resource commands

checkall

Server console only
Check all resources for deprecated functions and MTA version issues

info

Server console only
Usage: info <resource-name>
Get info for a resource eg: info admin

list

Server console only
See a list of resources

refresh

Refresh resource list to find new resources

refreshall

Refresh resources and restart any changed resources

restart

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

start

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

stop

Usage: stop <resource-name>
Stop a resource eg: stop admin

stopall

Stop all running resources

upgrade

Server console only
Perform a basic upgrade of all resources that use deprecated functions

aclrequest

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


Account commands

aexec

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

addaccount

Usage: addaccount <accountname> <password>
Add an account eg: addaccount accountname password

chgpass

Usage: chgpass <accountname> <password>
Change an accounts password eg: chgpass account newpw

delaccount

Usage: delaccount <accountname>
Delete an account eg: delaccount accountname


Server commands

ase

Server console only
See the amount of master server list queries

debugdb

Usage: debugdb <0-2>
Server console only
Set logging level for database functions. [0-Off  1-Errors only  2-All]

help

Server console only
Displays these list of commands

loadmodule

Server console only
Usage: loadmodule <module-filename>
Load a module eg: loadmodule ml_sockets.dll

openports

Server console only
Test if server ports are open

shutdown

Usage: shutdown <reason>
Shutdown the server eg: shutdown put reason here

sver

Get the server MTA version


Other commands

say

Usage: say <text>
Show a message to all players on the server eg: say hello

whois

Usage: whois <nick>
Get the IP of a player currently connected (use whowas for IP/serial/version)

whowas

Usage: whowas <nick>
Get IP/Serial of a player that was previously connected to the server

ver

Get the MTA version


Client relevant only

chgmypass

Client only
Usage: chgmypass <oldpass> <newpass>
Change your password eg: chgmypass oldpw newpw

debugscript

Client only
Usage: debugscript <0-3>
Remove (This does not work "Incorrect client type for this command")

login

Client only
Usage: login <accountname> <password>
Login to an account eg: login accountname password

logout

Client only
Log out of the current account

me

Client only
Usage: me <text>
Show a message to all players on the server, with your nick prepended

msg

Client only
Usage: msg <nick> <text>
Send a message to a player eg: msg playername hello

nick

Client only
Usage: nick <old-nick> <new-nick>
Change your ingame nickname

teamsay

Client only
Usage: teamsay <test>
Send a message to all players on the same team