SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 07/06/2019, 01:25 PM   #411
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,052
Reputation: 205
Default Re: SampSharp - Write gamemodes in .NET

They are slightly outdated though
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 12/07/2019, 08:40 AM   #412
Bonch
Little Clucker
 
Join Date: Feb 2017
Location: Tbillisi, Georgia
Posts: 21
Reputation: 5
Default Re: SampSharp - Write gamemodes in .NET

Again, .Net works only for windows.
Bonch is offline   Reply With Quote
Old 12/07/2019, 09:03 AM   #413
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,052
Reputation: 205
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by Bonch View Post
Again, .Net works only for windows.
No, it runs on any platform.
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 18/12/2019, 08:22 AM   #414
ArtueSkot
Little Clucker
 
ArtueSkot's Avatar
 
Join Date: Dec 2019
Posts: 1
Reputation: 0
Default Re: SampSharp - Write gamemodes in .NET

Good day, help the server does not correctly display Russian characters

Quote:
protected override void OnPlayerConnected(BasePlayer player, EventArgs e)
{
base.OnPlayerConnected(player, e);

player.SendClientMessage(Color.Blue, ", , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , .");

Console.WriteLine(", , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , .");

Console.WriteLine("Player {0} connected.", player.Name);

logo.Show(player);
RegistrationSkinButtons.Show(player);

player.SetSpawnInfo(45, 1, new Vector3(1754.6766, -1920.7855, 13.5722), -90, Weapon.AK47, 100, 0, 0, 0, 0);
player.Spawn();

}

as a result

Console , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , .
Client ? ? ? ? ? ? ? ? ?

who knows how to fix this please help.
latest version of SampSharp
DotNetCore
ArtueSkot is offline   Reply With Quote
Old 21/12/2019, 04:20 PM   #415
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,052
Reputation: 205
Default Re: SampSharp - Write gamemodes in .NET

Hi ArtueSkot,

You can configure this by setting the encoding: https://sampsharp.net/configuration#encoding
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 23/12/2019, 08:16 PM   #416
RiqueP
Gangsta
 
RiqueP's Avatar
 
Join Date: Jan 2014
Location: 01010011 01010000
Posts: 864
Reputation: 59
Default Re: SampSharp - Write gamemodes in .NET

I will be honest in really saying that since this plugin was published, I have not stopped to read this topic. I did it now and I'm almost having a child.

I really need to ask you this because I don't believe what I'm seeing. Is this really C # (type FiveM) or is it "C #"?

Can I use anything from C #?
RiqueP is offline   Reply With Quote
Old 24/12/2019, 07:09 AM   #417
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,052
Reputation: 205
Default Re: SampSharp - Write gamemodes in .NET

It’s full on .NET Core, so any modern .NET/c# code/libraries can be used.
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 24/12/2019, 11:43 AM   #418
RiqueP
Gangsta
 
RiqueP's Avatar
 
Join Date: Jan 2014
Location: 01010011 01010000
Posts: 864
Reputation: 59
Default Re: SampSharp - Write gamemodes in .NET

This is very impressive! Has it been used on a large scale? Know any servers you currently use?
RiqueP is offline   Reply With Quote
Old 29/12/2019, 12:18 PM   #419
ikkentim
High-roller
 
ikkentim's Avatar
 
Join Date: Jan 2010
Location: Kampen, The Netherlands
Posts: 1,052
Reputation: 205
Default Re: SampSharp - Write gamemodes in .NET

I think there are a small number of servers using it but I don't know how big they are.
__________________
Greetings,
Tim Potze

Projects
GAMEDEV | Part-time developer working on Parkitect. | Steampage
LSRES | A SA:MP server from the past, and hopefully, back in the future.
SampSharp | Plugin for writing SA:MP gamemodes in C#. | Topic Website Github
SanMap | San Andreas in G00GLE MAPS! | Topic Github Sample
ikkentim is offline   Reply With Quote
Old 01/01/2020, 06:39 AM   #420
f0Re3t
Little Clucker
 
Join Date: Aug 2015
Posts: 44
Reputation: 7
Default Re: SampSharp - Write gamemodes in .NET

Quote:
Originally Posted by ikkentim View Post
I think there are a small number of servers using it but I don't know how big they are.
Is it worth using this in a project with 0?
f0Re3t is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
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


All times are GMT. The time now is 10:05 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.