german-schneck / samp-gamemode

Grand Theft Auto San Andreas Multiplayer - Gamemode
Other
5 stars 1 forks source link

San Andreas Multiplayer Gamemode

A glimpse into the past:

About 8 and 9 years ago (when I was 13 and 14 years old) I developed some projects in a language called Pawn. These projects were intended for game servers for San Andreas Roleplay.

I found these codes today, after having lost them during all that time and today I decided to share them so that people who are still developing this type of thing can take examples or ideas.

What is "Pawn"?

Pawn is a language developed by ITB CompuPhase in 1998. It is commonly used on platforms where anyone can add their own code.

Pawn source files are compiled to a binary file for better runtime. The Pawn compiler produces P-Code (or Bytecode) that runs on an abstract machine. The basis of Pawn's design and its respective interpreter are: Speed of execution, stability and simplicity.

"Hello World" in Pawn

main()
{
    print("Hello World!");
}

Recurrent uses:

About what's in this repository

Game Scripts:

Inside the folder ./gamemodes there are files. gm1.pwn and gm2.pwn

These two files are different game modes, I've uploaded these of a large amount that I had as they are the most code they have created. (Between 12k and 20k lines of code)

Highlights:

Very important:

These game modes were created in 2012 and 2013 so I don't know about any bugs.

So I would not personally recommend to be used by compelto. (or yes, but you will have to draw your conclusions).

How to run?

IMPORTANT: Before you start you should make sure that there is a .amx file within gamemodes. (These are obtained only by compiling the .pwn file)

Steps:

Note: If you want to run this on GNU/Linux, you can do so by downloading the server directed to this platform on its official website. (Information below).

Configuration:

To compile:

Windows:

Inside the repository there is a folder called pawno and inside it there is an executed one called pawno.exe

This is the IDE specialized in this language and already brings with it the compiler.

GNU/Linux (and Mac):

You will need to use some alternative IDE to the one mentioned above.

Here are some that might interest you.

QuickPawn (Editor + Compiler) http://www.em-creations.co.uk/downloads/

CodeBlocks (Only editor) http://www.codeblocks.org/

Visual Studio Code There's also an extension for VSCode, which I haven't used but it wouldn't be wrong to try. https://marketplace.visualstudio.com/items?itemName=southclaws.vscode-pawn

Links

San Andreas Multiplayer

Grand Theft Auto SA - Official website http://www.rockstargames.com/sanandreas/

Pawn Official Website https://www.compuphase.com/pawn/pawn.htm