samp.directory
← Scripts et bibliothèques

LuminouZ307/samp-multicp

Create player multiple checkpoint!

Bibliothèque★ 3mis à jour juin 2022Pas 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 LuminouZ307/samp-multicp

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.

README.md

samp-multicp

Read This

This script is actually inspired from here, but i made my own version and using some library like YSI.

Installation

Simply install to your project:

sampctl package install LuminouZ307/samp-multicp

Include in your code and begin using the library:

#include <multicp>

Usage

Functions

  • SetPlayerMultiCP(playerid, Float:x, Float:y, Float:z, bool:autodisable = false, color = MULTICP_DEFAULT_COL) :

    • Sets player checkpoint.

    • playerid = The player ID you wan't sets the checkpoint.

    • x = x position.

    • y = y position.

    • z = z position.

    • autodisable = if autodisable is true, when you entering the checkpoint it will automatically disabled.

    • color = checkpoint colour (default is red).

  • DisablePlayerMultiCP(playerid, cpid) :

    • Remove player checkpoint.
  • IsPlayerInMultiCP(playerid, cpid) :

    • Check if player in a checkpoint.
  • DisablePlayerAllMultiCP(playerid) :

    • Remove player all checkpoints.

Callbacks

  • OnPlayerLeaveMultiCP(playerid, cpid) :

    • Detect when player leaving checkpoint.
  • OnPlayerEnterMultiCP(playerid, cpid) :

    • Detect when player entering checkpoint.

Testing

To test, simply run the package:

sampctl package run

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

LuminouZ307/samp-multicp : Bibliothèque SA-MP | samp.directory