Giter VIP home page Giter VIP logo

pawn-boilerplate's Introduction

PAWN Boilerplate

Please note that this project is not yet officially released.

PAWN Boilerplate, or PBP, is a solid base for rapidly developing large gamemodes for SA-MP servers. Everything is organized into modules, which are very easy to create and get started with.

To make this work, a pre-compiler has been created. The pre-compiler will automatically generate a main file linked to all the modules and their contents.

Have a look at the Wiki for more information.

Cool features

Let's be concise.

Commands

PBP uses YCMD, though with some extensions:

// This will appear in /commands
CommandDescription<quit_race> = "Quit the race you're currently in.";

// This command is only available for players in the group GROUP_RACERS
YCMD(GROUP_RACERS):quit_race(playerid, params[], help) {
	// <quit race code here>
}

Configuration variables

Very easily make variables load/saveable. Plain-text file in scriptfiles/config.cfg you can edit and reload via RCON.

new g_SomeVariable = 50; // 50 will be the default value

// g_SomeVariable will now automatically load and save when the gamemode inits/exits
RegisterConfigVariable<g_SomeVariable>;

// Same here, for the whole array
new g_SomeArray[20];
RegisterConfigArray<g_SomeArray>;

LOTS OF MORE AWESOMENESS

pawn-boilerplate's People

Contributors

oscar-broman avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

medzvel

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.