samp.directory
← Scripts et bibliothèques

jvson03/samp-narcotic

A SA-MP script introducing a narcotics system for roleplay servers. Features drug creation, distribution, and effects for immersive gameplay scenarios.

Gamemode★ 1mis à jour mars 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 jvson03/samp-narcotic

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

README.md

Narcotic Roleplay : SAMP

A gamemode built from scratch for NCRP. Developed in pawn language.

Features

  • Users module
  • Ban module
  • Admin module
  • Vehicle module
  • Chat module

Authors

Reference

Modules

The file naming inside modules should be as the following
    [prefix]_[content].pwn

Messages

SendErrorMessage();
Used to send messages on errors.
ParameterTypeDescription
playeridintRequired. The player id
messagestringRequired. The error message
SendUsageMessage();
Used to send messages on command usage.
ParameterTypeDescription
playeridintRequired. The player id
messagestringRequired. The usage message
SendInfoMessage();
Used to send messages on information.
ParameterTypeDescription
playeridintRequired. The player id
messagestringRequired. The info message
SendServerMessage();
Used to send server message.
ParameterTypeDescription
playeridintRequired. The player id
messagestringRequired. The server message

Color Reference (y_colors)

ColorHex
Server MessagesX11_INDIAN_RED
Usage MessagesX11_LIGHT_YELLOW
Error MessagesX11_VIOLET_RED_1
Info MessagesY_LIGHT_SKY_BLUE

Deployment

To deploy this project make sure you have sampctl and xampp installed. Grab the sql files from the modules and import them to your database. Open the mysql.ini file and enter your database details.

Ensuring the dependencies!

  sampctl ensure

Building the gamemode!

  sampctl build

Running the gamemode!

  sampctl run

Support

For support, email [email protected] or DM me in Discord (JasonTheMan#7125).

Contributing

Contributions are always welcome!

Contact me in Discord (JasonTheMan#7125) for ways to get started.

Please adhere to this project's code of conduct.

Lessons

Was a little annoying at start as I had left the community of SAMP a long time ago, but I eventually got the hang of it.

Getting used to mysql queries and how sql syntax works.

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

jvson03/samp-narcotic : Gamemode SA-MP | samp.directory