Controlling Your Server

From SA-MP

Jump to: navigation, search

Contents

Changing Gamemodes

Running a custom/downloaded gamemode

  • Open the directory you installed the server to (eg: /Rockstar Games/GTA San Andreas/server)
  • Take the downloaded/compiled .amx file and place it in the gamemodes folder where you installed the server
  • Use RCON to change the mode as described above (2.1)
  • Alternatively you can add the new mode to a rotation, also described above (2.3)

Using Filterscripts

The same as running a custom gamemode, except:

  • Place the .amx in a folder called /filterscripts
  • Add to server.cfg filterscripts scriptname

Passwording your server

  • If you want to add a password so only your friends can join, add this to server.cfg:

password whatever

  • This will make your server password-protected with the password set as 'whatever' - change it to whatever you want :)
  • You can also change the password while ingame by using /rcon password newpasswordhere
  • You can't remove the password until you restart the server

Using RCON

Logging In

You can log in either while ingame by typing '/rcon login password' or out of game by using the RCON mode in the Remote Console.

The password is the same as what you set it as in server.cfg

RCON Commands

Typ cmdlist for commands (or, varlist for variables) making use of the RCON in-game ('/rcon cmdlist').

These are the functions that you as admin can use:

  • /rcon cmdlist - Shows a list with commands.
  • /rcon varlist - Shows a list with the current variables.
  • /rcon exit - Closes the server.
  • /rcon echo [text] - Shows the [text] in the console of the server (NOT the client-console in-game).
  • /rcon exec [filename] - Executes the file which contains server cfg (example: /rcon exec blah.cfg).
  • /rcon kick [ID] - Kick the player with the given ID (example: /rcon kick 2).
  • /rcon ban [ID] - Ban the player with the given ID (example: /rcon ban 2).
  • /rcon changemode [mode] - This command wil change the current gamemode to the given one (example: if you want to play sftdm: /rcon changemode sftdm).
  • /rcon gmx - Will load the first gamemode (gamemode0) in server.cfg.
  • /rcon reloadbans - reloads the samp.ban where the banned IP addresses are storred. This will clear all the IP-addresses.
  • /rcon reloadlog - clears the server_log.txt.
  • /rcon say - shows a message to the players in the client-console (example: /rcon say blah).
  • /rcon players - Shows the players that are in the server (with there name, IP & ping).
  • /rcon banip [IP] - Ban the given IP (example: /rcon banip 127.0.0.1).
  • /rcon unbanip [IP] - Unban the given IP (example: /rcon unbanip 127.0.0.1).
  • /rcon gravity - Changes the gravity (example: /rcon gravity 0.008).
  • /rcon weather [ID] - Changes the weather (example: /rcon weather 1).
  • /rcon loadfs - Loads the given filterscript (example: /rcon loadfs adminfs).
  • /rcon unloadfs - Unload the given filterscript (example: /rcon unloadfs adminfs).
  • /rcon reloadfs - Reloads the given filterscript (example: /rcon reloadfs adminfs).
Personal tools