server gta sa-mp
#1

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.
Reply
#2

Use nano to edit your server.cfg on your debian machine.
Reply
#3

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.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)