![]() |
#1 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,075
Reputation: 195
|
![]() SampSharp is a plugin and library which allows you to write SA-MP gamemodes in C#, VB or any other .NET language. The plugin works both on Linux and Windows. The library contains various classes for every type of resource available in SA-MP (players, vehicles, textdraws, etc). Aside from this wrapper around native functions, the library also contains a good structure to build your gamemode on. SampSharp provides wrappers for existing plugins (currently only the streamer plugin) and a number of resources for writing wrappers for existing plugins. There are also a small number of example gamemodes available. Feedback and suggestions are highly appreciated! If you have any questions, please leave a message below. The following snippet shows how easy it is to create a command which spawns a vehicle: PHP Code:
https://github.com/ikkentim/SampSharp/releases Current stable version: Current unstable version: Documentation http://sampsharp.timpotze.nl Notice: Documentation is currently lacking lots of vital information, please take a look around the examples/source for more detailed information. As soon as I have time I'll focus on improving the documentation. Source code https://www.github.com/ikkentim/SampSharp Last edited by ikkentim; 30/11/2017 at 11:42 AM. |
![]() |
![]() |
![]() |
#2 |
Gangsta
![]() ![]() ![]() ![]() Join Date: Jul 2012
Location: Connecticut, USA
Posts: 865
Reputation: 38
|
![]()
Nice!!! I am sure some people will find this very helpful.
![]() |
![]() |
![]() |
![]() |
#3 |
Huge Clucker
![]() ![]() ![]() Join Date: Jan 2010
Posts: 286
Reputation: 25
|
![]()
Nice effort, hope it doesn't get abbandoned as other similar projects.
I am not expirienced with c# but I want to learn it, so is there a way to use current plugins with this? As I prefer to use mysql,streamer,sscanf plugins and some others? |
![]() |
![]() |
![]() |
#4 | |||
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,075
Reputation: 195
|
![]() Quote:
![]() Quote:
Quote:
Streamer: i'm going to implement the most important features in the library. Sscanf: if you are using it to process commands, sampsharp has something better, check the commandstest class in the testmode project. I'll soon document it and make it more awesome. |
|||
![]() |
![]() |
![]() |
#5 |
Huge Clucker
![]() ![]() ![]() Join Date: Jan 2010
Posts: 286
Reputation: 25
|
![]()
Okay, thank you for your reply.
![]() But would you be able to implement a way to allow using the current plugins too? As there are lots of other useful plugins there, like fcnpc, ysf, mapandreas and some others? |
![]() |
![]() |
![]() |
#6 |
Big Clucker
![]() ![]() Join Date: May 2013
Posts: 95
Reputation: 29
|
![]()
Seems pretty sweet. I can't wait to see some more documentation on this.
Does this have any effect on how fast things are processed? |
![]() |
![]() |
![]() |
#7 | ||
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,075
Reputation: 195
|
![]() Quote:
Quote:
The reason to use this plugin would be OO, .NET and all libraries written for .NET. |
||
![]() |
![]() |
![]() |
#8 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2010
Location: Black Asylum
Posts: 3,180
Reputation: 489
|
![]()
Really.. and I was just looking into C#...
![]() Seems awesome, might test it. |
![]() |
![]() |
![]() |
#9 |
Big Clucker
![]() ![]() Join Date: Sep 2009
Location: Germany
Posts: 103
Reputation: 19
|
![]()
My Server won't start.
I pasted this into plugins folder: http://puu.sh/8D0Z2.png And Config looks like this: http://puu.sh/8D112.png But Server will only display this: [19:57:31] [SampSharp] Loading gamemode: RiverShell::GameMode at "plugins/RiverShell.dll". And then crashes. Can you help me? |
![]() |
![]() |
![]() |
#10 |
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2010
Posts: 2,454
Reputation: 569
|
![]()
Awesome work you've done. I might try to write some script on C# finally.
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Write on the map | hejsan123 | Scripting Help | 3 | 23/09/2012 08:35 AM |
How to write something in a VAR? | Ihsan_Cingisiz | Help Archive | 4 | 29/05/2010 07:24 PM |
How Do You Write This? | sidhu123 | Everything and Nothing | 2 | 12/09/2009 04:05 AM |
Write something in big and to the top | TimBuk.Ekh | Help Archive | 3 | 18/04/2009 07:19 PM |