samp.directory
← Scripts e bibliotecas

Adam-Kelvine/Samp-flashlight-system

A simple flashlight system script for SA-MP

Filterscript★ 3atualizado ago. de 2026Sem licençaPawn
Abrir no GitHub

Este repositório não tem arquivo de licença. Ele é público para leitura, mas isso sozinho não dá permissão para reutilizar.

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

  1. Download or clone this repository.
  2. Place flashlight.pwn into your gamemode or filterscript folder (or include it in your main script).
  3. Ensure you have zcmd.inc included in your pawno/include directory.
  4. Compile the script using the Pawn compiler.

🖼️ Screenshot

💖 Support My Work

If you found this script useful and want to support me:

pawno

Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página

Adam-Kelvine/Samp-flashlight-system: Filterscript de SA-MP | samp.directory