← Скрипты и библиотеки
Adam-Kelvine/Samp-flashlight-system
A simple flashlight system script for SA-MP
Фильтрскрипт★ 3обновлён авг. 2026 г.Без лицензииPawn
Открыть на GitHubВ этом репозитории нет файла лицензии. Код открыт для чтения, но само по себе это не даёт права использовать его.
README.md
Samp-flashlight-system
A simple flashlight system script for SA-MP
🔦 SA-MP Flashlight System
A lightweight and efficient flashlight system script written in Pawn for San Andreas Multiplayer (SA-MP). This script allows players to toggle a functional flashlight using both a command and a key press.
📋 Features
- Player Attachment: Attaches a flashlight object to the player's hand using a cell phone animation stance.
- Dynamic Lighting: Spawns and attaches a light object to illuminate the surroundings in front of the player.
- Automatic Cleanup: Safely destroys objects and cleans up attachments when a player disconnects or turns off the flashlight.
- Dual Control: Can be activated via chat command or game key.
⚙️ Dependencies
Make sure you have the following include files in your compiler directory:
<a_samp>(Standard SA-MP include)<zcmd>(Fast command processor by Zeex)
🎮 Usage / Commands
- /fl - Toggle the flashlight on or off.
📥 Installation
- Download or clone this repository.
- Place
flashlight.pwninto your gamemode or filterscript folder (or include it in your main script). - Ensure you have
zcmd.incincluded in yourpawno/includedirectory. - Compile the script using the Pawn compiler.
🖼️ Screenshot
💖 Support My Work
If you found this script useful and want to support me:
Страница собрана из того, что GitHub публикует о репозитории. samp.directory не хранит этот код. Сообщить о проблеме с этой записью