What Are SA-MP Filterscripts?
Filterscripts are standalone Pawn scripts that run alongside your main gamemode — they don't replace it. Think of them as plug-and-play modules that add specific features: admin panels, anti-cheat systems, mini-games, or UI enhancements. They're loaded in server.cfg under the filterscripts line and can be added or removed without touching your main gamemode.
Why Use Filterscripts?
- Modularity — Keep your gamemode clean by offloading features to separate scripts.
- Easy Updates — Update or swap a filterscript without recompiling your entire gamemode.
- Community Resources — Thousands of free filterscripts are available on the SA-MP forums and GitHub.
- Rapid Development — Add major features in minutes rather than coding them from scratch.
Categories of Essential Filterscripts
1. Admin Systems
A good admin filterscript lets you manage players in real time — kick, ban, mute, teleport, and more. Look for scripts that support admin levels, so junior moderators have fewer privileges than senior admins. Popular choices in the community include ZCMD-based admin scripts that use fast command processing.
2. Anti-Cheat Plugins
Cheating is a persistent problem in SA-MP. Anti-cheat filterscripts detect common hacks such as speed hacks, teleport hacks, and weapon hacks by validating player positions and states server-side. Some well-regarded options rely on SA-MP's built-in callbacks like OnPlayerUpdate to check for suspicious behaviour every tick.
3. Speedometer & HUD Overlays
Visual HUDs showing speed, health, and fuel add immersion — especially for roleplay and racing servers. These filterscripts use TextDraws to render custom UI elements on the player's screen without any client-side mod required.
4. Animated Gates & Doors
Moving objects are handled server-side via MoveObject. Gate filterscripts let you define zones where objects open automatically when a player approaches — great for base entrances or garages.
5. Weapon Shop Systems
Weapon shop filterscripts create interactive pickup-based menus allowing players to buy weapons with in-game currency. They're highly configurable and pair well with economy gamemodes.
How to Install a Filterscript
- Place the compiled
.amxfile in your server's/filterscripts/folder. - Open
server.cfgand locate thefilterscriptsline. - Add the script name (without extension):
filterscripts adminscript anticheat speedometer - Restart the server. Filterscripts load in the order listed.
Compatibility Tips
- Always check the SA-MP version the filterscript was designed for.
- Avoid multiple filterscripts that hook the same callback without using y_hooks or ALS (Advanced Library System) — conflicts will cause unexpected behaviour.
- Test each filterscript individually before combining them in production.
Where to Find Filterscripts
The SA-MP Community Forums (specifically the Filterscripts section) and GitHub are the best places to find regularly maintained scripts. Always review source code before deploying anything on a live server to ensure there are no backdoors or malicious entries.