samp.directory
← Skrypty i biblioteki

LuminouZ307/samp-multicp

Create player multiple checkpoint!

Biblioteka★ 3zaktualizowano cze 2022Brak licencjiPawnsampctl
Otwórz na GitHubie

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

Zainstaluj za pomocą sampctl

sampctl package install LuminouZ307/samp-multicp

Uruchom to w folderze swojego projektu. sampctl pobiera pakiet i to, od czego zależy.

Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

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

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

LuminouZ307/samp-multicp: Biblioteka SA-MP | samp.directory