samp.directory
← Skripte und Bibliotheken

KirillBorunov/SampSharp-MapAndreas

MapAndreas plugin wrapper for SampSharp.

Plugin★ 1aktualisiert Nov. 2021UnlicenseC#
Auf GitHub öffnen
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.

README.md

SampSharp-MapAndreas

MapAndreas plugin wrapper for SampSharp.

Instalation

Example

Initialize MapAndreas and get a position.

protected override void OnInitialized(EventArgs e)
{
    base.OnInitialized(e);
    
    // Get the service (you can get it everywhere where you can access the GameMode instance)
    var mapAndreas = Services.GetService<IMapAndreas>();

    // Initialize (you need to do this only once, when the GameMode initialized)
    mapAndreas.Init(MapAndreasMode.Full, "scriptfiles\\SAfull.hmap");

    // Find a position
    var z = mapAndreas.FindAverageZ(new Vector2(20.001f, 25.006f));
    if (z != null)
    {
        // A position was found, saved in z.Value
    }
}

mapandreasplugin-wrappersampsampsharpsampsharp-gamemode

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

KirillBorunov/SampSharp-MapAndreas: SA-MP Plugin | samp.directory