> ## Documentation Index
> Fetch the complete documentation index at: https://help.freakhosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SA-MP RCON Commands: How to Log In as Admin

> SA-MP RCON commands: log in as admin in game with /rcon login and your Rcon password from Startup, then kick, ban, change gamemode and more on your server.

RCON (remote console) is SA-MP's built-in admin system. To use it on a FREAKHOSTING server, copy the **Rcon password** from **Startup** in the Game Panel, join your server and type `/rcon login <password>` in chat. Once logged in, put `/rcon` before any command, for example `/rcon kick 3` or `/rcon gmx`. Type `/rcon cmdlist` to see every command.

| Fact | Value |
| - | - |
| Password | **Rcon password** on **Startup** |
| Log in | `/rcon login <password>` in game |
| List commands | `/rcon cmdlist` |
| List settings | `/rcon varlist` |
| Panel console | Shows output only; it doesn't take commands |

## How to log in to RCON

**1. Copy your Rcon password**

In the [Game Panel](https://games.freakhosting.com), open your server and click **Startup**. Copy the value of **Rcon password**. To change it, type a new value, click outside the field and restart the server.

**2. Join your server**

Connect to your server. See [connect to your server](https://help.freakhosting.com/games/samp/how-to-connect-to-a-samp-server.md).

**3. Log in**

Open the chat and type:

```text theme={null}
/rcon login yourpassword
```

If the password is right, you are now logged in as RCON admin.

![SA-MP Startup page with the Rcon password variable used for /rcon login](https://mintcdn.com/freakhostingltd/m3ZOEtGPuZd9DW2_/images/games/samp/samp-startup.png?fit=max\&auto=format\&n=m3ZOEtGPuZd9DW2_\&q=85\&s=e5b91dcc2e020a53f72eb7f8f44d93e4)

The Rcon password on the Startup page

Change the RCON password on **Startup**, not in `server.cfg`: the panel writes the **Startup** value to `rcon_password` at every start. Never set it to `changeme`, because the SA-MP server refuses to start with that password.

## Why doesn't the panel console accept commands?

The Linux SA-MP server prints its output to the [console](https://help.freakhosting.com/portals/game-panel/how-to-use-the-server-console.md), but it doesn't read commands typed there. Run admin commands in game with `/rcon` instead, or let your gamemode or an admin filterscript run them with `SendRconCommand`.

## Which RCON commands can I use?

| Command | What it does | Example |
| - | - | - |
| `/rcon cmdlist` | Lists the commands | `/rcon cmdlist` |
| `/rcon varlist` | Lists the current settings | `/rcon varlist` |
| `/rcon players` | Lists players with name, IP and ping | `/rcon players` |
| `/rcon say <text>` | Sends a message as `Admin:` | `/rcon say Restart in 5 minutes` |
| `/rcon kick <ID>` | Kicks a player by ID | `/rcon kick 3` |
| `/rcon ban <ID>` | Bans a player by ID | `/rcon ban 3` |
| `/rcon banip <IP>` | Bans an IP address | `/rcon banip 203.0.113.25` |
| `/rcon unbanip <IP>` | Removes an IP ban | `/rcon unbanip 203.0.113.25` |
| `/rcon reloadbans` | Re-reads the ban file | `/rcon reloadbans` |
| `/rcon changemode <name>` | Switches to another gamemode | `/rcon changemode mysecondmode` |
| `/rcon gmx` | Loads the next gamemode in the rotation | `/rcon gmx` |
| `/rcon loadfs <name>` | Loads a filterscript | `/rcon loadfs myadmin` |
| `/rcon unloadfs <name>` | Unloads a filterscript | `/rcon unloadfs myadmin` |
| `/rcon reloadfs <name>` | Reloads a filterscript | `/rcon reloadfs myadmin` |
| `/rcon hostname <name>` | Changes the server name | `/rcon hostname My Server` |
| `/rcon gamemodetext <text>` | Changes the mode shown in the browser | `/rcon gamemodetext Freeroam` |
| `/rcon mapname <name>` | Changes the map name shown in the browser | `/rcon mapname San Andreas` |
| `/rcon language <language>` | Changes the language shown in the browser | `/rcon language English` |
| `/rcon weburl <url>` | Changes the website shown to players | `/rcon weburl example.com` |
| `/rcon password <password>` | Sets the server password; `0` removes it | `/rcon password 0` |
| `/rcon weather <ID>` | Changes the weather | `/rcon weather 1` |
| `/rcon gravity <value>` | Changes the gravity | `/rcon gravity 0.008` |
| `/rcon exec <file>` | Runs the settings in a `.cfg` file | `/rcon exec event.cfg` |
| `/rcon echo <text>` | Prints text in the server console | `/rcon echo test` |
| `/rcon exit` | Shuts the server down | `/rcon exit` |

For bans, see [ban and unban players](https://help.freakhosting.com/games/samp/how-to-ban-and-unban-players-on-samp.md).

> [!WARNING]
>
> Use the **Stop** and **Restart** buttons in the panel rather than `/rcon exit`, so the panel always knows the server's state.

## Are RCON changes saved?

No. Commands such as `hostname`, `password`, `weather` and `changemode` change the running server only. After a restart, the server uses `server.cfg` again. To keep a change, edit [server.cfg](https://help.freakhosting.com/games/samp/samp-server-cfg-explained.md). Bans are the exception: they are written to the ban file.

## Frequently asked questions

### How do I check if a player is an RCON admin in my script?

Use `IsPlayerAdmin(playerid)` in your gamemode or filterscript. It returns true for players logged in with `/rcon login`.

### Can I give someone admin without sharing the RCON password?

Not with RCON itself. Most gamemodes and admin filterscripts have their own admin levels. Use those for moderators and keep the RCON password for yourself.

### Can I turn RCON off?

Yes. Add `rcon 0` to `server.cfg` and restart. The **Rcon password** field on **Startup** must still have a value.

### Why is my /rcon login rejected?

Check that you copied the **Rcon password** from **Startup** exactly and that the server was restarted after you changed it.

## Related guides

> [card] [SA-MP server guide](https://help.freakhosting.com/games/samp/samp-server-hosting-guide.md)
>
> Every SA-MP page in one place.

> [card] [Ban and unban players](https://help.freakhosting.com/games/samp/how-to-ban-and-unban-players-on-samp.md)
>
> ban, banip and unbanip.

> [card] [Set a server password](https://help.freakhosting.com/games/samp/how-to-set-a-password-on-your-samp-server.md)
>
> Lock your server.

> [card] [server.cfg explained](https://help.freakhosting.com/games/samp/samp-server-cfg-explained.md)
>
> Settings that survive a restart.

> [card] [Startup variables](https://help.freakhosting.com/portals/game-panel/how-to-configure-startup-variables.md)
>
> Change the Rcon password.

***

> [!NOTE]
>
> **Tested by the FREAKHOSTING team** on our Game Panel on 3 November 2026 (SA-MP 0.3.7-R2 Linux server). Commands **checked against the official [open.mp RCON documentation](https://open.mp/docs/server/ControllingServer)** on 3 November 2026.

> [!NOTE]
>
> ### Need Extra Help?
>
> If you encounter any issues, our support team is ready to assist:
>
> * **Live Chat:** Quick assistance via our website.
> * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
> * **Discord:** [Join our Community](https://discord.gg/freakhosting)
> * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)

> [!TIP]
>
> ### Save on Your Hosting
>
> Ready to upgrade your hosting? Use code **KB20** at checkout for **20% off** your first order!

***

**Last Updated:** November 2026


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.