samp.directory
← Skripte und Bibliotheken

AmyrAhmady/samp-player-gangzones

Create per player gangzones in SA-MP

Bibliothek★ 13aktualisiert Dez. 2025Keine LizenzPawnsampctl
Auf GitHub öffnen

Dieses Repository hat keine Lizenzdatei. Es ist öffentlich lesbar, aber das allein gibt noch keine Erlaubnis, es weiterzuverwenden.

Mit sampctl installieren

sampctl package install AmyrAhmady/samp-player-gangzones

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

Hängt von 2 Paketen ab

README.md

samp-player-gangzones

About

Creating per player gangzones to avoid normal (global) samp gangzones limit (1024). Uses Pawn.RakNet to send RPCs.

PS: Yes. I know test.pwn file isn't actually a unit test script. You need to go in game and use those commands. sorry!

Thanks to @J0shES for flash functions.

Installation

Simply install to your project:

sampctl package install AmyrAhmady/samp-player-gangzones

Include in your code and begin using the library:

#include <samp-player-gangzones>

Functions

PlayerGangZoneCreate(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy);
PlayerGangZoneDestroy(playerid, gangzoneid);
PlayerGangZoneShow(playerid, gangzoneid, color = PLAYER_GZ_DEFAULT_COLOR);
PlayerGangZoneHide(playerid, gangzoneid);
PlayerGangZoneFlash(playerid, gangzoneid, color = PLAYER_GZ_DEFAULT_FLASH_COL);
PlayerGangZoneStopFlash(playerid, gangzoneid);

Testing

To test, simply run the package:

sampctl package run

and use these commands in game:

/gzcreate
/gzshow
/gzhide
/gzdelete

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden

AmyrAhmady/samp-player-gangzones: SA-MP Bibliothek | samp.directory