23.07.2017, 17:07
(
Последний раз редактировалось LifeIsGood; 08.09.2017 в 19:46.
)
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.
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
** 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 |
How to Download & Run These (Ubuntu | With Screenshots)
COMING SOON