Giter Club home page Giter Club logo

samp-plugin-mapandreas's Introduction

Map Andreas Plugin

sampctl

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

native params return
MapAndreas_Init mode, const name[] int (0 failed/1 success)
MapAndreas_Unload const name[], const message[] int (0 failed/1 success)
MapAndreas_SaveCurrentHMap const name[] int (0 failed/1 success)
MapAndreas_FindZ_For2DCoord Float:X, Float:Y, &Float:Z int (0 failed/1 success)
MapAndreas_FindAverageZ Float:X, Float:Y, &Float:Z int (0 failed/1 success)
MapAndreas_SetZ_For2DCoord Float:X, Float:Y, Float:Z int (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

samp-plugin-mapandreas's People

Contributors

philip1337 avatar rizkylimit avatar rsetiawan7 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.