How to Configure Your First SA:MP Server: Complete Server.cfg & Gamemode Guide
Everything you need to configure a San Andreas Multiplayer server: complete server.cfg line breakdown, installing Pawn gamemodes (.amx), native plugins, and console management on CoalByte.

#The Enduring Power of San Andreas Multiplayer
San Andreas Multiplayer (SA:MP) remains one of the most legendary community-driven multiplayer platforms. Because of its ultra-lightweight C++ architecture, an optimized SA:MP server can host hundreds of concurrent players while using less than 512 MB of RAM.
In this guide, you will learn how to configure your server.cfg, install custom Pawn gamemodes, and manage your server on CoalByte.
1. Understanding server.cfg Line by Line
The heart of every SA:MP server is the server.cfg file located in your root directory. Open it using the CoalByte File Manager:
echo Executing Server Config...
lanmode 0
rcon_password SuperSecureAdminPassword2026!
maxplayers 50
port 7777
hostname CoalByte SA:MP | Roleplay & Stunt Community
gamemode0 grandlarc 1
filterscripts gl_actions gl_realtime
plugins streamer.so sscanf.so
announce 1
chatlogging 0
weburl www.coalbyte.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
language English / Romanian#### Key Settings Explained:
- rcon_password: Your administrative password. Never leave this as "changeme", as automated bots continuously scan public servers to exploit default credentials.
- gamemode0 [name] [repeat]: Specifies which compiled
.amxscript to load from your/gamemodesfolder. - plugins: On Linux (which powers CoalByte containers), all native plugin files must have the
.soextension (e.g.streamer.so,sscanf.so), not.dll. - announce 1: Publishes your server to the global SA:MP and open.mp masterlists.
- onfoot_rate / incar_rate: Determines network sync frequency (in milliseconds). Values between 30-40 provide smooth, desync-free vehicle combat and driving.
2. Installing Custom Gamemodes & Filterscripts
- Compile your Pawn script (
.pwn) using the Pawno compiler to produce the.amxbinary. - In the CoalByte File Manager, navigate to the
gamemodes/folder. - Upload your compiled file (for example,
mygamemode.amx). - Update your
server.cfgto point to your new file:
gamemode0 mygamemode 1- Filterscripts (
.amxutilities like speedometers, admin panels, or dynamic mapping) go into thefilterscripts/folder and are listed space-separated under thefilterscriptsline.
3. Essential Native Plugins
Most modern SA:MP gamemodes depend on community plugins. Place these inside the plugins/ directory:
- Streamer Plugin (
streamer.so): Bypasses GTA San Andreas engine limits for objects, map icons, 3D text labels, and checkpoints. - sscanf (
sscanf.so): Fast string and command argument parser for Pawn scripts. - CrashDetect (
crashdetect.so): Highly recommended during development. Logs exact line numbers and stack traces if an unhandled runtime error crashes the server.
4. Live Server Management
Once your configuration is saved, return to your CoalByte Live Console and click Start.
- In-game, log into your administrator rank by pressing
Tand typing/rcon login [your_password]. - From the web console, you can issue administrative commands directly, monitor connected player IPs, and track player counts without logging into the game client.
