Server.cfg IT

From SA-MP Wiki

Jump to: navigation, search
  • echo - Questo è quando echos sampserver.exe durante l'esecuzione di server.cfg, questo non sarà necessario modificarlo perchè lo leggerà automaticamente la console. Per impostazione predefinita dice Executing Server Config...
  • lanmode - Girando su lanmode porterà al server utilizzando più larghezza di banda, questo modo rende il server molto più preciso anche se. È possibile attivare la lanmode modificando il valore a 1 e la puoi spegnere cambiarla in 0. Per default è impostato su 0
  • maxplayers - Questo è l'importo massimo di giocatori che il server può contenere, cambiando questo numero è possibile modificare il numero di giocatori che possono entrare nel server. Il limite è 500 e minimo è 1. Per default è impostato su 50.
  • announce - Il server sarà visto nel masterserver di SA-MP. Impostare su 1 per attivare l'announcing o 0 per disattivarla.
  • port - The port in which the server will use to communicate can be specified here, you will need to Port Forward 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 SA-MP 0.3a 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
      A Working Server!
      Enlarge
      A Working Server!
  • 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. Your server will NOT start if "changeme" is the RCON password!
  • 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 find the folder in your server folder named filterscripts and place your filterscripts (.amx) 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 which are designed to enhance gamemodes and filterscripts. (N) symbolizes the plugin's name. If you have multiple plugins you want to load, put them all in a row separated by "space", e.g. plugins plugin1 plugin2.
    • 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 password.
  • mapname (m) - The mapname appears in the server browser. (m) symolizes the mapname. By default this is set to San Andreas.
    • 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.
  • bind - Force the server to use a specific IP on a server. This IP must match one assigned to a network card on the server. This is useful for running multiple servers on the same port on the same box.
  • rcon 0/1 - If 0 is specified the rcon Remote Console feature is disabled.
  • maxnpc - The maximum number of NPCs that can join your server.
  • onfoot_rate - The minimum time in milliseconds a client updates the server with new data while running/walking.
  • incar_rate - The minimum time in milliseconds a client updates the server with new data while in a vehicle.
  • weapon_rate - The minimum time in milliseconds a client updates the server with new data while firing a weapon.
  • stream_distance - The distance on the X,Y plane which server entities will stream in for connected players.
  • stream_rate - The number of milliseconds that must elapse before server entities stream distance is retested for each player.

Lower values of onfoot_rate incar_rate weapon_rate increase sync performance although increase bandwidth. stream_distance With larger values, players can see server entities at a greater distance although will require more client processing and potentially more bandwidth. stream_rate Lower values increase server CPU as it has to recheck streaming conditions more frequently for each player.

The stream_distance and stream_rate can be changed while the server is running e.g. /rcon stream_distance 300.0 or /rcon stream_rate 1000. The onfoot_rate, incar_rate, weapon_rate can also be changed while the server is running, although it will only effect newly connecting players.

In other languages