Server.cfg
From SA-MP
- echo - This is what the server.exe echo's when executing server.cfg, there is no need to change this at all as you'll be the only one who sees the rcon. By default this says Executing Server Config...
- lanmode - Turning lanmode on will result in the server using more bandwidth, this mode makes the server a lot more accurate though. You can turn lanmode on by changing the value to 1 and you can turn it off by changing the value to 0. By default this is set to 0
- maxplayers - This is the maximum amount of players your server can hold, by changing the number you can raise how many players enter the server. The maximum is 100 and the minimum is 0. By default this is set to 32.
- announce - Toggle server to be announced to SA-MP masterserver list. Set value to 1 for enable announcing or to 0 for disable.
- anticheat - Disble or enable the anticheat on the server. Set value to 1 for enable the anticheat or to 0 for disable. (Keep this disabled as anticheat is no longer in effect and your server will not start if you have it enabled!!!)
- bind - The local IP address the server will listen for connections on. If your server has more than one IP address, this command is useful if you want to run multiple SA:MP servers and have individual addresses for each one. By default, the server listens on ALL available addresses.
- port - The port in which the server will use to communicate can be specified here, you will need to forward your ports in order to run the server. By default this is set to 7777.
- hostname - This is the name that will display in the server browser for other users to see. By default this is set to Unnamed Server.
- gamemode(n) (N) (t) - It's possible to set the gamemode that plays, how many times it plays and when it plays by editing the values here. To use this correctly you must understand how it works, (n) is the gamemode number, (N) is the gamemode name*, and (t) is the times played before switching onto the next mode. By default this area will look like this:
- gamemode0 lvdm 1
- gamemode1 rivershell 1
- gamemode2 area51 1
- gamemode4 sftdm 1
- weburl - This is the website people can visit to gain more information about the server, a web url is not needed. By default this is set to www.sa-mp.com.
- rcon_password - This is the password used to administrate the server and use the rcon, you must make sure you change this to something hard to crack so that others cannot take control of your server. By default this is set to changeme.
- filterscripts (N) - filterscripts are scripts that run in the background of your gamemode, they are there to add extras to the server without editing the gamemode. It's very useful if you want to carry a specific property to more than one gamemode. To use this you must create a new folder in your server folder named filterscripts and place your filterscripts in there. (N) symbolizes the filterscript name*. By default this option is not here. If you have multiple filterscripts you want to load, put them all in a row separated by "space", e.g. filterscripts script1 script2
- plugins (N) - The plugins directive allows you to specify plugins wich are designed to enhance gamemodes and filterscripts. (N) symbolizes the plugins name. If you have multiple plugins you want to load, put them all in a row separated by "space", e.g. plugins script1 script2.
- You may find more information about the SDK for plugin development in the forum's main topic
- password (p) - Locking your server is another option that is available for the root server administrator, you can use this to lock unwanted visitors from the server. (p) symbolizes the password that will be used. By default your server will not have a lock.
- mapname - Usual this is "San Andreas", but you can change it to anything you want. To change the mapname of the server, add the following line at the end of the server.cfg: mapname [name]
Replace [name] to anything you want, e.g. My-stunt-map
*The gamemode/filterscript name is the gamemodes/filterscripts compiled name in your gamemodes/filterscripts folder, all must match exactly except you must leave the .amx extension off.
