Posts: 285
Threads: 104
Joined: Dec 2013
Reputation:
0
hey guys i would like to ask what i should create for Deathmatch server ( like from begining? register and stuff? )
Posts: 503
Threads: 26
Joined: Mar 2013
Posts: 669
Threads: 15
Joined: Jul 2009
Reputation:
0
You should stop. Please, please stop.
Posts: 443
Threads: 21
Joined: Jul 2013
Posts: 954
Threads: 24
Joined: Jul 2012
Reputation:
0
Make it so that when you shoot someone they die, that's a start.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by ******
Absolutely not! You explicitly mention a registration system - that is the one part of a mode you should NEVER write yourself.
|
If you're not being sarcastic, I think this is really bad advice.
A lot of us learned from creating the most important features in our gamemodes, rather than using pre-released tools to do it mostly for us.
We gain more of an insight in to how things work and more motivation to understand things when we actually make them, especially as a lot of SA-MP scripters don't come from a programming background, it's a nice chance to understand some programming logic (i.e. how a user system would be made).
Posts: 1,023
Threads: 50
Joined: Mar 2007
Reputation:
0
I agree with Calgon, I started SA:MP with zero knowledge of any programming language, but by slowly doing things myself, and a whole heap of trial and error, I got things going, and now I know many many programming languages, all because I first started doing things myself. Sure it took effort and a lot of cock ups, but i got there in the end.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by ******
I'm not at all being sarcastic. You are right that coding things is a good way to learn - I agree. There are many parts of a mode to learn coding from, the bits that should be secure are not one of them. I said "the one part", meaning "possibly the only part", that you shouldn't do yourself. If you want to learn, code everything else from scratch and you will learn plenty.
No other bit really matters if you get it wrong: Bug in your properties system? Some people loose their houses - who cares! Bug in your vehicles system? A car blows up - who cares? Bug in your user system? You leak people's passwords - everyone cares!
|
I wrote a lot of my first bits of code based on tutorials and ideas used in other scripts, but I'd understand the purpose of every single line.
I think it's pretty unlikely that passwords will be leaked due to a bug in the user system though, I don't think I've ever heard a problem caused by bad scripting happen like that. It's important to have a good idea of what you're doing before you do it when you start out, so it's very unlikely something like that could happen if the new scripter read and followed the tutorial.