Skip to content

pearanoids/Admin-Slap-System-SAMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 

Repository files navigation


๐ŸŽฎ SA-MP Roleplay โ€“ Slap Command System

A lightweight, username-based admin slap system for SA-MP RP servers


โœจ Overview

This script adds a simple but powerful /slap system to any SA-MP Roleplay gamemode. Admins (verified by username only) can slap a single player or every player online with a high jump effect.

โœ” Clean compile
โœ” Lightweight & stable
โœ” Fully RP-friendly
โœ” No admin IDs required โ€” username check only


๐Ÿ›  Features

โšก /slap <playerid> โ€” Launch a player high into the sky

๐ŸŒ /slap all โ€” Slap every connected player

๐Ÿ”’ Username-based admin verification

๐Ÿ“ฆ Fully standalone (no database required)

๐Ÿ“ 100% English documentation

๐Ÿงฉ Works with all SA-MP Roleplay gamemodes

๐Ÿš€ Instant response & no performance impact


๐Ÿ“ฅ Installation

Follow these easy steps:


1๏ธโƒฃ Download the Script


Download the .pwn file and place it inside your gamemode or filterscripts folder.



2๏ธโƒฃ Ensure Required Includes Exist


Make sure you have:

a_samp sscanf2

If you are missing sscanf2, download it from: โžก https://github.com/maddinat0r/sscanf

Or install via sampctl:

sampctl package install maddinat0r/sscanf



3๏ธโƒฃ Add Script to Your Gamemode


If included inside your GM:

#include "slap_system.pwn"


If using as a filterscript, add to server.cfg:

filterscripts slap_system



4๏ธโƒฃ Add Your Admin Username(s)


Inside OnGameModeInit():

AddAdmin("YourAdminName"); // โ† replace this
AddAdmin("SecondAdmin");   // optional

You can add unlimited names.



5๏ธโƒฃ Compile


Compile using your standard Pawn compiler:

pawncc yourgamemode.pwn

If everything is correct โ€” you will get:

โœ” No errors
โœ” No warnings
โœ” Clean compile



6๏ธโƒฃ Start Your Server


Run SA-MP server and test:

/slap <playerid>
/slap all


๐Ÿ’ก Usage

๐ŸŸฆ Slap a Single Player

/slap 12

Player with ID 12 will be launched upward.


๐ŸŸจ Slap Everyone

/slap all

All connected players receive the slap effect.


๐Ÿ” Permission System

Only users whose username matches your admin list can use the command.


๐Ÿ”ง Tips for Best Use

โœ Change admin names exactly as they appear in-game (case-insensitive)

๐Ÿšซ Do not put spaces in admin usernames

Example:
โŒ "John Doe"
โœ” "John_Doe"

๐Ÿ›  If you want multiple admins โ†’ just add more AddAdmin("username"); lines

โš™ You can safely use this script in live RP servers

๐Ÿงน No database needed โ€” everything runs standalone


๐Ÿ“Œ What You Need

Requirement Description


SA-MP Server 0.3.7 / open.mp Works on both
Pawn Compiler Standard pawncc is enough
sscanf Plugin Needed for command parsing
Basic Server Knowledge How to compile & run SA-MP


๐Ÿ“„ License

This project is free to use, modify, and include in any SA-MP server.


โญ Support & Contribution

If you like this script, consider giving the repository a โญ on GitHub! Contributions & improvements are always welcome.


About

A lightweight, username-based admin slap system for SA-MP RP servers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages