SA-MP Forums

Go Back   SA-MP Forums > SA-MP > General

Reply
 
Thread Tools Display Modes
Old 02/09/2015, 10:59 PM   #1
CrazyChoco
Gangsta
 
Join Date: Feb 2012
Posts: 895
Reputation: 35
Default Framework

Hello people,
Now I've tried to write a CnR script for this forum, but each time i'm getting stuck at the same place. I just want to know, if you were going to write a cops and robbers gamemode, how you would script it.

Do you start with the account system.. then whats next?
CrazyChoco is offline   Reply With Quote
Old 02/09/2015, 11:01 PM   #2
Infinity
High-roller
 
Infinity's Avatar
 
Join Date: Jul 2009
Posts: 1,222
Reputation: 975
Default Re: Framework

With every gamemode I develop, I start with the core gameplay. Accounts, administration stuff et5c. all comes last, what matters is that the core gameplay works and is enjoyable.
__________________

I apologize for the stupidity of my fellow members

Quote:
Originally Posted by !damo!spiderman View Post
Stand for something that's going to help the world rather than fill it with more hate. Give someone a hug, tell someone you care... Do something, do anything but do it with love not hate.
Infinity is offline   Reply With Quote
Old 02/09/2015, 11:49 PM   #3
Potassium
High-roller
 
Potassium's Avatar
 
Join Date: Oct 2009
Location: Sydney, Australia
Posts: 2,931
Reputation: 1219
Default Re: Framework

I don't know why people start with account systems. You can play the game without having an account. The actual game is the main focus. Make a list of things that need to be done, and prioritise them. Accounts can go towards the bottom of the list.
__________________
🦄🌸✨

Potassium
Potassium is offline   Reply With Quote
Old 02/09/2015, 11:56 PM   #4
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,066
Reputation: 2660
Default Re: Framework

People crave statistics. I reckon it's easier to implement these things directly rather than having to go back later to switch it all out. Some things simply hinge on the account system and you need to have it in place before you can continue. Especially in the case of SQL databases where everything will be pretty much intertwined from the very beginning (assuming proper normalization). Bank systems and nearly everything else that has to do with money are the first things that come to mind.
__________________
Vince is offline   Reply With Quote
Old 03/09/2015, 12:23 AM   #5
Potassium
High-roller
 
Potassium's Avatar
 
Join Date: Oct 2009
Location: Sydney, Australia
Posts: 2,931
Reputation: 1219
Default Re: Framework

Quote:
Originally Posted by Vince View Post
People crave statistics. I reckon it's easier to implement these things directly rather than having to go back later to switch it all out. Some things simply hinge on the account system and you need to have it in place before you can continue. Especially in the case of SQL databases where everything will be pretty much intertwined from the very beginning (assuming proper normalization). Bank systems and nearly everything else that has to do with money are the first things that come to mind.
Accounts before the release of the server, absolutely. But there's no need for accounts to be the very first thing you create, especially if you haven't fully planned out your server and everything that's going to be in it (which most people wouldn't have) - in my opinion, anyway
__________________
🦄🌸✨

Potassium
Potassium is offline   Reply With Quote
Old 03/09/2015, 12:55 AM   #6
DarkLored
High-roller
 
DarkLored's Avatar
 
Join Date: Oct 2013
Location: U.S. New York
Posts: 1,045
Reputation: 61
Default Re: Framework

I start with accounts, so I won't have to worry about it later.
__________________
deviantArt

Taking my time on focusing on Education and learning how to draw.

Quote:
Originally Posted by KevinExec View Post
I don't know shit, you're an expert, telling me what to do and how noobish I am, do you think I get you?

P.S.: I offer .ini scripting services.

- Quoted by not other than KevinExec, the "master" of PAWN language
Quote:
Originally Posted by iMTube™ View Post
don't act OP coz u will never be Op
Rest in Pieces iMTube™, you won't be missed coz you are Op
DarkLored is offline   Reply With Quote
Old 03/09/2015, 03:31 AM   #7
SickAttack
High-roller
 
