Giter VIP home page Giter VIP logo

sampgdk's Introduction

Donate Build Status

Introduction

The GDK (Gamemode Development Kit) is a library that allows you to write SA-MP gamemodes in C/C++. It is built on top of the SA-MP plugin SDK, so gamemodes written with it are basically just ordinary plugins.

The library provides most the functions you would find in Pawn, except thos that overlap with the C standard library, like file I/O or string utiluties, or could be easily implemented on top of it. It also lets you handle various SA-MP events (known as "callbacks" in Pawn).

Visit the official SA-MP forums topic for more information and support.

Getting Started

You can begin with downloading the source code and playing a bit with the HelloWorld plugin in plugins/helloworld.

Using Git

If you know Git the simplest way to get started is probably to clone this repo and create a new branch for your personal project like my-project, and then just start developing your own plugin right in the GDK's source tree. Later if you decide to update the library you would simply switch to master, pull in the changes and merge them into my-project.

Visual Studio

There are also some useful files provied for developing plugins in Visual Studio using the above method. They are located in build/visual-studio. Running the configure.bat script is the first thing you would do after downloading the source code and installing the necessary development tools (like CMake and the Visual Studio itself).

Next you have to set the SAMP_SERVER_ROOT environment variable to the full path of the server folder - this makes the post-build events work and allows you to run the server easily from within Visual Studio. The post-build events defined in the .user files copy both the library and helloworld.dll to %SAMP_SERVER_ROOT% and %SAMP_SERVER_ROOT%/plugins respectively (but only in Debug builds).

Binaries

Pre-compiled binaries for Windows and Linux along with the documentation and other development files can be downloaded here.

sampgdk's People

Contributors

zeex 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.