• Stars
    star
    198
  • Rank 195,991 (Top 4 %)
  • Language
    C#
  • License
    Apache License 2.0
  • Created over 10 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A framework for writing game modes for SA-MP in C#. SA-MP is a free Massively Multiplayer Online game mod for the PC version of Rockstar Games Grand Theft Auto: San Andreas.

SampSharp

GitHub Action: dotnet GitHub Action: Plugin (Linux) GitHub Action: Plugin (win32) GitHub Releases GitHub Issues

Join us on Discord

SampSharp is a plugin and library that allows you to write San Andreas: Multiplayer(SA-MP) gamemodes in C#. SampSharp's aim is to allow you to enjoy all features of object-oriented programming and .NET. SampSharp uses the .NET runtime which allows the plugin to run on both Windows and Linux server. For information about installing and building SampSharp, check the documentation. If you have any questions, feel free to join our Discord chat or file an issue.

Documentation

The SampSharp .NET packages provided are available on NuGet.org and contains all API documentation. Additional documentation is available on https://sampsharp.net/ and https://api.sampsharp.net/

Examples

Some example gamemodes are available here:

  • GrandLarc (GM) - SA-MP default gamemode "grandlarc" ported to C# using SampSharp.GameMode
  • GrandLarc (ECS) - SA-MP default gamemode "grandlarc" ported to C# using SampSharp.Entities
  • RiverShell (GM) - SA-MP default gamemode "rivershell" ported to C# using SampSharp.GameMode

Building SampSharp

In order to build the .NET libraries you can simply open and build SampSharp.sln using Visual Studio 2022, or you can build it from the command line using dotnet (version 6 or newer) dotnet publish SampSharp.sln --configuration Release.

To build the plugin on Windows, build SampSharp.Plugin.sln with Visual Studio 2022. You'll need to have the "Desktop development with C++" workload installed using Visal Studio Installer.

To build the plugin on Linux you'll at least need to have the packages make gcc g++ gcc-multilib g++-multilib installed. Run make to build the plugin.

More Repositories

1

SanMap

Tools for using Google Maps with the map of Grand Theft Auto: San Andreas. The project contains a projection for the San Andreas map and a tool to generate map tiles.
C#
45
star
2

vs-tye-explorer

Tye Explorer for Visual Studio. Find running services, dive into service logs and attach your debugger to a services or specific replicas using a simple interface.
C#
18
star
3

opengta2

An open source re-implementation of GTA II using C#, MonoGame and the original assets. The project is currently in an early stage of development.
C#
10
star
4

SampSharp-streamer

A wrapper of the popular SA-MP streamer plugin for SampSharp.
C#
8
star
5

LogiFrame

A framework for monochrome Logitech gaming keyboard LCDs.
C#
8
star
6

AMXWrapper

A C# wrapper for the Pawn Abstract Machine Executor.
C
7
star
7

solis-scraper

Scrape Solis wifi status page and push to MQTT service for homeassistant. Moved to https://github.com/ikkentim/homeassistant-addons
C#
5
star
8

rpi-rftransmitter

Tools for scanning, recording and playing RF signals on a Raspberry Pi. Made mostly for 433 mhz outlet switches
C
5
star
9

GBEmmy

A failed attempt at creating a gameboy emulator in C#.
C#
5
star
10

LaGet

A NuGet server written using the Laravel PHP Framework (example on http://nuget.timpotze.nl/).
PHP
5
star
11

earlescript

A basic Earle script language compiler/runtime fully written in C#. Earle is a scripting language I created, inspired by GSC script. (The compiler still needs a lot of optimization work)
C#
4
star
12

Spotify

A spotify "currently playing" API for the windows version of Spotify.
C#
3
star
13

SampSharp-rivershell

A SampSharp port of the rivershell game mode.
3
star
14

cpp-minesweeper

School assignment. An exact replica of the classic Windows 95/98/XP game called minesweeper.
C++
2
star
15

SampSharp-grandlarc

A SampSharp port of the grandlarc game mode.
2
star
16

CoD4MapRotationBuilder

An application allowing you to easily create map rotations for the game Call of Duty 4: Modern Warfare.
C#
2
star
17

WikiClone

Mirror your GitHub wiki with ease.
PHP
2
star
18

AIWorld

A 3D simulation engine I've written for a school assignment.
C#
1
star
19

homeassistant-addons

Home Assistant add-ons I use myself
C#
1
star
20

SAMemAPI

A messy, incomplete San Andreas Memory API
C#
1
star
21

sapp

[OBSOLETE] Sapp - San Andreas Application: An application to show information about SA(:MP) on your G15/G510 keyboard
C#
1
star
22

Basic3D

Testing out some basics of 3D rendering.
C++
1
star
23

CodServerCache

A Call of Duty 4: Modern Warfare servercache.dat reader in C#. Can extract the server cache and favorites list.
C#
1
star