[GameMode] [SampGDK] SampServer - proper c++ base gamemode
#1

SampServer(Could not find a proper name for it)
I'm currently working on a gamemode using SampGDK in c++. It's a real gamemode, currently being around over 2000+ lines of code. It uses c++ MySQL connector for storing everything(Yes, everything). A note though is that this gamemode is just the base of a gamemode, it's no where near finished but has made it quite far. The whole thing is made to be as object-oriented as possible. I'm looking for any interest in this kind of gamemode(Please no noobs, go back to your pawn scripts).

Current stuff that it handles are:
Vehicles: Functions for creating/removing vehicles. Fully stored in MySQL. Fully implemented vehicle damage system which has functions for getting/setting health of any part of the car. Randomized license plates. Every player can own infinite cars.

Interiors & Pickups: Interiors and pickups are fully stored in MySQL. The system is made to be easy to set up player-wise houses in the world.

PlayerObjects: I've made my own proper streamer in c++, tested and works great. Stored fully in MySQL. Functions for creating/removing objects made to make object management easy.

Weapons: Support for custom weapons, stored in MySQL. Just started with.

Support has been added for adding proper anti-cheat against most stuff. This gamemode stores most of the player variabels that can be hacked which allows for easy cheat detection.
I've probably missed something here, ask questions.

Edit: To clarify, I've been working with this project in spare time and I currently don't have any use for it. I'm not in any way an educated programmer, just self taught, and this gamemode isn't 100% perfecet, but it is very close and much better than most of the gamemodes out there. I haven't seen any SampGDK ones yet.

Source code on Github
Reply
#2

Quote:
Originally Posted by gustav9797
View Post
I've probably missed something here, ask questions.
Yes you did, you forgot to add a link to the source!
Reply
#3

Quote:
Originally Posted by maddinat0r
View Post
Yes you did, you forgot to add a link to the source!
I'm just looking for any interest. Most suitable as base for big and expanding servers.
Reply
#4

Why don't you put the source up on a git repository (like on github.com) and if there is any interest, they can just fork that repo (clone the source), edit the code as they want and send a pull request (you review that request and if the code is OK you add it to your repo)?
Reply
#5

I'm currently in the "I don't want to share any code>.>" state, but there is a small possibility that it could change.
Reply
#6

Then this really isn't the place to post such a thread.

As you are not planning to release anything as it's just a project you're working on and you're looking to get more people involved, I suggest you to go here.
Reply
#7

Quote:
Originally Posted by gustav9797
View Post
I'm just looking for any interest. Most suitable as base for big and expanding servers.
Interests?!

if any one want to find interest then share their scripts
we should close forum.sa-mp.com


mybe you're a kid and you can understant
Reply
#8

Quote:
Originally Posted by amirab
View Post
Interests?!

if any one want to find interest then share their scripts
we should close forum.sa-mp.com


mybe you're a kid and you can understant
Maybe you haven't finished playground yet, your understanding and grammar are horrible.
Reply
#9

Useless, there is already sampgdk which is in C++ so no need to make useless modes like this which no one would be using.
You could try to wrap it at least to another language other than C++.

After all I shared my option just because you asked for!
Reply
#10

Quote:
Originally Posted by LeaveMe
View Post
Useless, there is already sampgdk which is in C++ so no need to make useless modes like this which no one would be using.
You could try to wrap it at least to another language other than C++.

After all I shared my option just because you asked for!
I think you have misunderstood it. It's just a base for a gamemode which means by using this it would be much easier to implement the specific gamemode you want to create.
Quote:
Originally Posted by LeaveMe
View Post
there is already sampgdk
Yes, sampgdk exists, but you would have to write a base before beginning with your gamemode. Some people don't write a base, they start programming on features straight away, and that's not in any way a good way to make a gamemode that should be expandable later.
Quote:
Originally Posted by LeaveMe
View Post
other than C++.
Personally, I love c++. The way it's structured, pointers.

Edit:
Damn it, no point holding the code. Itself it does nothing except some basic things.
https://github.com/gustav9797/sampserver
Reply
#11

Nice realease lol
Reply
#12

Quote:
Originally Posted by gustav9797
Посмотреть сообщение
I think you have misunderstood it. It's just a base for a gamemode which means by using this it would be much easier to implement the specific gamemode you want to create.

Yes, sampgdk exists, but you would have to write a base before beginning with your gamemode. Some people don't write a base, they start programming on features straight away, and that's not in any way a good way to make a gamemode that should be expandable later.

Personally, I love c++. The way it's structured, pointers.

Edit:
Damn it, no point holding the code. Itself it does nothing except some basic things.
https://github.com/gustav9797/sampserver
Then you used wrong word to describe it.
If you mean 'base' as I said there is sampgdk as a base. But if you mean a framework, a library, again there is some very good solution like boost library. And if you are going to be very specified on SA-MP mode again it's useless sine every C++ programmer has it's own creativity and he wants to use his own creativity for his own project! (Other than some noob C++ kids)

Also about other languages, You can have much more powerful pointers in whole .NET languages and I don't know what you mean by 'The way it's structure'.

After all there is a working successful C++ GameMode by a well-known user of SA:MP at following link.
https://sampforum.blast.hk/showthread.php?tid=465909
Gamerz is using [SampGDK, ODB, Streamer Library] all together.

So don't repeat yourself, Don't waste your time!

Hope my words help you.

Good luck.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)