samp.directory
← Scripts and libraries

AmyrAhmady/samp-player-gangzones

Create per player gangzones in SA-MP

Library★ 13updated Dec 2025No licencePawnsampctl
Open on GitHub

This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.

Install with sampctl

sampctl package install AmyrAhmady/samp-player-gangzones

Run this in your project folder. sampctl downloads the package and what it depends on.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

Depends on 2 packages

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

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

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