samp.directory
← Skripte und Bibliotheken

philip1337/samp-plugin-mapandreas

MapAndreas Plugin

Plugin★ 29aktualisiert Juni 2023Keine LizenzC++sampctl
Auf GitHub öffnen

Dieses Repository hat keine Lizenzdatei. Es ist öffentlich lesbar, aber das allein gibt noch keine Erlaubnis, es weiterzuverwenden.

Mit sampctl installieren

sampctl package install philip1337/samp-plugin-mapandreas

Führe das in deinem Projektordner aus. sampctl lädt das Paket und alles herunter, wovon es abhängt.

Im Pawn-Compiler ausprobieren →

Fügt seine Include-Dateien samt der Bibliotheken, von denen es abhängt, dem Pawn-Compiler in deinem Browser hinzu, bereit zum Einbinden in ein Skript.

Verwendet von 1 Paket

README.md

Map Andreas Plugin

This plugin was initiali made by Kalcor and extended bv Mauzen. It allows you to load different height maps and check the min height for x,y coordinates. You can us it as example for an anti cheat to detect airbreaks easier or to prevent falling through the ground.

Features

  • Load height map
  • You can also implement it in your sampgdk plugins.

Themes about this plugin:

Functions

nativeparamsreturn
MapAndreas_Initmode, const name[]int (0 failed/1 success)
MapAndreas_Unloadconst name[], const message[]int (0 failed/1 success)
MapAndreas_SaveCurrentHMapconst name[]int (0 failed/1 success)
MapAndreas_FindZ_For2DCoordFloat:X, Float:Y, &Float:Zint (0 failed/1 success)
MapAndreas_FindAverageZFloat:X, Float:Y, &Float:Zint (0 failed/1 success)
MapAndreas_SetZ_For2DCoordFloat:X, Float:Y, Float:Zint (0 failed/1 success)

Installation

Simply install to your project:

sampctl package install philip1337/samp-plugin-mapandreas

Include in your code and begin using the library:

#include <mapandreas>

Example

Initialize MapAndreas and get a position.

public OnGameModeInit(playerid, cmdtext[])
{
    MapAndreas_Init(MAP_ANDREAS_MODE_FULL, "scriptfiles/SAFull.hmap");
    new Float:pos;
    if (MapAndreas_FindAverageZ(20.001, 25.006, pos)) {
        // Found position - position saved in 'pos'
    }
    return 0;
}

Build

Requirements

Synchronize dependencies from DEPS File.

gclient.py sync -v -f

You can also download it manually and place it into the external directory.

mkdir build
cd build
cmake ..\samp-log-spdlog
make

heightmapmapandreaspluginsa-mp

Diese Seite wird aus dem erstellt, was GitHub über das Repository veröffentlicht. samp.directory hostet den Code nicht. Ein Problem mit diesem Eintrag melden

philip1337/samp-plugin-mapandreas: SA-MP Plugin | samp.directory