samp.directory
← Scripts et bibliothèques

AmyrAhmady/samp-player-gangzones

Create per player gangzones in SA-MP

Bibliothèque★ 13mis à jour déc. 2025Pas de licencePawnsampctl
Ouvrir sur GitHub

Ce dépôt n’a pas de fichier de licence. Il est public en lecture, mais cela ne donne pas à lui seul le droit de le réutiliser.

Installer avec sampctl

sampctl package install AmyrAhmady/samp-player-gangzones

Lance ceci dans le dossier de ton projet. sampctl télécharge le paquet et ce dont il dépend.

L’essayer dans le compilateur Pawn →

Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.

Dépend de 2 paquets

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

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

AmyrAhmady/samp-player-gangzones : Bibliothèque SA-MP | samp.directory