New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
How to Kick and Ban Players on Your GTA San Andreas Server
GTA San AndreasGTA San AndreasKick & Ban Players

How to Kick and Ban Players on Your GTA San Andreas Server

Kick and ban players on a GTA San Andreas server

3 min read
Jul 30, 2026

You remove players via RCON – either in the game through the chat or through the external remote console.

Find the player ID

Kick and ban work with the player ID, not with the name.

  1. Open the chat
    Press T in the game to open the chat.

  2. List the players
    Show all connected players with their ID, name, IP address and ping:

    /rcon players
    
  3. Note the ID
    Note the ID of the player – and for a planned ban also their IP address.

Kick a player

/rcon kick 3

The player is disconnected from the server and can rejoin immediately.

Ban a player

/rcon ban 3

The player is kicked from the server and locked out.

Ban an IP address directly

/rcon banip 123.45.67.89

This locks out an IP address even when the player is not currently connected. Wildcards are accepted, so entire ranges can be blocked:

/rcon banip 123.45.67.*

Lift a ban

/rcon unbanip 123.45.67.89

Command overview

Command Description
/rcon players List all connected players with ID, name, IP address and ping
/rcon kick <ID> Disconnect a player from the server
/rcon ban <ID> Lock a player out (applied to their IP address)
/rcon banip <IP> Ban an IP address, wildcards allowed
/rcon unbanip <IP> Lift the ban for an IP address
/rcon reloadbans Reload the ban list

Edit the ban list via SFTP

All bans are written to a file in the main directory of your server. Which one it is depends on your server variant:

Server File
open.mp bans.json
SA-MP samp.ban

Among other things the file contains the banned IP address as well as the date, time and the name or reason of the ban.

  1. Connect via SFTP
    Connect to your server via SFTP.

  2. Edit the file
    Open the ban file in the main directory and remove or add the entries you want.

  3. Reload the list
    Afterwards run the following command in the game:

    /rcon reloadbans
    
Written byEmeraldHost Team
Last updated on Jul 30, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord
GTA San Andreas

Ready to get started?

Rent your GTA San Andreas Server now

Join our Discord community 1257 members online right now