Join Date: Dec 2013
Posts: 4,759
Reputation: 754
Default Re: Framework

Accounts are very important when it comes to pretty much everything. You wouldn't want people impersonating others, right? That's most likely why people start off with that aspect, especially if they are going to use it for a public server at the time being. Statistics gives people another reason to play as well.

You have two opciones that you have to choose between and two divisions that you also have to choose between but where you should categorize your gamemode's purpose however. One being "releasing the gamemode" and the other one being "using the gamemode on a public server".

Releasing the gamemode: It just doesn't really matter what comes first and what comes last, since you and especially others expect it to have at least the basics of a server (depending on the mode) when it is released. In this case, just go with the flow and work on whatever you want and/or need until you reach a point where the gamemode is stable to be used on a public (possibly beta) server.

Once you reach that point, it can be released and you could provide updates on your way to puberty (joke much).

Using the gamemode on a public server: If you are going to use it on a public server as soon as everything is setup, you should create the account system first to precisely prevent others from impersonating existing members; otherwise, it isn't required to start off at that point but it is highly recommended so that users will be able to gain score and money. Money is a very important factor on a Cops and Robbers server as that is what it mainly bases itself on (wealth -> adrenalin, possessions and glory).

Before anything else, you should think of what classes you want to add and create the class selection and moreover give each class (a) spawn point(s). Set their colors, their friendly fire team and their class overall. Then you might want to give them spawn weapons, maybe skills for civilians, and restrictions for certain classes such as Army Officers.

Create the respective vehicles for each and every class, and add general vehicle as well. And while you are at it, create the wanted level system and give certain classes wanted level if their steal a law enforcement vehicle; otherwise, you could just create the wanted level system or do it later on if you desire.

If you are not going to use the default building entrances and exits, you might want to consider disabling them and create a business system to add stores later on or just add regular stores. This is done upon desire.

People want something to do while on the server, which means statistics are a must, because without them it's basically pointless in terms of earning score and money as you will just lose them when you leave (remember that money and score is basically the soul of the gameplay here). This involves missions, minor & major robberies, skills, classes and what not to earn money and score. Remember this is mainly why we created stores first, as they are required for the robberies.

However, the previous aspects mentioned above are mainly focused on civilians. And as you know, law enforcements are pretty useless at this point. So you might want to give them oriented commands to deal with criminals while also fulfilling the basic concept of the mode.

Now you would want to create the basic general commands, such as /pm, /w, /me, /rules and so on. This includes /rob for civilians.

Some people take their cash serious, so you might want to consider giving them a place to store their cash at a local bank. And also 24/7 items such as secure wallets, condoms, etc for personal use & benefit.

Then you might want to create the ammu-nation menu so that people can purchase weapons and use it to their personal defense.

Then you keep going and going until you have something reasonable.

P.S. How you dare to criticize our gamemode and moreover me in such an insulting and misleading way when you cannot even come up with the metal part.
SickAttack is offline   Reply With Quote
Old 03/09/2015, 09:37 AM   #8
DEATHSTROKE
Big Clucker
 
DEATHSTROKE's Avatar
 
Join Date: Feb 2015
Location: Colombo , Sri Lanka
Posts: 132
Reputation: 21
Default Re: Framework

These are things you have to think for yourself.You should think what you would like to see in a server if you were just a player.
DEATHSTROKE is offline   Reply With Quote
Old 04/09/2015, 07:34 PM   #9
CrazyChoco
Gangsta
 
Join Date: Feb 2012
Posts: 895
Reputation: 35
Default Re: Framework

Quote:
Originally Posted by DEATHSTROKE View Post
These are things you have to think for yourself.You should think what you would like to see in a server if you were just a player.
Excuse me? I was asking the forum to see how other people would have done it.
CrazyChoco 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
SAMPGDK Framework GWMPT Everything and Nothing 23 04/06/2014 08:30 PM
[Tool/Web/Other] Basic web framework (PHP) ArkoUK Tools and Files 10 08/09/2013 11:49 AM


All times are GMT. The time now is 11:55 AM.


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