server gta sa-mp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: server gta sa-mp (
/showthread.php?tid=358665)
server gta sa-mp -
Vaio - 11.07.2012
Hello
Recently, interest in this game (GTA San Andreas Multiplayer).
Installed the server on linux debian, started (./samp03svr), everything works fine. The problem is that there is the server port and maxplayers written to the file server.cfg. I want to make these configs to prescribe or at server startup command line option (like on the server cs / css), or in another file.
That's what I tried
startup command
Код:
./samp03svr +maxplayers 100 +port 7777
Код:
./samp03svr -maxplayers 100 -port 7777
Don`t work.
use exec
server.cfg:
Код:
echo Executing Server Config...
maxplayers 25
port 7777
exec myserver
myserver.cfg:
Код:
lanmode 0
rcon_password 123456
hostname SA-MP 0.3 Server
gamemode0 grandlarc 1
filterscripts gl_actions gl_property gl_realtime gl_mapicon ls_elevator test_cmds ls_mall attachments
announce 0
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
Also does not work.
Maybe someone here can suggest something.
P.S. sorry for my bad English.
Re: server gta sa-mp -
Mark™ - 11.07.2012
Use nano to edit your server.cfg on your debian machine.
Re: server gta sa-mp -
Vaio - 11.07.2012
This I know, but I need to remove maxplayers and port from file server.cfg in another file or in startup command or some other way.
Re: server gta sa-mp -
Mark™ - 11.07.2012
Quote:
Originally Posted by Vaio
I need to remove maxplayers and port from file server.cfg in another file or in startup command or some other way.
|
That's not possible AFAIK, even if you do, your server won't start.