[GameMode] [SampSharp (S#)] Bare | Barron | Grand Larceny | Rivershell
#1

I am patiently awaiting for my brand new desktop PC to arrive, so I decided to make these on my laptop while I am patiently waiting...

** NOTES **
Downloads ARE NOT WORKING as of now, but on request I will be happy to compile and release
If you want to compile for yourself, just follow my Tutorial and replace GameMode.cs with the source.

These do not show off C# OOP capabilities, they are designed to be sourced on 1 file, like a Pawn gamemode would be.

C# knowledge is suggested but not required to edit the source. This is intended for beginners.
***

Updated for SA-MP 0.3.7-R2.
For this to work we will use the
SampSharp - Write gamemodes in .NET plugin created by ikkentim.

For general questions:
Join my Discord channel.

For SampSharp (S#) related questions:


Please tell me how you think of these gamemodes by rating the thread and commenting, negative and positive feedback accepted!

Bare (Download | Source)
The most basic of the four modes released by the SA-MP Team.

All you can do is spawn and use a command called /yadayada which does nothing

KNOWN BUGS:
- None.

Barron (RC BARNSTORM) (Download | Source)
An RC vehicle vs. vehicle assault gamemode, created to demonstrate the following:
- Vehicle observation mode.
- TextDraws and the use of player keys in GameTexts.
- Player use of RC vehicles.
- Dynamic creation and destruction of vehicles.
- Player key handling.
- Bypassing the default Class Selection system.

Players spawn in random locations (around Blueberry farm) and are automatically placed in RC Barron vehicles.
The goal is to kill other player's RC planes.

KNOWN BUGS:
- None.

Grand Larceny (Download | Source)
The first instance of a "Freemode" type gamemode.

Players can choose a city location to spawn thereafter choosing a skin to spawn with.
Players are spawned in random locations for the city they have chosen.
Players will start with $30,000 and two weapons.
The goal is to kill other players for their money.
Server vehicles are added dynamically without editing / compilation of the script, through txt files in the scriptfiles folder.

KNOWN BUGS:
- None.

* Ikkentim made a Object Oriented version of this script *

Rivershell (Download | Source)
My personal favorite of the four gamemodes.

This mode is mapped for the type of mode it is.
There are two teams (Blue and Green).
Players spawn at fixed locations.
There are two sheds players can go into to restock their weapons and health.
The objective is to defend your team's reefer while trying to steal the opposing team's reefer.

KNOWN BUGS:
- None.

* Ikkentim made a Object Oriented version of this script *

How to Download & Run These (Windows | With Screenshots)
screenshots coming soon, incomplete guide

1. Make sure your Windows updates are up-to-date. (Control Panel > System & Security > Updates)

2. Make sure .NET Framework 3.5 and 4.6 are activated from the "Turn Windows features on or off" menu. (Programs and Features > Turn Windows features on or off)

3. Make sure to have the latest Visual C++ Redistributable installed.

4. Click 'Download' next to the gamemode you would like to use. (Bare, Barron, Grand Larceny, or Rivershell)

5. Download the SA-MP 0.3.7-R2 Windows Server files. (Source: www.sa-mp.com/download.php)

6. Download the SampSharp-0.7.6221.37952.zip files. (Source: https://github.com/ikkentim/SampSharp/releases/)

7. Download the mono-4.6 files. (Source: http://sampsharp.timpotze.nl/installation)

8. Extract the SA-MP 0.3.7-R2 files to a directory of your choice. I will extract mine to 'C:/SampSharp'. ('C:/SampSharp/samp-server.exe')

9. Extract the SampSharp files to the same directory. ('C:/SampSharp/plugins/SampSharp.dll')

10. Extract the Mono files to the same directory. ('C:/SampSharp/mono-2.0.dll')

11. Extract the gamemode files to the same directory. ('C;/SampSharp/gamemode/<downloaded.dll>')

12. Edit the server.cfg, change 'gamemode <downloaded>:GameMode' to the one you downloaded. ('gamemode Rivershell:GameMode') and change the rcon_password as well.
Quote:

port 7777
hostname SA-MP 0.3 Server
weburl www.sa-mp.com
rcon_password changeme

maxplayers 1000
maxnpc 1000

lanmode 1
announce 1
query 1

onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000

chatlogging 0
logtimeformat [%H:%M:%S]

#
# SA-MP#
#
gamemode0 empty 1
gamemode downloaded:GameMode

plugins SampSharp.dll
# plugins libSampSharp.so

13. You should now be able to run samp-server.exe and it will work if you read and followed these directions concisely.

How to Download & Run These (Ubuntu | With Screenshots)

COMING SOON
Reply
#2

Nice keep it up.
Reply
#3

Good job
Reply
#4

Thanks buddy !
+Rep
Reply
#5

Quote:
Originally Posted by LifeIsGood
Посмотреть сообщение
they are designed to be sourced on 1 file, like a Pawn gamemode would be.
A pawn gamemode should not be.
Reply
#6

Nice
Reply
#7

What's the point of jumping through all those hoops to script in C#?
Reply
#8

Quote:
Originally Posted by donsta3000
Посмотреть сообщение
What's the point of jumping through all those hoops to script in C#?
I am not going to debate to anyone why I personally feel C# IS a better language than Pawn.
I am also not going to force anyone to switch.
This is intended for those interested in making gamemodes for SampSharp.
If you don't see any point for yourself, DON'T USE THIS, and have a wonderful life.
If you are interested, you can always contact me for help.
Reply
#9

Quote:
Originally Posted by donsta3000
Посмотреть сообщение
What's the point of jumping through all those hoops to script in C#?
The very fact that you're asking this question really suggests that you should not be commenting on this thread.
Reply
#10

Quote:
Originally Posted by Jay_
Посмотреть сообщение
The very fact that you're asking this question really suggests that you should not be commenting on this thread.
Twas a genuine question, kind sir. If you are not going to provide any useful information/arguments for using this, then maybe it's best you don't comment on this thread at all .
Reply
#11

Please refrain from flaming this thread with passively aggresive comments. Thanks yous both.
Reply
#12

Nice job .
Wow, it's good to see some members from USA, greetings from Tunisia.
Reply
#13

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
Nice job .
Wow, it's good to see some members from USA, greetings from Tunisia.
Salutations friend
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)