Plugin★ 1zaktualizowano lis 2021UnlicenseC#
Otwórz na GitHubieWypró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
SampSharp-MapAndreas
MapAndreas plugin wrapper for SampSharp.
Instalation
- Add the MapAndreas plugin and the heightmaps files to your SAMP server.
- Install nuget package: https://www.nuget.org/packages/SampSharp.MapAndreas
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
Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem