samp.directory
← Skrypty i biblioteki

ashwinm14/Sa-MP-Player-Blip

A real-time player blip system for Sa-MP / OpenMP.

Inne★ 1zaktualizowano cze 2025Brak licencjiPawn
Otwórz na GitHubie

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

README.md

🎯 SA-MP Player Marker Toggle System (Include)

A simple and efficient SA-MP include file that allows RCON admins to toggle player markers on the map. When enabled, all online players are shown on the map using yellow icons, visible only to admins. Perfect for admin monitoring, player tracking, or roleplay coordination.


📁 File Placement

  1. Save the code as:
pawno/include/player_marker.inc
  1. In your main gamemode .pwn file, add:
#include <player_marker>

🛠 Features

  • ✅ Admin-only /showplayers command
  • ✅ Displays yellow map icons for all players
  • ✅ Visible only to RCON admins
  • ✅ Automatically updates every 3 seconds
  • ✅ Markers removed on player disconnect
  • ✅ Clean and modular include file

⚙️ Setup Instructions

1. Include the File

#include <player_marker>

2. Start Marker Update Timer

Add in OnGameModeInit:

SetTimer("UpdatePlayerMarkers", 3000, true); // every 3 seconds

3. Handle Player Disconnect

In your OnPlayerDisconnect callback:

public OnPlayerDisconnect(playerid, reason)
{
    PlayerMarkers_OnPlayerDisconnect(playerid, reason);
    return 1;
}

💬 Usage

  1. Join the server.
  2. Log in as RCON admin:
/rcon login your_rcon_password
  1. Use the command:
/showplayers
  • Toggles player markers on or off for all admins.
  • Players appear as yellow blips on the map.

📄 Command Reference

CommandDescriptionAccess
/showplayersToggle map markers for all playersRCON Admin

🧾 Requirements

  • SA-MP server (0.3.7 or above)
  • a_samp include
  • RCON admin access
  • Compatible with all gamemodes using CMD: or similar systems

📦 File Structure

pawno/
└── include/
    └── player_marker.inc

gamemodes/
└── yourgamemode.pwn (includes the feature)

📜 License

This project is open-source and released under the MIT License. Use it freely in any SA-MP server.

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

ashwinm14/Sa-MP-Player-Blip: Inne SA-MP | samp.directory